Made ./gulp not always do "gulp watch".

Still allows "./gulp watch" though, which does "gulp && gulp watch".
Also allows for "./gulp --production", which we need during deployment.
This commit is contained in:
2016-09-29 16:49:56 +02:00
parent 3066b41058
commit c0cc4547c2

8
gulp
View File

@@ -11,5 +11,9 @@ function install() {
[ -e $GULP ] || install
[ gulpfile.js -nt $GULP ] && install
$GULP
exec $GULP watch
if [ "$1" == "watch" ]; then
# Treat "gulp watch" as "gulp && gulp watch"
$GULP
fi
exec $GULP "$@"