A grunt task that can stitch together multiple files into one based on the provided template.
This grunt task will automatically join multiple files into one file in the order you have defined in your stitch template file.
A stitch template file could look something like this:
If we then had the files
some_file.js and ran the
stitch task, we would get a new file that would look something like this:
Install the plugin with
npm install grunt-stitch-js --save-dev
Load the task in your
Note: NPM registry page for this plugin can be found here.
In order for the task to work it needs to know about two files:
templateFile: the file to use as the template
out: the file to write the result to
To configure the task put this into your
Note: you can have multiple targets (invoked with
all is one such target.
Please referrer to the Grunt Getting Started guide, if you haven't used Grunt before and need help.
Licensed under MIT. See LICENSE.md file for details.