Added 'gulp' script, which does an 'npm install' when needed.

It then runs 'gulp' and 'gulp watch'.
This commit is contained in:
2016-09-20 15:38:11 +02:00
parent b7cad397a8
commit 9035d2f6a4

15
gulp Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -ex
GULP=./node_modules/.bin/gulp
function install() {
npm install
touch $GULP # installer doesn't always touch this after a build, so we do.
}
# Rebuild Gulp if missing or outdated.
[ -e $GULP ] || install
[ gulpfile.js -nt $GULP ] && install
$GULP
exec $GULP watch