https://github.com/localvoid/gulp-process
Gulp plugin for running and automatically restarting processes.
https://github.com/localvoid/gulp-process
Last synced: about 1 year ago
JSON representation
Gulp plugin for running and automatically restarting processes.
- Host: GitHub
- URL: https://github.com/localvoid/gulp-process
- Owner: localvoid
- License: mit
- Created: 2015-08-23T10:00:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-29T07:56:33.000Z (about 10 years ago)
- Last Synced: 2025-01-25T06:25:19.486Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)