mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
grunt: minor watch fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user