-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
61 lines (45 loc) · 2.3 KB
/
build.sbt
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
50
51
52
53
54
55
56
57
58
59
60
61
name := "toast-tk-webapp"
version := "2.0.0-SNAPSHOT"
val toastVersion = "2.0.0-SNAPSHOT"
val toastVersionStable = "2.0.0-SNAPSHOT"
scalaVersion := "2.11.8"
resolvers += "JBoss" at "https://repository.jboss.org/"
resolvers += Resolver.mavenLocal
resolvers += "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
resolvers += "MavenSnapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
resolvers += "Typesafe" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
ws,
"com.google.code.gson" % "gson" % "2.5",
"org.reactivemongo" % "reactivemongo_2.11" % "0.11.7",
"org.webjars" % "jquery" % "1.7.2",
"org.webjars" % "angularjs" % "1.3.0",
"org.webjars" % "requirejs" % "2.1.1",
"org.webjars" % "webjars-play" % "2.1.0-1",
"org.webjars" % "bootstrap" % "3.2.0-1",
"io.toast-tk" % "toast-tk-runtime" % toastVersionStable,
"io.toast-tk" % "toast-tk-dao-api" % toastVersionStable,
"io.toast-tk" % "toast-tk-interpret" % toastVersionStable,
"io.toast-tk" % "toast-tk-selenium-plugin" % toastVersion,
"org.seleniumhq.selenium" % "selenium-java" % "2.53.0",
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "1.50.0",
"com.pauldijou" %% "jwt-play" % "0.5.1",
"org.scalatestplus" % "play_2.11" % "1.4.0-M3"% "test",
"com.github.simplyscala" %% "scalatest-embedmongo" % "0.2.2" % "test",
"com.typesafe.play" %% "play-mailer" % "4.0.0",
"io.megl" % "play-json-extra_2.11" % "2.4.3",
"com.github.simplyscala" %% "scalatest-embedmongo" % "0.2.2" % "test",
"org.seleniumhq.selenium" % "htmlunit-driver" % "2.23.1" % "test",
"org.seleniumhq.selenium" % "selenium-support" % "3.0.1" % "test",
"com.sendgrid" % "sendgrid-java" % "3.0.9"
)
//TODO: move to injected resources - @Inject()
//routesGenerator := StaticRoutesGenerator
lazy val root = (project in file(".")).enablePlugins(SbtWeb).enablePlugins(PlayScala)
unmanagedResourceDirectories in Assets += baseDirectory.value / "assets"
lazy val npmBuildTask = TaskKey[Unit]("npm")
npmBuildTask := {
"npm install" #&& "node ./node_modules/bower/bin/bower install" #&& "node ./node_modules/gulp/bin/gulp" #&& "rm -rf ./app/assets/libs" #&& "mv -f ./libs ./app/assets"!
}
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node
compile <<= (compile in Compile) dependsOn npmBuildTask