0.0.2 • Published 10 years ago

broccoli-wrap v0.0.2

Weekly downloads
28
License
MIT
Repository
github
Last release
10 years ago

broccoli-wrap

Installation

npm install --save-dev broccoli-wrap

Usage

var wrapFiles = require('broccoli-wrap');
tree = wrapFiles(tree, options);

Options

The following options are supported:

  • wrapper array of two strings to be placed as start and the end of stream (file)

  • extensions array of file extensions to process; default: ['js']

###Example

var wrapFiles = require('broccoli-wrap');

// this will wrap files in 'js' folder into anonymous function
var tree = wrapFiles('js', { wrapper: ["(function(){;\n", "})();"] });

module.exports = tree;