gulp-bem-js-pack

0.0.1 • Public • Published

gulp-bem-js-pack experimental

NPM version Build Status

Packing CommonJS modules with respect of levels of definition.

If you pass file with same ID twice to module, it will require first module by it ID from second.

// base/first.js (with ID `first`)
module.exports = 'BASE';
 
// first.js (with ID `first`)
var First = require('first'); // returns 'BASE'
module.exports = First + '!';

Usage

var gulp = require('gulp');
var bempack = require('gulp-bem-js-pack');
 
gulp.src(['base/*.js', 'main/*.js']).pipe(gulp.dest('dist'));

API

bempack.pack([options])

Wrapper around browser-pack that takes stream of BEM objects

License

MIT (c) 2014 Vsevolod Strukchinsky

/gulp-bem-js-pack/

    Package Sidebar

    Install

    npm i gulp-bem-js-pack

    Weekly Downloads

    2

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • floatdrop