Package Exports
- gulp-ccr-each-dir
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-ccr-each-dir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-ccr-each-dir
Iterates each sub directories and pass to sub tasks. A cascading configurable gulp recipe for gulp-chef.
Install
$ npm install --save-dev gulp-chef gulp-ccr-each-dir
Recipe
Stream Array (from gulp-cheatsheet p.2)
Ingredients
Type
API
config.src
The directory path to iterate its sub directories. Inject "config.dir
" and "config.path
" context to sub tasks.
[expose] config.dir
The name of the sub directory.
[expose] config.path
The canonical path of the sub directory.
Usage
var gulp = require('gulp');
var chef = require('gulp-chef');
var meals = chef({
src: 'src/',
dest: 'dist/',
'each-dir': {
src: 'modules/',
browserify: {
bundle: {
entry: '{{dir}}/index.js',
file: '{{dir}}.js'
}
}
}
});
gulp.registry(meals);