| @@ -78,6 +78,8 typescript { | |||||
| 78 | compilerOptions { |
|
78 | compilerOptions { | |
| 79 | types = [] |
|
79 | types = [] | |
| 80 | declaration = true |
|
80 | declaration = true | |
|
|
81 | sourceMap = true | |||
|
|
82 | sourceRoot = "." | |||
| 81 | } |
|
83 | } | |
| 82 | tscCmd = "$projectDir/node_modules/.bin/tsc" |
|
84 | tscCmd = "$projectDir/node_modules/.bin/tsc" | |
| 83 | tsLintCmd = "$projectDir/node_modules/.bin/tslint" |
|
85 | tsLintCmd = "$projectDir/node_modules/.bin/tslint" | |
| @@ -244,6 +246,26 task prepareBrowser { | |||||
| 244 | } |
|
246 | } | |
| 245 | } |
|
247 | } | |
| 246 |
|
248 | |||
|
|
249 | task npmPackTypingsAmd(type: Copy) { | |||
|
|
250 | dependsOn sources.main.output | |||
|
|
251 | dependsOn sources.amd.output | |||
|
|
252 | npmPack.mustRunAfter it | |||
|
|
253 | ||||
|
|
254 | from sources.main.output.typingsDir | |||
|
|
255 | from sources.amd.output.typingsDir | |||
|
|
256 | ||||
|
|
257 | into "${->buildDir}/npm/pack" | |||
|
|
258 | } | |||
|
|
259 | ||||
|
|
260 | task npmPackSourcesAmd(type: Copy) { | |||
|
|
261 | from sources.main.ts | |||
|
|
262 | from sources.amd.ts | |||
|
|
263 | ||||
|
|
264 | npmPack.mustRunAfter it | |||
|
|
265 | ||||
|
|
266 | into "${->buildDir}/npm/pack" | |||
|
|
267 | } | |||
|
|
268 | ||||
| 247 | task assembleBrowser { |
|
269 | task assembleBrowser { | |
| 248 | dependsOn prepareBrowser, assembleAmd, assemble |
|
270 | dependsOn prepareBrowser, assembleAmd, assemble | |
| 249 | } |
|
271 | } | |
| @@ -260,6 +282,11 task testNode { | |||||
| 260 | dependsOn prepareNode, assembleTestCjs, test |
|
282 | dependsOn prepareNode, assembleTestCjs, test | |
| 261 | } |
|
283 | } | |
| 262 |
|
284 | |||
|
|
285 | task npmPackBrowser { | |||
|
|
286 | dependsOn assembleBrowser, npmPack, npmPackSourcesAmd, npmPackTypingsAmd | |||
|
|
287 | } | |||
|
|
288 | ||||
|
|
289 | ||||
| 263 | task packJsTar(type: Tar) { |
|
290 | task packJsTar(type: Tar) { | |
| 264 | dependsOn assemble; |
|
291 | dependsOn assemble; | |
| 265 |
|
292 | |||
| @@ -276,6 +303,9 task packJsTar(type: Tar) { | |||||
| 276 | } |
|
303 | } | |
| 277 | } |
|
304 | } | |
| 278 |
|
305 | |||
|
|
306 | task packTypingsTar(type: Tar) { | |||
|
|
307 | } | |||
|
|
308 | ||||
| 279 | publishing { |
|
309 | publishing { | |
| 280 | publications { |
|
310 | publications { | |
| 281 | local(IvyPublication) { |
|
311 | local(IvyPublication) { | |
General Comments 0
You need to be logged in to leave comments.
Login now
