observing / square

The last build system you would ever want to use
MIT License
56 stars 9 forks source link

Watch for changes in imported files inside the dependancies #38

Closed Swaagie closed 11 years ago

Swaagie commented 12 years ago

Feature request, watch for changes in files inside dependancies, e.g. [square] @import

if possible add external tools imports, like stylus @import '...'

3rd-Eden commented 12 years ago

In order for this to work for pre-processors we need to change your preprocessor.js file.. And go with a different structure

preprocess\
  index.js -- exposes all pre-processors
  stylus.js
  coffeescript.js
  ...

Each pre-processor would need to expose their own imports functions that is capable of parsing / scanning their own files. As one single uber regular expression is not gonna help here as stylus allows you to import with or without extensions etc..

So we might need to overhaul our pre-processing structure for this.