mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
debugging: add a separate start:debug-brk target
--inspect-brk is useful if you want to debug something during startup
This commit is contained in:
parent
54257c2865
commit
088578f541
@ -7,7 +7,8 @@
|
|||||||
"repository": "git://github.com/gristlabs/grist-core.git",
|
"repository": "git://github.com/gristlabs/grist-core.git",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "sandbox/watch.sh",
|
"start": "sandbox/watch.sh",
|
||||||
"start:debug": "NODE_INSPECT=1 sandbox/watch.sh",
|
"start:debug": "NODE_INSPECT=--inspect sandbox/watch.sh",
|
||||||
|
"start:debug-brk": "NODE_INSPECT=--inspect-brk sandbox/watch.sh",
|
||||||
"install:python": "buildtools/prepare_python.sh",
|
"install:python": "buildtools/prepare_python.sh",
|
||||||
"install:python2": "buildtools/prepare_python2.sh",
|
"install:python2": "buildtools/prepare_python2.sh",
|
||||||
"install:python3": "buildtools/prepare_python3.sh",
|
"install:python3": "buildtools/prepare_python3.sh",
|
||||||
|
@ -19,6 +19,6 @@ tsc --build -w --preserveWatchOutput $PROJECT &
|
|||||||
css_files="app/client/**/*.css"
|
css_files="app/client/**/*.css"
|
||||||
chokidar "${css_files}" -c "bash -O globstar -c 'cat ${css_files} > static/bundle.css'" &
|
chokidar "${css_files}" -c "bash -O globstar -c 'cat ${css_files} > static/bundle.css'" &
|
||||||
webpack --config $WEBPACK_CONFIG --mode development --watch &
|
webpack --config $WEBPACK_CONFIG --mode development --watch &
|
||||||
NODE_PATH=_build:_build/stubs:_build/ext nodemon ${NODE_INSPECT:+--inspect} --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
|
NODE_PATH=_build:_build/stubs:_build/ext nodemon ${NODE_INSPECT} --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user