From b812cd86fb3a05e95cdee61f8ac9b04bafdf9ee1 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Mon, 14 Dec 2015 15:05:35 -0600 Subject: [PATCH] fix transpile task caching --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0e08a7280b..0023e36cc5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -117,13 +117,13 @@ gulp.task('clean', function(done) { del(['dist/**', '!dist'], done); }); -function tsResult(options){ +function tsResult(options, cacheName){ return gulp.src([ 'ionic/**/*.ts', '!ionic/components/*/test/**/*', '!ionic/util/test/*' ]) - .pipe(cache('transpile', { optimizeMemory: true })) + .pipe(cache(cacheName, { optimizeMemory: true })) .pipe(tsc(options, undefined, tscReporter)) .on('error', function(error) { console.log(error.message); @@ -131,14 +131,14 @@ function tsResult(options){ }); } gulp.task('transpile.no-typecheck', function(){ - return tsResult(tscOptionsNoTypeCheck) + return tsResult(tscOptionsNoTypeCheck, 'no-typecheck') .pipe(gulp.dest('dist')); }); gulp.task('transpile.typecheck', function(){ var merge = require('merge2'); - var result = tsResult(tscOptions); + var result = tsResult(tscOptions, 'typecheck'); // merge definition and source streams return merge([