1.0.1 • Published 9 years ago
gulp-start v1.0.1
gulp-start
Spawn process based on file path
Alternative for gulp-install plugin.
Usage
var gulp = require('gulp');
var install = require('gulp-start');
gulp.task('default', function (cb) {
gulp.src(['package.json', 'bower.json'])
.pipe(install());
});
API
gulp-start(map)
Returns stream that will run commands based on file path.
map
Type: array
By default contains install commands for npm
and bower
:
[
{ match: /package.json$/, cmd: 'npm install' },
{ match: /bower.json$/, cmd: 'bower install' }
]
License
MIT © Vsevolod Strukchinsky