Fix the burg where the watcher didn't do any watching

This commit is contained in:
Eric Schultz 2018-06-27 16:56:54 -05:00
parent 314e450cb8
commit 3930bd2c32
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"url": "https://github.com/houdiniproject/houdini" "url": "https://github.com/houdiniproject/houdini"
}, },
"scripts": { "scripts": {
"watch": "HOUDINI_WATCH=1 script/build.sh", "watch": "export HOUDINI_WATCH=1; script/build.sh",
"build": "script/build.sh", "build": "script/build.sh",
"build-all": "script/compile-assets.sh && npm run build", "build-all": "script/compile-assets.sh && npm run build",
"test": "rake spec && npm run build && npx jest", "test": "rake spec && npm run build && npx jest",

View file

@ -9,10 +9,12 @@ export DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@db/commitcha
echo $DATABASE_URL echo $DATABASE_URL
npm run export-button-config && npm run export-i18n && npm run generate-api-js npm run export-button-config && npm run export-i18n && npm run generate-api-js
if [ -z "$HOUDINI_WATCH"} ]; if [ -n "$HOUDINI_WATCH" ];
then then
echo "we're gonna watch!!!"
npx webpack --watch npx webpack --watch
else else
echo "we're gonna build!!!"
NODE_ENV=production npx webpack -p NODE_ENV=production npx webpack -p
fi fi
) )