forked from piper-magnetic/gradle-js-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
issue12.gradle
49 lines (42 loc) · 1.44 KB
/
issue12.gradle
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.eriwen:gradle-js-plugin:0.2'
}
}
configurations {
rhino
}
dependencies {
rhino 'org.mozilla:rhino:1.7R3'
}
apply plugin: 'js'
js {
file2 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file2.js'])
file1 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file1.js'])
inputs.files file2 + file1
outputs.file file("${buildDir}/all-debug.js")
compilationLevel = 'WHITESPACE_ONLY'
}
js {
file2 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file2.js'])
file1 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file1.js'])
inputs.files file2 + file1
outputs.file file("${buildDir}/all.js")
}
task jsDev(type: com.eriwen.gradle.js.tasks.JsTask) {
file2 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file2.js'])
file1 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file1.js'])
inputs.files file2 + file1
outputs.file file("${buildDir}/all-debug.js")
compilationLevel = 'WHITESPACE_ONLY'
}
task jsProd(type: com.eriwen.gradle.js.tasks.JsTask) {
file2 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file2.js'])
file1 = fileTree(dir: "${projectDir}/src/test/resources", includes: ['file1.js'])
inputs.files file2 + file1
outputs.file file("${buildDir}/all.js")
}