Slightly smarter ./gulp script (taken from Attract)

This commit is contained in:
Sybren A. Stüvel 2016-09-30 13:01:50 +02:00
parent 6537332b26
commit 91b116aa74

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 "$@"