https://github.com/ember-cli/broccoli-brocfile-loader
Find and load Brocfile.js files for use with the Broccoli asset builder
https://github.com/ember-cli/broccoli-brocfile-loader
Last synced: 5 days ago
JSON representation
Find and load Brocfile.js files for use with the Broccoli asset builder
- Host: GitHub
- URL: https://github.com/ember-cli/broccoli-brocfile-loader
- Owner: ember-cli
- License: mit
- Created: 2016-08-21T21:29:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T22:54:41.000Z (about 9 years ago)
- Last Synced: 2025-06-14T04:38:40.278Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.18 MB
- Stars: 0
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
broccoli-brocfile-loader
==============================================================================
The algorithm to find and load the `Brocfile.js` build specification file.
Installation
------------------------------------------------------------------------------
```bash
npm install broccoli-brocfile-loader
```
Usage
------------------------------------------------------------------------------
```js
var loadBrocfile = require('broccoli-brocfile-loader');
var tree = loadBrocfile();
```
Running this code will:
1. Find a file named `Brocfile.js` in 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.
2. `chdir()` into the folder containing the `Brocfile.js`.
3. Load the `Brocfile.js` code via `require()`.
License
------------------------------------------------------------------------------
Broccoli was originally written by [Jo Liss](http://www.solitr.com/) and is
licensed under the [MIT license](LICENSE).