broccoli-targz

1.0.0 • Public • Published

broccoli-tar

Broccoli tar takes a tree passed from another broccoli plugin and creates a gzipped tar archive containing those files.

You can supply an optional archive name. The default is 'archive.tar.gz':

/*
  Given a file structure like this:
  src/css
  ├── reset.css
  └── todos.css
*/
 
var Funnel = require('broccoli-funnel');
var Tar = require('broccoli-tar');
 
var cssFiles = new Funnel('src/css');
var archive = new Tar(cssFiles, 'css');
 
 
/*
  Results in a output of
  ── css.tar.gz
 
  When decompressed and untarred will result in the files
 
  css
  ├── reset.css
  └── todos.css
*/
 
module.exports = archive;

Readme

Keywords

Package Sidebar

Install

npm i broccoli-targz

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • trek