jgable / gulp-cache

A cache proxy task for Gulp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dieing without an error

puggan opened this issue · comments

Set up an exemple project, to see why gulp-typescript, gulp-cache didn't work togheter.
https://github.com/puggan/exemples/tree/bug/gulp-typescript

As both the tasks "ts1-cache" and "map-cache" fails / dies without an error,
my guess is that its something wrong in the gulp-cache package.

I tried gulp-cache with gulp-typescript before, they don't work well.
gulp-typescript is not doing things in "gulp" way, I also had issue with it on source map support.

Conceptually you should not use gulp-cache to gulp-typescript. Because typescript transpiling is NOT one-to-one transform. When compiling one ts file, the TypeScript compiler does typing checking across the whole project. So even when the file being processing is not changed, it could pass or fail due to changes from other files.