gulp-start

1.0.1 • Public • Published

gulp-start NPM version Build Status

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

Package Sidebar

Install

npm i gulp-start

Weekly Downloads

864

Version

1.0.1

License

MIT

Last publish

Collaborators

  • floatdrop