This repository was archived by the owner on Apr 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
69 lines (55 loc) · 2.61 KB
/
build.sbt
File metadata and controls
69 lines (55 loc) · 2.61 KB
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
62
63
64
65
66
67
68
69
import sbt.Resolver
name := """LearnDuelWeb"""
version := "0.0.1-SNAPSHOT"
lazy val learnduelweb =
(project in file(".")).enablePlugins(PlayScala).dependsOn(learnduel)
lazy val learnduel = RootProject(
uri("https://github.com/bb30/learn-duel.git#v0.6.1"))
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers += Resolver.url("scoverage-bintray",
url("https://dl.bintray.com/sksamuel/sbt-plugins/"))(
Resolver.ivyStylePatterns)
scalaVersion := "2.12.6"
libraryDependencies += guice
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.3" % Test
libraryDependencies += "com.h2database" % "h2" % "1.4.196"
libraryDependencies += "org.webjars" % "bootstrap" % "4.0.0-beta.2" exclude ("org.webjars", "jquery")
resolvers += Resolver.jcenterRepo
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies += "com.mohiva" %% "play-silhouette" % "5.0.0"
libraryDependencies += "com.mohiva" %% "play-silhouette-password-bcrypt" % "5.0.0"
libraryDependencies += "com.mohiva" %% "play-silhouette-persistence" % "5.0.0"
libraryDependencies += "com.mohiva" %% "play-silhouette-crypto-jca" % "5.0.0"
libraryDependencies += "org.webjars" % "jquery" % "3.2.1"
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.0"
libraryDependencies += "com.iheart" %% "ficus" % "1.4.1"
libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.2-P26-B3"
libraryDependencies += "com.enragedginger" %% "akka-quartz-scheduler" % "1.6.1-akka-2.5.x"
libraryDependencies += "com.mohiva" %% "play-silhouette-testkit" % "5.0.0" % "test"
libraryDependencies += specs2 % Test
libraryDependencies += ehcache
libraryDependencies += filters
unmanagedSourceDirectories in Compile := (unmanagedSourceDirectories in Compile).value.filter{ _.exists }
unmanagedSourceDirectories in Test := (unmanagedSourceDirectories in Test).value.filter{ _.exists }
routesGenerator := InjectedRoutesGenerator
routesImport += "utils.route.Binders._"
val key = AttributeKey[Int]("load-count")
val f = (s: State) => {
import sys.process._
val previous = s get key getOrElse 0
println("Project load count: " + previous)
var command = System.getProperty("os.name") match {
case name if name.toLowerCase.contains("win") => {
Seq("cmd", "/c", "yarn", "install") !;
Seq("cmd", "/c", "yarn", "run", "css-modules") !;
Seq("cmd", "/c", "yarn", "webpack") !;
}
case _ => {
Seq("yarn", "install") !;
Seq("yarn", "run", "css-modules") !;
Seq("yarn", "webpack") !;
}
}
s.put(key, previous + 1)
}
onLoad in Global ~= (f compose _)