Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floatdrop/gulp-start
Start process based on filename
https://github.com/floatdrop/gulp-start
Last synced: about 1 month ago
JSON representation
Start process based on filename
- Host: GitHub
- URL: https://github.com/floatdrop/gulp-start
- Owner: floatdrop
- Created: 2014-11-24T11:03:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-05T09:19:20.000Z (about 10 years ago)
- Last Synced: 2024-11-27T18:49:53.848Z (about 2 months ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gulp-start [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Spawn process based on file path
Alternative for [gulp-install](https://github.com/slushjs/gulp-install) plugin.
## Usage
```js
var gulp = require('gulp');
var install = require('gulp-start');gulp.task('default', function () {
return 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`:
```js
[
{ match: /package.json$/, cmd: 'npm install' },
{ match: /bower.json$/, cmd: 'bower install' }
]
```## License
MIT © [Vsevolod Strukchinsky]([email protected])
[npm-url]: https://npmjs.org/package/gulp-start
[npm-image]: http://img.shields.io/npm/v/gulp-start.svg?style=flat[travis-url]: http://travis-ci.org/floatdrop/gulp-start
[travis-image]: http://img.shields.io/travis/floatdrop/gulp-start.svg?branch=master&style=flat