Skip to content

Creates a browserify module with a map of a directory’s contents

License

Notifications You must be signed in to change notification settings

mquinnv/gulp-dir2module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-dir2module v0.0.2

Information

Packagegulp-dir2module
Description Creates a browserify/commonjs module with a map of all the files in a directory.
Node Version >= 0.10

Usage

var dir2module = require('gulp-dir2module');

gulp.task('dir2module', function() {
    gulp.src('js/controllers/*.js')
        .pipe(dir2module('controllers.js'))
            .pipe(gulp.dest('js/controllers'))
});

This will create a file in the js/controllers directory called controllers.js that exports a map with each js file (excluding itself).

About

Creates a browserify module with a map of a directory’s contents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published