##// END OF EJS Templates
added tasks to pack typings and sources to npm packages
cin -
r96:d4b81cc5c00f ts-plugin
parent child
Show More
@@ -78,6 +78,8 typescript {
78 78 compilerOptions {
79 79 types = []
80 80 declaration = true
81 sourceMap = true
82 sourceRoot = "."
81 83 }
82 84 tscCmd = "$projectDir/node_modules/.bin/tsc"
83 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 269 task assembleBrowser {
248 270 dependsOn prepareBrowser, assembleAmd, assemble
249 271 }
@@ -260,6 +282,11 task testNode {
260 282 dependsOn prepareNode, assembleTestCjs, test
261 283 }
262 284
285 task npmPackBrowser {
286 dependsOn assembleBrowser, npmPack, npmPackSourcesAmd, npmPackTypingsAmd
287 }
288
289
263 290 task packJsTar(type: Tar) {
264 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 309 publishing {
280 310 publications {
281 311 local(IvyPublication) {
General Comments 0
You need to be logged in to leave comments. Login now