gulp-bem-bundle-builder
Easy to use builder for streams of BemBundle
and Vinyl
objects;
Install
npm i gulp-bem-bundle-builder
Usage
const concat = ;const bundlerFs = ; // Read bundles from FS by globconst bundleBuilder = ; // Create an instance with configuration to run typical build tasksconst builder = ; // Stream<Vinyl> ;
API
BundleBuilder
BundleBuilder~Bundle
BemBundle
class extended by src
and target
helper methods.
BundleBuilder~Bundle.src
Gather vinyl file objects that responde to BEM entity declaration and their dependencies and return them as a readable stream.
Bundle
BundleBuilder~Bundle.target
Returns resulting stream of a target.
Bundletargettarget: String: Stream<Vinyl>
NB: Beware of cycles:
;
License
Code and documentation copyright 2016 YANDEX LLC. Code released under the Mozilla Public License 2.0.