annotate core/build.gradle @ 29:acdcdf1a8d21

repository reorganized
author cin
date Tue, 26 Jun 2018 19:35:44 +0300
parents
children 2dfba21cd879 40d2e49a7219
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
1
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
2 println "version: $version"
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
3
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
4 task prepare(type: Copy) {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
5 from('src')
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
6 from('.') {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
7 include 'readme.md', 'license', 'history.md', 'package.json'
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
8 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
9 into(buildDir)
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
10 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
11
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
12 task build(dependsOn: prepare) {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
13 }
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
14
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
15 task pack(dependsOn: build, type: Exec) {
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
16 workingDir = buildDir
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
17
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
18 commandLine 'npm', 'pack'
acdcdf1a8d21 repository reorganized
cin
parents:
diff changeset
19 }