|
|
@@ -8,6 +8,10 @@ module.exports = function(config, grunt) {
|
|
|
var lastTime;
|
|
|
|
|
|
grunt.registerTask('watch', function() {
|
|
|
+ if (!grunt.option('skip-ts-compile')) {
|
|
|
+ grunt.log.writeln('We recommoned starting with: grunt watch --force --skip-ts-compile')
|
|
|
+ grunt.log.writeln('Then do incremental typescript builds with: grunt exec:tswatch')
|
|
|
+ }
|
|
|
|
|
|
done = this.async();
|
|
|
lastTime = new Date().getTime();
|
|
|
@@ -58,6 +62,14 @@ module.exports = function(config, grunt) {
|
|
|
newPath = filepath.replace(/^public/, 'public_gen');
|
|
|
grunt.log.writeln('Copying to ' + newPath);
|
|
|
grunt.file.copy(filepath, newPath);
|
|
|
+
|
|
|
+ if (grunt.option('skip-ts-compile')) {
|
|
|
+ grunt.log.writeln('Skipping ts compile, run grunt exec:tswatch to start typescript watcher')
|
|
|
+ } else {
|
|
|
+ grunt.task.run('exec:tscompile');
|
|
|
+ }
|
|
|
+
|
|
|
+ grunt.config('tslint.source.files.src', filepath);
|
|
|
grunt.task.run('exec:tslint');
|
|
|
}
|
|
|
|