Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

gulp-bem/gulp-enb-src

Repository files navigation

gulp-enb-src

DEPRECATED repository, moved to mono repository gulp-bem

Helper to get sources with ENB.

Returns a stream of vinyl file objects.

Install

$ npm install --save gulp-enb-src

Usage

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'));

License

MIT © Andrew Abramov