##// END OF EJS Templates
sync
cin -
r1:f8d286784617 default
parent child
Show More
@@ -1,19 +1,24
1
1 println "version: $project.version $foo"
2 println "version: $version"
3
2
4 task prepare(type: Copy) {
3 task prepare(type: Copy) {
5 from('src')
4 from('src/js')
6 from('.') {
5 from('.') {
7 include 'readme.md', 'license', 'history.md', 'package.json'
6 include 'readme.md', 'license', 'history.md', 'package.json'
8 }
7 }
9 into(buildDir)
8 into(buildDir)
9
10 doLast {
11 exec {
12 commandLine 'npm', 'version', version
13 }
14 }
10 }
15 }
11
16
12 task build(dependsOn: prepare) {
17 task build(dependsOn: prepare) {
13 }
18 }
14
19
15 task pack(dependsOn: build, type: Exec) {
20 task pack(dependsOn: build, type: Exec) {
16 workingDir = buildDir
21 workingDir = buildDir
17
22
18 commandLine 'npm', 'pack'
23 commandLine 'npm', 'pack'
19 } No newline at end of file
24 }
General Comments 0
You need to be logged in to leave comments. Login now