mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Remove grunt-tslint. Use an npm script for that.
This commit is contained in:
21
gruntfile.js
21
gruntfile.js
@ -169,13 +169,6 @@ module.exports = function(grunt) {
|
|||||||
"!obj/**/*.*"
|
"!obj/**/*.*"
|
||||||
];
|
];
|
||||||
localCfg.defaultExcludes = localCfg.typeScriptSrc.filter(function(item) { return /^!/.test(item); });
|
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 = [
|
localCfg.srcTsdFiles = [
|
||||||
"tns-core-modules/**/*.d.ts",
|
"tns-core-modules/**/*.d.ts",
|
||||||
"!tns-core-modules/ios/**",
|
"!tns-core-modules/ios/**",
|
||||||
@ -321,16 +314,6 @@ module.exports = function(grunt) {
|
|||||||
dest: "<%= grunt.option('path') %>/node_modules/tns-core-modules/",
|
dest: "<%= grunt.option('path') %>/node_modules/tns-core-modules/",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tslint: {
|
|
||||||
build: {
|
|
||||||
files: {
|
|
||||||
src: localCfg.typeScriptSrcForTsLint
|
|
||||||
},
|
|
||||||
options: {
|
|
||||||
configuration: grunt.file.readJSON("./build/tslint.json")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
exec: {
|
exec: {
|
||||||
packModules: {
|
packModules: {
|
||||||
cmd: "npm pack",
|
cmd: "npm pack",
|
||||||
@ -351,6 +334,7 @@ module.exports = function(grunt) {
|
|||||||
compileNodeTests: "npm run compile-node-tests",
|
compileNodeTests: "npm run compile-node-tests",
|
||||||
compileCheckBaseDts: "npm run compile-check-base-dts",
|
compileCheckBaseDts: "npm run compile-check-base-dts",
|
||||||
compileCheckCombinedDts: "npm run compile-check-combined-dts",
|
compileCheckCombinedDts: "npm run compile-check-combined-dts",
|
||||||
|
tslint: "npm run tslint",
|
||||||
},
|
},
|
||||||
simplemocha: {
|
simplemocha: {
|
||||||
node: {
|
node: {
|
||||||
@ -382,7 +366,6 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
grunt.loadNpmTasks("grunt-contrib-clean");
|
grunt.loadNpmTasks("grunt-contrib-clean");
|
||||||
grunt.loadNpmTasks("grunt-contrib-copy");
|
grunt.loadNpmTasks("grunt-contrib-copy");
|
||||||
grunt.loadNpmTasks("grunt-tslint");
|
|
||||||
grunt.loadNpmTasks("grunt-exec");
|
grunt.loadNpmTasks("grunt-exec");
|
||||||
grunt.loadNpmTasks("grunt-shell");
|
grunt.loadNpmTasks("grunt-shell");
|
||||||
grunt.loadNpmTasks("grunt-simple-mocha");
|
grunt.loadNpmTasks("grunt-simple-mocha");
|
||||||
@ -530,7 +513,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
grunt.registerTask("get-ready-packages", ["copy:readyPackages"]);
|
grunt.registerTask("get-ready-packages", ["copy:readyPackages"]);
|
||||||
|
|
||||||
grunt.registerTask("default", (skipTsLint ? [] : ["tslint:build"]).concat([
|
grunt.registerTask("default", (skipTsLint ? [] : ["shell:tslint"]).concat([
|
||||||
"build-all",
|
"build-all",
|
||||||
"pack-apps",
|
"pack-apps",
|
||||||
"get-ready-packages"
|
"get-ready-packages"
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
"grunt-mkdir": "1.0.0",
|
"grunt-mkdir": "1.0.0",
|
||||||
"grunt-shell": "2.1.0",
|
"grunt-shell": "2.1.0",
|
||||||
"grunt-simple-mocha": "0.4.1",
|
"grunt-simple-mocha": "0.4.1",
|
||||||
"grunt-tslint": "4.0.0",
|
|
||||||
"grunt-typedoc": "0.2.4",
|
"grunt-typedoc": "0.2.4",
|
||||||
"http-server": "^0.9.0",
|
"http-server": "^0.9.0",
|
||||||
"markdown-snippet-injector": "0.1.1",
|
"markdown-snippet-injector": "0.1.1",
|
||||||
|
Reference in New Issue
Block a user