##// END OF EJS Templates
added optional lint parameter, -Plint=true to enable all lint tasks
cin -
r94:f8676ff23eda ts-plugin
parent child
Show More
@@ -9,6 +9,7 def tagDistance = 0;
9
9
10 ext {
10 ext {
11 packageName = "@$npmScope/$name"
11 packageName = "@$npmScope/$name"
12 lint = project.hasProperty('lint') ? lint : false
12 }
13 }
13
14
14 if (!version) {
15 if (!version) {
@@ -72,7 +73,6 typescript {
72 compilerOptions {
73 compilerOptions {
73 types = []
74 types = []
74 declaration = true
75 declaration = true
75 listFiles = true
76 }
76 }
77 tscCmd = "$projectDir/node_modules/.bin/tsc"
77 tscCmd = "$projectDir/node_modules/.bin/tsc"
78 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
78 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
@@ -80,6 +80,14 typescript {
80 npmCmd = "npm"
80 npmCmd = "npm"
81 }
81 }
82
82
83 tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
84 dependsOn "prepare"
85 }
86
87 tasks.matching{ it.name =~ /^lint/ }.configureEach {
88 onlyIf { lint }
89 }
90
83 task prepare {
91 task prepare {
84
92
85 }
93 }
@@ -97,6 +105,8 task printVersion {
97 }
105 }
98
106
99 task clean {
107 task clean {
108 prepare.mustRunAfter it
109
100 doLast {
110 doLast {
101 delete buildDir
111 delete buildDir
102 }
112 }
General Comments 0
You need to be logged in to leave comments. Login now