I'm trying to convert a CodeKit project to use Grunt (so we can support our Windows friends).
In CodeKit, you can concatenate JS files by including concat instructions as comments in the files you want concatenated. For example, to prepend jquery.validate.js
to your scripts.js
file, you would add the following comment to scripts.js
:
/* @codekit-prepend "jquery.validate.js" */
How can I configure grunt-concat (or a similar plugin) to concatenate JS files based on instructions within the files themselves? I'd prefer to have concat instructions in the files so it's more clear what's going on (as opposed to referring to Gruntfile.js).