Browse files

Adding example of workaround for issue 12

  • Loading branch information...
1 parent 01a069a commit a03fd4511504bd2fbfff5419a7e3456f06450d28 Eric Wendelin committed Jan 24, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 issue12.gradle
View
15 issue12.gradle
@@ -31,4 +31,19 @@ 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")
}

0 comments on commit a03fd45

Please sign in to comment.