k-maru / grunt-typescript

MIT License
137 stars 60 forks source link

Incremental build support #92

Open stephenfhunt opened 9 years ago

stephenfhunt commented 9 years ago

It would be nice to have an "incremental" option that would filter the file list to those where the ts source is newer than the js output. Obviously, it would not work for the case where you produce a single js output file, but when there is a js per ts it could speed up builds of large code bases significantly.

Coridyn commented 9 years ago

Your best bet might be to try out the watch option.

After the initial startup it will compile just the files that have changed and has the benefit that subsequent compile events will be quicker (because the runtime is already loaded).

grunt-concurrent can be used if you need to run multiple blocking watchers simultaneously (e.g. the TypeScript watch and regular grunt-watch tasks).

That's the closest thing available to performing differential builds at the moment.