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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i gulp-bem-js-pack

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • floatdrop