Pipeline thingy for Broccoli.
Still very much a work in progress.
In your HTML files, use blocks to list your assets. You can use exact filenames, or globs.
<!-- build:js js/app.js -->
<script src="my.js"></script>
<script src="myjs/**/*.js"></script>
<!-- endbuild -->
Then pass the HTML and all assets to the pipeline:
var pipeline = require('broccoli-pipeline');
var sourceTree = pipeline(sourceTree, {
htmlFiles: [
'app/index.html'
]
});
In development, this will write all files as individual script tags in the blocks. In production, it will concatenate each block into the file named in the block comment.
To run the tests:
npm test
This project is distributed under the MIT license.