Files
job-search/web/package.json
T
bwilliams 5e6c011ecb Embedded the frontend in the binary, and built it in the build script
`npm run sync` in web/ copies the build output (web/dist, from npm run build)
to internal/frontend/dist, which the binary embeds. Go can't embed from
outside the package's directory (web/ is also outside the Go module), hence
the copy. Only dist/.gitkeep is committed, so a fresh clone still compiles,
and a binary built without syncing first serves no frontend.

job-search serve serves server.frontend.dir if it is set, or else the
embedded build, or warns that there is no frontend. scripts/build.sh builds
and syncs the frontend before building, running npm ci first for a release
or when web/node_modules is missing.
2026-10-16 16:03:15 +01:00

41 lines
1.1 KiB
JSON

{
"name": "job-search-frontend",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"typecheck": "tsc -b",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"check": "npm run typecheck && npm run lint && npm run format:check",
"generate:api": "node scripts/generateApiTypes.ts",
"sync": "node scripts/syncDist.ts"
},
"dependencies": {
"solid-js": "^1.9.3"
},
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
"@eslint/js": "10.0.1",
"@tailwindcss/vite": "^4.0.0",
"@types/node": "^20.14.0",
"eslint": "10.12.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-simple-import-sort": "14.0.0",
"eslint-plugin-solid": "0.18.0",
"globals": "17.13.0",
"openapi-typescript": "7.13.0",
"prettier": "3.9.9",
"prettier-plugin-tailwindcss": "0.8.1",
"tailwindcss": "^4.0.0",
"typescript": "^5.5.4",
"typescript-eslint": "8.71.0",
"vite": "^6.0.0",
"vite-plugin-solid": "^2.11.0"
}
}