mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
start and debug scripts (will enable seamless container use later), strict error handling in bash scripts (#63)
#61
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
"build": "npm run build --workspaces",
|
"build": "npm run build --workspaces",
|
||||||
"clean": "rm -rf node_modules && npm run clean --workspaces",
|
"clean": "rm -rf node_modules && npm run clean --workspaces",
|
||||||
"test": "npm run test --workspaces",
|
"test": "npm run test --workspaces",
|
||||||
"start": "node ./scripts/check-build-status.js && node node_modules/@gemini-code/cli",
|
"start": "scripts/start.sh",
|
||||||
"debug": "node ./scripts/check-build-status.js && node --inspect-brk node_modules/@gemini-code/cli",
|
"debug": "scripts/debug.sh",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
"typecheck": "tsc --noEmit --jsx react",
|
"typecheck": "tsc --noEmit --jsx react",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
IMAGE=gemini-code-sandbox
|
IMAGE=gemini-code-sandbox
|
||||||
|
|
||||||
|
|||||||
5
scripts/debug.sh
Executable file
5
scripts/debug.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
node ./scripts/check-build-status.js
|
||||||
|
node --inspect-brk node_modules/@gemini-code/cli/dist
|
||||||
5
scripts/start.sh
Executable file
5
scripts/start.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
node ./scripts/check-build-status.js
|
||||||
|
node node_modules/@gemini-code/cli/dist
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
IMAGE=gemini-code-sandbox
|
IMAGE=gemini-code-sandbox
|
||||||
CLI_DIST=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli
|
CLI_DIST=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli
|
||||||
|
|||||||
Reference in New Issue
Block a user