brunch/brunch — Issue #178: brunch watch bug
Author: kinua
Created: 2012-01-16 07:37:34+00:00
State: open

The "brunch watch" process failed while i was editting a styl file. After that, i executed "brunch build" command. However, the content i editted in build/index.html disappeared and rollback to the original content.

The version i used is 0.9.0-beta1
```
/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:278
order = this.files[destFile.path].order;
^
TypeError: Cannot read property 'order' of undefined
at FileWriter. (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:278:40)
at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:6:61
at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:97:13
at Array.forEach (native)
at /home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:26:24
at Object.forEach (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/node_modules/async/lib/async.js:96:9)
at FileWriter. (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:309:20)
at Object._onTimeout (/home/jarvis/.nvm/v0.6.7/lib/node_modules/brunch/lib/fs_utils.js:6:61)
at Timer.ontimeout (timers.js:84:39)
```