Skip to content

Commit cc5193e

Browse files
authored
start and debug scripts (will enable seamless container use later), strict error handling in bash scripts (QwenLM#63)
QwenLM#61
1 parent 596620d commit cc5193e

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build": "npm run build --workspaces",
1111
"clean": "rm -rf node_modules && npm run clean --workspaces",
1212
"test": "npm run test --workspaces",
13-
"start": "node ./scripts/check-build-status.js && node node_modules/@gemini-code/cli",
14-
"debug": "node ./scripts/check-build-status.js && node --inspect-brk node_modules/@gemini-code/cli",
13+
"start": "scripts/start.sh",
14+
"debug": "scripts/debug.sh",
1515
"lint": "eslint . --ext .ts,.tsx",
1616
"typecheck": "tsc --noEmit --jsx react",
1717
"format": "prettier --write .",

scripts/build_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
IMAGE=gemini-code-sandbox
45

scripts/debug.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
node ./scripts/check-build-status.js
5+
node --inspect-brk node_modules/@gemini-code/cli/dist

scripts/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
node ./scripts/check-build-status.js
5+
node node_modules/@gemini-code/cli/dist

scripts/start_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
IMAGE=gemini-code-sandbox
45
CLI_DIST=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli

0 commit comments

Comments
 (0)