Yes, this is an alpha release right now, but I'd be really surprised if it ate your work. It does make my cat nervous, but then again ... everything makes my cat nervous.
Now, say you want to combine all of the .src.js files into a single file (that can later be minified with jsmin) and all of the .tests.js files into another file. That's where ConCatJS comes in!
concatjs.exe -s js -e .src.js -t js -o MyProject.js
concatjs.exe -s js -e .tests.js -t js -o MyProject.tests.js
Those two commands will recursively dig through your js directory tree and consolidate the contents of all the files matching the extension specified by the -e switch (defaults to ".js") and dump them into the file specified by the -o switch.
concatjs.exe -s js -e .src.js -t js -o MyProject.js -m MyProject.min.js
ConCatJS will also handle CSS files:
concatjs.exe -s cssbuild -e .css -t css -o MyProject.css -m MyProject.min.css
This is a work in progress. I intend to add the following features very soon:
- Support for a .hints file that will allow the files to be assembled in a user-configured order.
- An ignore switch to specify one or more files to not include.
- A UNIX/Linux/OS X port.