##// 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 10 ext {
11 11 packageName = "@$npmScope/$name"
12 lint = project.hasProperty('lint') ? lint : false
12 13 }
13 14
14 15 if (!version) {
@@ -72,7 +73,6 typescript {
72 73 compilerOptions {
73 74 types = []
74 75 declaration = true
75 listFiles = true
76 76 }
77 77 tscCmd = "$projectDir/node_modules/.bin/tsc"
78 78 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
@@ -80,6 +80,14 typescript {
80 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 91 task prepare {
84 92
85 93 }
@@ -97,6 +105,8 task printVersion {
97 105 }
98 106
99 107 task clean {
108 prepare.mustRunAfter it
109
100 110 doLast {
101 111 delete buildDir
102 112 }
General Comments 0
You need to be logged in to leave comments. Login now