Mercurial > pub > ImplabJs
annotate core/build.gradle @ 30:2dfba21cd879
sync
author | cin |
---|---|
date | Wed, 27 Jun 2018 02:46:14 +0300 |
parents | acdcdf1a8d21 |
children | 1dc2fd263b90 |
rev | line source |
---|---|
30 | 1 println "version: $project.version $foo" |
29 | 2 |
3 task prepare(type: Copy) { | |
30 | 4 from('src/js') |
29 | 5 from('.') { |
6 include 'readme.md', 'license', 'history.md', 'package.json' | |
7 } | |
8 into(buildDir) | |
30 | 9 |
10 doLast { | |
11 exec { | |
12 commandLine 'npm', 'version', version | |
13 } | |
14 } | |
29 | 15 } |
16 | |
17 task build(dependsOn: prepare) { | |
18 } | |
19 | |
20 task pack(dependsOn: build, type: Exec) { | |
21 workingDir = buildDir | |
22 | |
23 commandLine 'npm', 'pack' | |
24 } |