Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/localvoid/gulp-process

Gulp plugin for running and automatically restarting processes.
https://github.com/localvoid/gulp-process

Last synced: 2 days ago
JSON representation

Gulp plugin for running and automatically restarting processes.

Awesome Lists containing this project

README

        

# gulp-process

[Gulp](http://gulpjs.com) plugin for running and automatically
restarting processes.

## Install

```sh
$ npm install --save-dev gulp-process
```

## Usage

```js
var gulp = require('gulp');
var gulpProcess = require('gulp-process');

gulp.task('tpl', function() {
return gulp.src('tpl/*.tpl')
.pipe(gulp.dest('build'))
.pipe(gulpProcess.restartStream('goserver'));
});

gulp.task('serve', function() {
gulpProcess.start('goserver', './build/goserver');

gulp.watch('tpl/*.tpl', ['tpl']);
});
```

## API

### start(name, command, args, opts)
### restart(name)
### restartStream(name)