galop

1.0.2 • Public • Published

Galop

A tiny wrapper around Gulp for auto-refreshing your Gulpfile.

✓ Ready to be used with Gulp v4.

🔍 Found an issue? Let me know in the issue tracker and we'll get it fixed ASAP!

npm install -g galop

Usage

Just use galop instead of gulp, e.g.:

galop build

API

const log = require('fancy-log')
const Galop = require('galop')
 
const galop = new Galop(['build', '--cwd', 'foo'])
 
galop.on('finish', () => {
  log.info("I just ran 'gulp build' for you.")
})

galop.respawn()

Immediately re-spawns Gulp, killing any pending tasks.

If a Gulp process is already in the process of being killed, this method has no effect.

galop.on('finish', callback)

Register an event that will be triggered when a call to Gulp ended.

This event is also emitted when the Gulpfile changed and the current process was killed.

galop.close(force?)

Stops the program, letting any builds in progress finish.

This method returns a promise that will resolve when everything is closed.

When true is passed as the first argument, Galop will kill the underlying process. This is mainly useful if Gulp itself watches for file changes and you still want the process to exit.

License

The MIT license

/galop/

    Package Sidebar

    Install

    npm i galop

    Weekly Downloads

    6

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.98 kB

    Total Files

    5

    Last publish

    Collaborators

    • samvv