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