Files
aethera/frontend/package.json
Evan Reichard 59de41f827
Some checks failed
continuous-integration/drone/push Build is failing
feat(build): embed static assets into Go binary
Embed frontend build output directly into Go binary using //go:embed.
This removes runtime dependency on ../frontend/public/ path and
simplifies Docker builds by serving assets from embedded filesystem.

- Add backend/web/embed.go with embed.FS directive
- Update server to serve from embedded static assets
- Update Makefile to copy frontend build to web/static/
- Update Dockerfile for simplified multi-stage build
- Update frontend package.json output paths
- Remove custom 'oc' command from flake.nix dev shell
2026-02-22 20:36:03 -05:00

29 lines
928 B
JSON

{
"name": "aethera",
"private": true,
"scripts": {
"dev": "bun build src/main.ts --outdir public/dist --target browser --watch & bunx tailwindcss -i styles.css -o public/dist/styles.css --watch",
"build": "bun build src/main.ts --outdir ../backend/web/static/dist --target browser && bunx tailwindcss -i styles.css -o ../backend/web/static/dist/styles.css --minify",
"lint": "eslint ./src/**"
},
"devDependencies": {
"@tailwindcss/cli": "^4.1.18",
"@tailwindcss/typography": "^0.5.19",
"@types/alpinejs": "^3.13.11",
"@types/bun": "latest",
"@typescript-eslint/eslint-plugin": "^8.52.0",
"@typescript-eslint/parser": "^8.52.0",
"eslint": "^9.39.2",
"tailwindcss": "^4.1.18"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"alpinejs": "^3.15.3",
"highlight.js": "^11.11.1",
"marked": "^17.0.1",
"marked-highlight": "^2.2.3"
}
}