Needless Patchouli Manufacture
Have ideas to improve npm?Join in the discussion! »

gulp-enb-src

0.1.0-alpha.5212ae82 • Public • Published

gulp-enb-src

NPM Status Travis Status Windows Status Coverage Status Dependency Status

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

Install

npm i gulp-enb-src

DownloadsWeekly Downloads

1

Version

0.1.0-alpha.5212ae82

License

MIT

Unpacked Size

11.3 kB

Total Files

8

Last publish

Collaborators

  • avatar