RobotWebTools/rosjs — pull request #18 by baalexander (2012-09-27 05:21:20+00:00)
Title: Adds build script to create bundled ros.js files

Trying out [grunt.js](http://gruntjs.com/) to concatenate and minimize ros.js.

Grunt.js is a build-tool for JavaScript that's been gaining traction lately. It has good support for things like linting code to conform to a standard, testing code (for the future), concatenating and minimizing files, generating documentation, and more.

The grunt.js file I added does two things:

1) It creates a ros_bundle.js in the dist/ directory. ros_bundle.js is EventEmitter2.js (and any future dependencies) and ros.js bundled as a single file. I'm definitely open to name changes for this file.

2) It minimizes ros.js and ros_bundle.js and places the minimized files in dist/.

The grunt.js website has details on installing grunt (it's a one liner, but requires node.js). Once installed, all you have to do is go to the root of the rosjs project and type `grunt` and it performs all the build tasks.

I'm open to suggestions and other ideas here!