Gulp Grab Bag
Currently just a set of Gulp tasks I use for NPM packaging. Performs the followign tasks:
- Creates minified and non-minified versions concatenated versions and places them in a
dist
folder.bundleName
in the below example is used to name these. - Creates a file-for-file mirror of the
src
directory, but compiled with Babel. - Compiles JS in an
examples
folder.
All tasks will watch for file changes. Syntax errors will generate helpfully obtrusive alert windows with the error information.
Installation
npm install --save gulp-grab-bag
Usage
// Bundle names passed to jsTasks.dist() will be ignored by Browserifylet dist = jsTasks lib = jsTasks examples = jsTasks gulp