| @@ -254,10 +254,15 task _packageMeta(type: Copy) { | |||
|
|
254 | 254 | } |
|
|
255 | 255 | |
|
|
256 | 256 | task pack(dependsOn: [build, _packageMeta], type: Exec) { |
|
|
257 | def packageFile = "$npmScope-$npmName-${version}.tgz" | |
|
|
257 | 258 | workingDir distDir |
|
|
258 | outputs.file("$npmScope-$npmName-${version}.tgz") | |
|
|
259 | outputs.file("$buildDir/$packageFile") | |
|
|
259 | 260 | |
|
|
260 | 261 | commandLine 'npm', 'pack' |
|
|
262 | doLast { | |
|
|
263 | ant.move file: "$distDir/$packageFile", | |
|
|
264 | todir: buildDir | |
|
|
265 | } | |
|
|
261 | 266 | } |
|
|
262 | 267 | |
|
|
263 | 268 | task publish(dependsOn: [build, _packageMeta], type: Exec) { |
General Comments 0
You need to be logged in to leave comments.
Login now
