feat: add UI build to build process

- Created separate build script to handle both CLI and UI building
- Added automatic UI dependency installation
- Copy built UI artifacts to dist directory

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
musistudio
2025-07-30 11:15:05 +08:00
parent 31db041084
commit 112d7ef8f9
57 changed files with 13581 additions and 365 deletions

View File

@@ -6,7 +6,7 @@
"ccr": "./dist/cli.js"
},
"scripts": {
"build": "esbuild src/cli.ts --bundle --platform=node --outfile=dist/cli.js && shx cp node_modules/tiktoken/tiktoken_bg.wasm dist/tiktoken_bg.wasm",
"build": "node scripts/build.js",
"release": "npm run build && npm publish"
},
"keywords": [
@@ -19,9 +19,11 @@
"author": "musistudio",
"license": "MIT",
"dependencies": {
"@musistudio/llms": "^1.0.15",
"@fastify/static": "^8.2.0",
"@musistudio/llms": "file:../llms",
"dotenv": "^16.4.7",
"json5": "^2.2.3",
"openurl": "^1.1.1",
"tiktoken": "^1.0.21",
"uuid": "^11.1.0"
},