cult monitors gulpfile changes and reloads gulp
$ npm install -g cult
$ cult <task> <othertask>
# will call gulp <task> <othertask>
$ cult --watch "./gulp/**/*.*" -- <task> <--arg>
# or
$ cult --watch=./gulp/**/*.* -- <task> <--arg>
# equivalent ways to call gulp <task> <--arg>
If your gulpfile
is split across multiple files, use the --watch
flag (or -w
), followed by a glob of files to watch (the glob will need to be preceded by an =
, or wrapped in quotemarks).
Note the --
is required to separate the cult
args from the gulp
args. Anything after the --
will be passed thought to gulp
.
Or use node-touch and add something similar to this to your watch
task to reload on any gulpfile
changes:
gulp.watch(['gulp/**'], function() { touch.sync('gulpfile.coffee') })
- 2.x.x Since gulp 3.7, there's no need anymore to add
--require
, cult now will symply monitor gulpfile (until this feature is added to gulp :) - 1.x.x Monitors gulpfile changes and adds
--require
depending on gulpfile extension
MIT - Typicode