From 2d376545fe1891a3cd970b64afac6624d63913cc Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Wed, 16 Dec 2015 16:40:22 -0600 Subject: [PATCH] chore(build): remember cached files on watch --- gulpfile.js | 7 +++++-- package.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 5d32bfbe21..dd47296f19 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -9,6 +9,7 @@ var runSequence = require('run-sequence'); var watch = require('gulp-watch'); var tsc = require('gulp-typescript'); var cache = require('gulp-cached'); +var remember = require('gulp-remember'); var minimist = require('minimist'); var connect = require('gulp-connect'); @@ -113,7 +114,8 @@ gulp.task('watch', function(done) { var filePath = basePath + 'dist/' + relativePath; var typingPath = filePath.replace('.js', '.d.ts'); - delete cache.caches.transpile[file.history[0]]; + delete cache.caches['no-typecheck'][file.history[0]]; + remember.forget('no-typecheck', file.history[0]); del([filePath, typingPath], function(){ gulp.start('bundle'); @@ -170,8 +172,9 @@ gulp.task('bundle.system', function(){ var babel = require('gulp-babel'); var concat = require('gulp-concat'); - return tsCompile(tscOptionsEs6, 'babel') + return tsCompile(tscOptionsEs6, 'system') .pipe(babel(babelOptions)) + .pipe(remember('system')) .pipe(concat('ionic.system.js')) .pipe(gulp.dest('dist/bundles')) }) diff --git a/package.json b/package.json index 0ba4bbc17c..286e6b93d0 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "gulp-if": "^1.2.5", "gulp-insert": "^0.5.0", "gulp-minify-css": "^1.2.2", + "gulp-remember": "^0.3.0", "gulp-rename": "~1.2.0", "gulp-sass": "^2.0.4", "gulp-shell": "^0.4.0",