broccoli-brocfile-loader
v0.18.0
Published
Find and load Brocfile.js files for use with the Broccoli asset builder
Downloads
62,838
Readme
broccoli-brocfile-loader
The algorithm to find and load the Brocfile.js build specification file.
Installation
npm install broccoli-brocfile-loaderUsage
var loadBrocfile = require('broccoli-brocfile-loader');
var tree = loadBrocfile();Running this code will:
Find a file named
Brocfile.jsin the current folder or any of the parent folders. The search is case-independent and will throw an error if no matching file could be found.chdir()into the folder containing theBrocfile.js.Load the
Brocfile.jscode viarequire().
License
Broccoli was originally written by Jo Liss and is licensed under the MIT license.
