blob: 4051013dbea9a2c8921526bf7fcda49b93c20e91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
plugins {
id "com.moowork.node" version "1.2.0"
}
apply plugin: 'base'
apply plugin: 'idea'
buildDir = 'build'
node {
version = '8.11.1'
yarnVersion = '1.6.0'
download = true
}
task bundle(type: YarnTask) {
inputs.dir(new File('public'))
inputs.dir(new File('src'))
outputs.dir(new File("$buildDir"))
args = ['run', 'build']
}
task start(type: YarnTask) {
args = ['start']
}
task test(type: YarnTask) {
args = ['test:oneshot']
}
check.dependsOn(test)
bundle.dependsOn(yarn_install)
assemble.dependsOn(bundle)
|