Remove grunt-tslint. Use an npm script for that.

This commit is contained in:
Hristo Deshev
2017-02-10 18:21:38 +02:00
parent cdf08378b0
commit 65c3ad59a7
2 changed files with 2 additions and 20 deletions

View File

@ -169,13 +169,6 @@ module.exports = function(grunt) {
"!obj/**/*.*"
];
localCfg.defaultExcludes = localCfg.typeScriptSrc.filter(function(item) { return /^!/.test(item); });
localCfg.typeScriptSrcForTsLint = localCfg.typeScriptSrc.concat([
"!tns-core-modules/libjs.d.ts",
"!tns-core-modules/lib.core.es6.d.ts",
"!tns-core-modules/lib.dom.d.ts",
"!tns-core-modules.es2016.d.ts",
"!tns-platform-declarations/**/*"
]);
localCfg.srcTsdFiles = [
"tns-core-modules/**/*.d.ts",
"!tns-core-modules/ios/**",
@ -321,16 +314,6 @@ module.exports = function(grunt) {
dest: "<%= grunt.option('path') %>/node_modules/tns-core-modules/",
}
},
tslint: {
build: {
files: {
src: localCfg.typeScriptSrcForTsLint
},
options: {
configuration: grunt.file.readJSON("./build/tslint.json")
}
}
},
exec: {
packModules: {
cmd: "npm pack",
@ -351,6 +334,7 @@ module.exports = function(grunt) {
compileNodeTests: "npm run compile-node-tests",
compileCheckBaseDts: "npm run compile-check-base-dts",
compileCheckCombinedDts: "npm run compile-check-combined-dts",
tslint: "npm run tslint",
},
simplemocha: {
node: {
@ -382,7 +366,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-tslint");
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-shell");
grunt.loadNpmTasks("grunt-simple-mocha");
@ -530,7 +513,7 @@ module.exports = function(grunt) {
grunt.registerTask("get-ready-packages", ["copy:readyPackages"]);
grunt.registerTask("default", (skipTsLint ? [] : ["tslint:build"]).concat([
grunt.registerTask("default", (skipTsLint ? [] : ["shell:tslint"]).concat([
"build-all",
"pack-apps",
"get-ready-packages"

View File

@ -18,7 +18,6 @@
"grunt-mkdir": "1.0.0",
"grunt-shell": "2.1.0",
"grunt-simple-mocha": "0.4.1",
"grunt-tslint": "4.0.0",
"grunt-typedoc": "0.2.4",
"http-server": "^0.9.0",
"markdown-snippet-injector": "0.1.1",