##// END OF EJS Templates
Working on build, vs code tasks
cin -
r98:2e1aa35d6371 ts-plugin
parent child
Show More
@@ -53,7 +53,7 typescript {
53 53 types = []
54 54 declaration = true
55 55 sourceMap = true
56 sourceRoot = "."
56 sourceRoot = "_src"
57 57 }
58 58 tscCmd = "$projectDir/node_modules/.bin/tsc"
59 59 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
@@ -118,17 +118,37 test {
118 118 }
119 119
120 120 assemble {
121 mustRunAfter sources.amd.output,
122 sources.cjs.output
123
121 124 from sources.amd.output.compiledDir
122 125 from sources.cjs.output.compiledDir
123 126 }
124 127
125 128 assembleTest {
129 mustRunAfter sources.amd.output,
130 sources.cjs.output,
131 sources.testAmd.output,
132 sources.testCjs.output
133
126 134 from sources.amd.output.compiledDir
127 135 from sources.cjs.output.compiledDir
128 136 from sources.testAmd.output.compiledDir
129 137 from sources.testCjs.output.compiledDir
130 138 }
131 139
140 task prepareLocalDebug {
141 prepare.mustRunAfter it
142
143 doLast {
144 tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
145 compilerOptions {
146 sourceRoot = "file://" + it.rootDir
147 }
148 }
149 }
150 }
151
132 152 task prepareNode {
133 153 prepare.mustRunAfter it
134 154
@@ -176,7 +196,7 task npmPackSourcesAmd(type: Copy) {
176 196
177 197 npmPack.mustRunAfter it
178 198
179 into "${->buildDir}/npm/pack"
199 into "${->buildDir}/npm/pack/_src"
180 200 }
181 201
182 202 task assembleBrowser {
@@ -187,6 +207,10 task assembleNode {
187 207 dependsOn prepareNode, assemble, sources.cjs.output
188 208 }
189 209
210 task assembleTestBrowser {
211 dependsOn prepareBrowser, prepareLocalDebug, assembleTest, sources.amd.output, sources.testAmd.output
212 }
213
190 214 task testBrowser {
191 215 dependsOn prepareBrowser, test, sources.amd.output, sources.testAmd.output
192 216 }
General Comments 0
You need to be logged in to leave comments. Login now