gobblejs / gobble

The last build tool you'll ever need
333 stars 20 forks source link

more robust invalidation #43

Closed Rich-Harris closed 9 years ago

Rich-Harris commented 9 years ago

This fixes #42, and introduces a more robust approach to build invalidation. Rather than treating invalidation (i.e. debounced file changes) as an error, there's a special invalidate event which triggers a rebuild (assuming we're watching the tree, that is). Transformer node ready promises will be rejected if a source is invalidated during the transformation; the ABORTED signal will propagate down the tree and be harmlessly ignored by the watch task.