The pages are now a Vue 3 + Vite + TypeScript app in web/, built into internal/web/dist/app and embedded in the binary. Go still serves index.html for / and /setup behind the admin gate, plus the hashed /assets/* (public, cached forever). The router takes its base from the current URL, so it works under nginx's /tracker/ prefix unchanged. Only dist/.gitkeep is committed, so go build and go test need no Node; an unbuilt binary shows a "run make web" page at /. The Dockerfile gains a Node stage, CI typechecks and builds the app, and make build/run build it first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
473 B
JSON
23 lines
473 B
JSON
{
|
|
"name": "activity-tracker-web",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"typecheck": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"vue": "^3.5.44",
|
|
"vue-router": "^5.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.6.5",
|
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
"@vue/tsconfig": "^0.9.1",
|
|
"typescript": "^6.0.3",
|
|
"vite": "^8.3.4",
|
|
"vue-tsc": "^3.3.13"
|
|
}
|
|
}
|