A file builder ripped from the insides of PrePros
Concatenate files with prepend and append directives embedded in the files as is possible in PrePros and CodeKit. This tool was made to serve the needs of grunt-codekit, but is published in the hopes that it meets the needs of other souls out there.
We are just working directly with the innards of Prepros, so if you want
to know about all the different overrides you can look into the
module of PrePros.
Use single line comments with
// @codekit-append 'myfile.js'
See Appending - substitute keywords for
There are some more newlines than what one might expect, but this is how Prepros does this, and so any issues with that should be filed in the Prepros project.
The actual file concatenation logic has been ripped from the insides of PrePros, so thanks to Subash Pratakh for releasing those parts under the MIT license.
File an issue if there are problems. Pull requests are very welcome.