neocotic/iOrder — Issue #11: Update build process
Author: neocotic
Created: 2012-01-05 08:54:17+00:00
State: open
Labels: build, framework

The existing process should be overhauled or replaced. Either way, the new process should perform these basic tasks.

**clean**

Cleans `dist` and `bin` folders.

**build** (default)

Copies all files in `src` to `bin` and minifies all internal core javascript files *without validating*. Preferably, find a way in which the file header comment is also present in the minified versions. Minified files should also be mangled for further optimization.

**dist**

Compresses all files in `bin` in to the archive (zip) file used for distribution.

**docs**

Creates documentation based on all internal core javascript files in `src`. This should now be generated using [docco](http://jashkenas.github.com/docco). These generated documents should now be stored under version control.

---

It might be worth creating a `Cakefile` instead and rewrite the process in [CoffeeScript](http://coffeescript.org). It would also be good if the only [NodeJS](http://nodejs.org) is used so that [npm](http://npmjs.org) can be used to download the necessary requirements.

I'll look in to this further when I get round to this, but it should allow for a lot of the files in `build` to be cleared out.