npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

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

3

version

0.1.0-alpha.5212ae82

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability