influxdb: holt winters edits

This commit is contained in:
Torkel Ödegaard
2017-04-11 14:40:08 +02:00
6 changed files with 57 additions and 25 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ module.exports = function(config) {
'use strict'
return {
tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json",
tscompile: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics"
tscompile: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics",
tswatch: "node ./node_modules/typescript/lib/tsc.js -p tsconfig.json --diagnostics --watch",
};
};
+13 -13
View File
@@ -54,19 +54,19 @@ 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);
//
// // 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');
// }
done();
firstRun = false;