Skip to content
forked from typicode/cult

cult monitors gulpfile changes and reloads gulp

License

Notifications You must be signed in to change notification settings

MethodGrab/cult

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cult

cult monitors gulpfile changes and reloads gulp

Install

$ npm install -g cult

Usage

$ cult <task> <othertask>
# will call gulp <task> <othertask>

Multiple files support

$ 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.

Alternative method

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') })

History

  • 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

License

MIT - Typicode

About

cult monitors gulpfile changes and reloads gulp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.3%
  • CoffeeScript 6.7%