broccoli-wrap
v0.0.2
Published
Wrap filter for Broccoli
Readme
broccoli-wrap
Installation
npm install --save-dev broccoli-wrapUsage
var wrapFiles = require('broccoli-wrap');
tree = wrapFiles(tree, options);Options
The following options are supported:
wrapperarray of two strings to be placed as start and the end of stream (file)extensionsarray 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;