0.2.0 • Published 9 years ago

gulp-ccr-each-dir v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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

Stream Processor

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);

References

License

MIT

Author

Amobiz