aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/build.gradle
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-25 21:36:50 +0300
committerGravatar Vitaly Takmazov2016-07-27 13:56:09 +0300
commit69af3f60d399157a8951988fa2f91d29c553fbb5 (patch)
tree8c38def00d1b3dc5e38cf421870afb62f3a823ea /juick-ws/build.gradle
parent94c0d43d2765488d715bffe426934ed7caa8f4f2 (diff)
juick-ws: websocket terminal
Diffstat (limited to 'juick-ws/build.gradle')
-rw-r--r--juick-ws/build.gradle11
1 files changed, 11 insertions, 0 deletions
diff --git a/juick-ws/build.gradle b/juick-ws/build.gradle
index a46f3b9f..d20131b3 100644
--- a/juick-ws/build.gradle
+++ b/juick-ws/build.gradle
@@ -1,3 +1,11 @@
+plugins {
+ id "com.moowork.node" version "0.13"
+}
+
+task compileFrontend(type: NpmTask) {
+ args = ['run', 'compile']
+}
+
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
@@ -17,10 +25,13 @@ dependencies {
compile 'javax.inject:javax.inject:1'
compile 'org.apache.httpcomponents:httpclient:4.5.1'
compile 'org.apache.commons:commons-dbcp2:2.0'
+ compile 'com.mitchellbosecke:pebble-spring4:2.2.2'
testCompile 'junit:junit:4.12'
providedRuntime 'mysql:mysql-connector-java:5.1.39'
}
+compileFrontend.dependsOn 'npmInstall'
+war.dependsOn 'compileFrontend'
compileJava.options.encoding = 'UTF-8'
gretty {