Skip to content

Commit a259a7b

Browse files
Speed-up grunt lint
Currently `grunt lint` might take more than 2-3 minutes. The problem is in the src files passed. In my case the scratch directory was around 2.5 GB and this was slowing down the linting, as we have included `!*.d.ts` files. Make sure only lib and test directories are used when linting as our source code and tests are there.
1 parent 67bf5f4 commit a259a7b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Gruntfile.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ module.exports = function(grunt) {
5959
},
6060

6161
tslint: {
62-
build: {
63-
files: {
64-
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!**/*.d.ts"]
65-
},
66-
options: {
67-
configuration: grunt.file.readJSON("./tslint.json")
68-
}
69-
}
70-
},
62+
build: {
63+
files: {
64+
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!lib/**/*.d.ts" , "!test/**/*.ts"]
65+
},
66+
options: {
67+
configuration: grunt.file.readJSON("./tslint.json")
68+
}
69+
}
70+
},
7171

7272
watch: {
7373
devall: {

0 commit comments

Comments
 (0)