1.0.2 ā€¢ Published 5 years ago

galop v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago