gulp-slurpee
v1.2.0
Published
Run the same gulp task from multiple gulpfile's concurrently.
Downloads
8
Readme
gulp-slurpee
Run the same gulp task from multiple gulpfile's concurrently.
gulp-slurpee is useful if you have a large project with multiple applications that all have their own gulpfile, and you want to run the same task for all of them at the same time. For instance if you wanted to lint every project concurrently without creating a meta gulp-task you would use gulp-slurpee.
Install
Install with npm:
npm install --global gulp-slurpee
Usage
gulp-slurpee <directory[/subdirectory]> [<task>]
If no task is supplied it uses the default
task.
Proxy a task to a directory:
gulp-slurpee app
Proxy a task to a sub-directory:
gulp-slurpee app/generator watch
Proxy a task to multiple directories:
gulp-slurpee app/sites app/home build
If you give gulp-slurpee a directory that doesn't have a gulpfile.js
it'll recursively look inside every child directory for a gulpfile.js and run the task for every gulpfile.js
it finds.
With a directory structure like:
- app/
- home/
- gulpfile.js
- about/
- gulpfile.js
- components/
- components.js
And running:
gulp-slurpee app build
gulp-slurpee
will run the build
task in the app/home
and app/about
directories. It won't run the task in app/components
as it does not have a gulpfile.js
.
Changelog
1.1
- Allow usage via arguments to API.
1.0
- Initial release
License
The MIT License (MIT)
Copyright (c) 2015 Chartbeat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.