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

6
gulp
View File

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