broccoli-brocfile-loader

Find and load Brocfile.js files for use with the Broccoli asset builder

MIT 1 个版本
安装
npm install broccoli-brocfile-loader
yarn add broccoli-brocfile-loader
pnpm add broccoli-brocfile-loader
bun add broccoli-brocfile-loader
README

broccoli-brocfile-loader

The algorithm to find and load the Brocfile.js build specification file.

Installation

npm install broccoli-brocfile-loader

Usage

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 and is licensed under the MIT license.

版本列表
0.18.0 2016-08-22