broccoli-zip-js
v1.0.4
Published
a broccoli plugin for turning a tree into a zip archive - no executable required
Downloads
4
Readme
broccoli-zip
Broccoli zip takes a tree passed from another broccoli plugin and creates a zip archive containing those files.
Dependencies
Usage
You can supply an optional archive name. The default is 'archive.zip'
:
/*
Given a file structure like this:
src/css
├── reset.css
└── todos.css
*/
var Funnel = require('broccoli-funnel');
var Zip = require('broccoli-zip');
var cssFiles = new Funnel('src/css');
var archive = new Zip(cssFiles, 'css');
/*
Results in a output of:
/
├── css.zip
When unzipped, will result in the files:
/css
├── reset.css
└── todos.css
*/
module.exports = archive;