This commit is contained in:
Torkel Ödegaard
2017-04-18 16:58:34 +02:00
parent 3ee886d0fb
commit db36639ffc
6 changed files with 22 additions and 4 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
module.exports = function(config) {
module.exports = function(config, grunt) {
'use strict'
return {
tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json <%= tslint.source.files.src %>",
tslint : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json",
tslintfile : "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json <%= tslint.source.files.src %>",
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",
};
+11
View File
@@ -0,0 +1,11 @@
module.exports = function(config, grunt) {
'use strict'
// dummy to avoid template compile error
return {
source: {
files: {
src: ""
}
}
};
};
+1 -1
View File
@@ -70,7 +70,7 @@ module.exports = function(config, grunt) {
}
grunt.config('tslint.source.files.src', filepath);
grunt.task.run('exec:tslint');
grunt.task.run('exec:tslintfile');
}
done();