This package is deprecated. Use broccoli-merge-files
instead.
const BroccoliMergeFiles = require('broccoli-merge-files');
const flatiron = require('broccoli-merge-files/flatiron');
new BroccoliMergeFiles([inputNode], {
merge: files =>
flatiron(files, {
// trimExtensions: false,
// prefix: 'export default ',
// suffix: ';'
}),
outputFileName: 'files.js'
});
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);
outputFile
- path of the generated filetrimExtensions
- trim file extensions object keys or notprefix
- 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.
Yeah, I know.
npm install
npm test
This project is distributed under the MIT license.