blob: 2b8eabfdb12a957827fa425c1aca49dddc928711 (
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
|
plugins {
id "com.moowork.node" version "1.1.1"
}
apply plugin: 'base'
node {
version = '6.9.4'
npmVersion = '4.1.1'
yarnVersion = '0.19.1'
download = true
}
task bundle(type: YarnTask) {
inputs.dir(new File('public'))
inputs.dir(new File('src'))
outputs.dir(new File('build'))
args = ['run', 'build']
}
task start(type: NpmTask) {
args = ['start']
}
task test(type: NpmTask) {
args = ['test']
}
check.dependsOn(test)
bundle.dependsOn(npm_install)
assemble.dependsOn(bundle)
|