mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
bf15a14dd4
Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
23 lines
646 B
Bash
Executable File
23 lines
646 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
PROJECT=""
|
|
if [[ -e ext/app ]]; then
|
|
PROJECT="tsconfig-ext.json"
|
|
fi
|
|
WEBPACK_CONFIG=buildtools/webpack.config.js
|
|
if [[ -e ext/buildtools/webpack.config.js ]]; then
|
|
WEBPACK_CONFIG=ext/buildtools/webpack.config.js
|
|
fi
|
|
|
|
if [ ! -e _build ]; then
|
|
buildtools/build.sh
|
|
fi
|
|
|
|
tsc --build -w --preserveWatchOutput $PROJECT &
|
|
catw app/client/*.css app/client/*/*.css -o static/bundle.css -v & 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 &
|
|
|
|
wait
|