DEPRECATED repository, moved to mono repository gulp-bem
Helper to get sources with ENB.
Returns a stream of vinyl file objects.
$ npm install --save gulp-enb-src
const gulp = require('gulp');
const src = require('gulp-enb-src');
const read = require('gulp-read');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
return src({
levels: ['blocks'],
decl: [{ block: 'button' }]
tech: 'js',
extensions: ['.vanilla.js', '.js', '.browser.js']
})
.pipe(read())
.pipe(concat('button.min.js'))
.pipe(uglify())
.pipe(gulp.dest('build'));
MIT © Andrew Abramov