Is there any method or solution for javascript compilation and combination like with lessc? I need a cli command for merging javascripts into one file. Maybe is there any nodejs app for it? Earlier I used CodeKit on mac, and that could compress and merge every file into one with annotated filenames like this:
// @codekit-prepend "blahblah.js"
I found Uglify2 for it, but I don't know surely it's the best solution for my problem.
I need something like this:
jscompilecommand filename.js > combined.min.js
or
jscompilecommand filename1.js, filename2.js, filename3.js > combined.min.js