Commit
·
cf7c7f3
1
Parent(s):
92918d1
improved start
Browse files- package.json +4 -2
package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "bolt",
|
| 3 |
-
"description": "
|
| 4 |
"private": true,
|
| 5 |
"license": "MIT",
|
| 6 |
"sideEffects": false,
|
|
@@ -13,7 +13,9 @@
|
|
| 13 |
"test:watch": "vitest",
|
| 14 |
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint app",
|
| 15 |
"lint:fix": "npm run lint -- --fix && prettier app --write",
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
"dockerstart": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 5173 --no-show-interactive-dev-session",
|
| 18 |
"dockerrun": "docker run -it -d --name bolt-ai-live -p 5173:5173 --env-file .env.local bolt-ai",
|
| 19 |
"dockerbuild:prod": "docker build -t bolt-ai:production -t bolt-ai:latest --target bolt-ai-production .",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "bolt",
|
| 3 |
+
"description": "An AI Agent",
|
| 4 |
"private": true,
|
| 5 |
"license": "MIT",
|
| 6 |
"sideEffects": false,
|
|
|
|
| 13 |
"test:watch": "vitest",
|
| 14 |
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint app",
|
| 15 |
"lint:fix": "npm run lint -- --fix && prettier app --write",
|
| 16 |
+
"start:windows": "wrangler pages dev ./build/client",
|
| 17 |
+
"start:unix": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings",
|
| 18 |
+
"start": "node -e \"const { spawn } = require('child_process'); const isWindows = process.platform === 'win32'; const cmd = isWindows ? 'npm run start:windows' : 'npm run start:unix'; const child = spawn(cmd, { shell: true, stdio: 'inherit' }); child.on('exit', code => process.exit(code));\"",
|
| 19 |
"dockerstart": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 5173 --no-show-interactive-dev-session",
|
| 20 |
"dockerrun": "docker run -it -d --name bolt-ai-live -p 5173:5173 --env-file .env.local bolt-ai",
|
| 21 |
"dockerbuild:prod": "docker build -t bolt-ai:production -t bolt-ai:latest --target bolt-ai-production .",
|