roblarsen/CeeJS — pull request #22 by bobholt (2014-12-15 00:58:16+00:00)
Title: Gruntify

Fixes #20. Broken into 3 commits in case you want to break this up:

- Replicate existing ANT tasks (probably should have been more atomic ¯\_(ツ)_/¯)
- Add Jasmine Automation
- Add gh-pages task

Basics:

1. Clone
1. `npm install -g grunt-cli`
1. `npm install`

Runt `grunt --help` to see all tasks. Basics, though:
* `grunt` - alias for `grunt dev` - runs lint, tests, and starts watch task
* `grunt dist` - does the above (minus watch), copies Cee.js to root, minifies to root, builds documentation, duplicates all of that work into gh-pages, and pushes gh-pages to GitHub.

The gh-pages branch looked pretty different from the master branch - even the index.html file, so I created a gh-pages directory that has the reflects the current state. The `dist` task keeps this directory in sync with the main repo. The gh-pages task pushes this directory (and only this directory) to your origin/gh-pages branch. Note this is automatic. If you run `grunt dist` your origin/gh-pages branch on GitHub WILL be overwritten.

I'd rather see the master branch have everything that needs to go in gh-pages, and just duplicate the repo there, but you may disagree. We can make a different issue for that. It would eliminate the need to duplicate the clean, copy, uglify, rename, and jsdoc tasks for both `./` and `gh-pages/`