mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Implement support for bundling web assets into CLI single executable binaries. When built with --with-web-assets, the executable includes the compiled web application and serves it directly without file system access. A stub generator creates empty manifests for normal builds to maintain compatibility. Key changes: - Add --with-web-assets flag to build-executable.ts with manifest validation - Generate embeddedAssets.ts manifest from web/dist during build - Serve embedded assets in web server with fallback to file system - Add hapi server subcommand to start API + web server - Include server sources in CLI tsconfig for compilation scope - Add workspace-level build:single-exe scripts for production builds
35 lines
415 B
Plaintext
35 lines
415 B
Plaintext
# Dependencies
|
|
**/node_modules/
|
|
|
|
# Build output
|
|
**/dist/
|
|
**/dist-exe/
|
|
**/*.tsbuildinfo
|
|
server/src/web/embeddedAssets.generated.ts
|
|
|
|
# Env files (can contain secrets)
|
|
**/.env
|
|
**/.env.*
|
|
**/.env*.local
|
|
|
|
# Logs
|
|
**/*.log
|
|
**/*-debug.log
|
|
**/*-error.log
|
|
npm-debug.log*
|
|
|
|
# Coverage
|
|
coverage/
|
|
|
|
# OS / IDE
|
|
**/.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
**/*.swp
|
|
**/*.swo
|
|
|
|
# Claude local settings
|
|
.claude/settings.local.json
|
|
localdocs/
|
|
execplan/
|