feat(docker): add dev.sh with auto-funding and ATM app setup

- Add dev.sh script for managing regtest development environment
- Implement cmd_fund to fund ATM app owner via Lightning.Pub API
- Add --fund flag to cmd_up for automatic funding on startup
- Update setup_atm_app to write VITE_APP_ID to machine .env
- Fix Electron IPC to pass appId and extensionApiUrl to renderer
- Restructure repo from nested lamassu-next/ to root

The dev.sh script now supports:
- ./dev.sh up --fund  # Start regtest and auto-fund ATM
- ./dev.sh fund       # Fund existing ATM app
- ./dev.sh status     # Show environment status
- ./dev.sh reset      # Clean restart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-15 14:19:16 -05:00
commit c98f126ba7
180 changed files with 2695 additions and 9587 deletions

View file

@ -0,0 +1,33 @@
import path from 'node:path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
// Dev server configuration
server: {
port: 1420,
strictPort: true,
},
// Build configuration for Electron renderer
build: {
// Target modern Chrome (Electron uses Chromium)
target: 'chrome120',
// Sourcemaps for debugging
sourcemap: process.env.NODE_ENV === 'development',
rollupOptions: {
// @lamassu/hal uses Node.js APIs (serialport, node:events) and will only
// run in Electron's main process. Exclude from renderer bundle.
external: ['@lamassu/hal'],
},
},
// Prevent Vite from clearing the screen (useful when running with Electron)
clearScreen: false,
})