Fix the burg where the watcher didn't do any watching
This commit is contained in:
parent
314e450cb8
commit
3930bd2c32
2 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
"url": "https://github.com/houdiniproject/houdini"
|
||||
},
|
||||
"scripts": {
|
||||
"watch": "HOUDINI_WATCH=1 script/build.sh",
|
||||
"watch": "export HOUDINI_WATCH=1; script/build.sh",
|
||||
"build": "script/build.sh",
|
||||
"build-all": "script/compile-assets.sh && npm run build",
|
||||
"test": "rake spec && npm run build && npx jest",
|
||||
|
|
|
@ -9,10 +9,12 @@ export DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@db/commitcha
|
|||
echo $DATABASE_URL
|
||||
npm run export-button-config && npm run export-i18n && npm run generate-api-js
|
||||
|
||||
if [ -z "$HOUDINI_WATCH"} ];
|
||||
if [ -n "$HOUDINI_WATCH" ];
|
||||
then
|
||||
echo "we're gonna watch!!!"
|
||||
npx webpack --watch
|
||||
else
|
||||
echo "we're gonna build!!!"
|
||||
NODE_ENV=production npx webpack -p
|
||||
fi
|
||||
)
|
Loading…
Reference in a new issue