broccoli-flatiron

0.1.3 • Public • Published

Broccoli Flatiron

Usage

Create a payload file based upon directory structure.

var flatiron = require("broccoli-flatiron");
 
var options = {
    outputFile: 'path/to/output/file'
};
 
var tree = flatiron(targetDirectory, options);

Documentation

Available options

  • outputFile - path of the generated file
  • trimExtensions - trim file extensions object keys or not
  • prefix - use custom prefix, default: export default
  • suffix - use custom suffix, default: ;
  • persistentOutput: boolean flag passed to broccoli-plugin.
  • needCache: boolean flag passed to broccoli-plugin.

ZOMG!!! TESTS?!?!!?

Yeah, I know.

npm install
npm test

License

This project is distributed under the MIT license.

Package Sidebar

Install

npm i broccoli-flatiron

Weekly Downloads

27,242

Version

0.1.3

License

MIT

Unpacked Size

7.31 kB

Total Files

9

Last publish

Collaborators

  • buschtoens