The machine app's `build` script runs vue-tsc, the Vite build, two electron tsc passes and an esbuild bundle. Serving the kiosk as a plain SPA needs only the middle one, and the electron passes drag in native-addon typings that a web build has no use for. Add `build:web` (just `vite build`) with a turbo task that still builds the workspace packages first via `dependsOn: ["^build"]`, so a consumer can run `pnpm build:web` at the repo root and get `apps/machine/dist`. `env: ["VITE_*"]` is declared on the task because the Vite vars are baked into the bundle at build time — without it turbo would happily serve a cached build produced under different env. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013A6683cCHnQxFUosx1krY4
82 lines
2.4 KiB
JSON
82 lines
2.4 KiB
JSON
{
|
|
"name": "@bitSpire/machine",
|
|
"version": "0.1.0",
|
|
"description": "Electron ATM kiosk application with Vue 3 UI",
|
|
"author": {
|
|
"name": "AIO Labs",
|
|
"email": "dev@aiolabs.dev"
|
|
},
|
|
"homepage": "https://aiolabs.dev",
|
|
"license": "AGPL-3.0",
|
|
"type": "module",
|
|
"main": "dist-electron/main.js",
|
|
"scripts": {
|
|
"dev": "concurrently -n vite,electron \"vite\" \"pnpm run electron:dev\"",
|
|
"dev:vite": "vite",
|
|
"electron:dev": "tsc -p electron/tsconfig.json && tsc -p electron/tsconfig.preload.json && electron dist-electron/main.js",
|
|
"build": "vue-tsc --noEmit && vite build && tsc -p electron/tsconfig.json && tsc -p electron/tsconfig.preload.json && npx esbuild electron/fund-atm.ts --bundle --platform=node --format=cjs --external:better-sqlite3 --outfile=dist-electron/fund-atm.bundle.cjs",
|
|
"build:web": "vite build",
|
|
"build:electron": "pnpm build && electron-builder",
|
|
"preview": "vite preview",
|
|
"typecheck": "vue-tsc --noEmit",
|
|
"lint": "eslint src/",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@bitSpire/clink": "workspace:*",
|
|
"@bitSpire/hal": "workspace:*",
|
|
"@bitSpire/lnbits": "workspace:*",
|
|
"@bitSpire/nostr-client": "workspace:*",
|
|
"@bitSpire/state-machine": "workspace:*",
|
|
"@tanstack/vue-table": "^8.21.3",
|
|
"@vueuse/core": "^14.1.0",
|
|
"better-sqlite3": "^11.0.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-vue-next": "^0.563.0",
|
|
"marked": "^17.0.5",
|
|
"nfc-pcsc": "^0.8.1",
|
|
"nostr-tools": "^2.10.0",
|
|
"pinia": "^2.2.0",
|
|
"qr": "^0.6.0",
|
|
"qrcode.vue": "^3.6.0",
|
|
"reka-ui": "^2.7.0",
|
|
"tailwind-merge": "^3.4.0",
|
|
"vue": "^3.5.0",
|
|
"vue-router": "^4.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.0.0",
|
|
"@types/better-sqlite3": "^7.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@vitejs/plugin-vue": "^5.2.0",
|
|
"concurrently": "^9.0.0",
|
|
"electron": "^33.0.0",
|
|
"electron-builder": "^25.0.0",
|
|
"esbuild": "^0.27.4",
|
|
"tailwindcss": "^4.0.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^6.0.0",
|
|
"vitest": "^2.1.9",
|
|
"vue-tsc": "^2.1.0"
|
|
},
|
|
"build": {
|
|
"appId": "dev.bitSpire.atm",
|
|
"productName": "bitSpire",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"dist-electron/**/*"
|
|
],
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
],
|
|
"category": "Finance"
|
|
}
|
|
}
|
|
}
|