From 9099119f6293f7648c43d074eac5d0e4e4a9266d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 11 Apr 2017 14:42:35 +0200 Subject: [PATCH] grunt: minor watch fix --- tasks/options/watch.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tasks/options/watch.js b/tasks/options/watch.js index b74eb4a0c6a..545a149054a 100644 --- a/tasks/options/watch.js +++ b/tasks/options/watch.js @@ -54,19 +54,12 @@ module.exports = function(config, grunt) { grunt.task.run('css'); } - // if (/(\.ts)$/.test(filepath)) { - // newPath = filepath.replace(/^public/, 'public_gen'); - // grunt.log.writeln('Copying to ' + newPath); - // grunt.file.copy(filepath, newPath); - // - // // copy ts file also used by source maps - // //changes changed file source to that of the changed file - // grunt.config('typescript.build.src', filepath); - // grunt.config('tslint.source.files.src', filepath); - // - // grunt.task.run('exec:tscompile'); - // grunt.task.run('exec:tslint'); - // } + if (/(\.ts)$/.test(filepath)) { + newPath = filepath.replace(/^public/, 'public_gen'); + grunt.log.writeln('Copying to ' + newPath); + grunt.file.copy(filepath, newPath); + grunt.task.run('exec:tslint'); + } done(); firstRun = false;