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;