Added self-building gulp command
This commit is contained in:
parent
d7fe196af0
commit
74d86487a9
15
gulp
Executable file
15
gulp
Executable 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
|
Loading…
x
Reference in New Issue
Block a user