annotate core/build.gradle @ 30:2dfba21cd879

sync
author cin
date Wed, 27 Jun 2018 02:46:14 +0300
parents acdcdf1a8d21
children 1dc2fd263b90
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
cin
parents: 29
diff changeset
1 println "version: $project.version $foo"
29
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
2
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
3 task prepare(type: Copy) {
30
cin
parents: 29
diff changeset
4 from('src/js')
29
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
5 from('.') {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
6 include 'readme.md', 'license', 'history.md', 'package.json'
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
7 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
8 into(buildDir)
30
cin
parents: 29
diff changeset
9
cin
parents: 29
diff changeset
10 doLast {
cin
parents: 29
diff changeset
11 exec {
cin
parents: 29
diff changeset
12 commandLine 'npm', 'version', version
cin
parents: 29
diff changeset
13 }
cin
parents: 29
diff changeset
14 }
29
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
15 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
16
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
17 task build(dependsOn: prepare) {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
18 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
19
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
20 task pack(dependsOn: build, type: Exec) {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
21 workingDir = buildDir
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
22
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
23 commandLine 'npm', 'pack'
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
24 }