Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-start

floatdrop156MIT1.0.1

Start process based on filename

gulp, start, process, bower, npm

readme

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