forked from joost-de-vries/play-angular-typescript.g8
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
56 lines (47 loc) · 2.11 KB
/
build.sbt
File metadata and controls
56 lines (47 loc) · 2.11 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
name := """play-angular2-typescript-java"""
version := "0.2.0-beta.4"
lazy val root = (project in file(".")).enablePlugins(PlayJava)
scalaVersion := "2.11.8"
incOptions := incOptions.value.withNameHashing(true)
updateOptions := updateOptions.value.withCachedResolution(cachedResoluton = true)
libraryDependencies ++= {
val ngVersion="2.0.2"
Seq(
cache,
//angular2 dependencies
"org.webjars.npm" % "angular__common" % ngVersion,
"org.webjars.npm" % "angular__compiler" % ngVersion,
"org.webjars.npm" % "angular__core" % ngVersion,
"org.webjars.npm" % "angular__forms" % ngVersion,
"org.webjars.npm" % "angular__platform-browser-dynamic" % ngVersion,
"org.webjars.npm" % "angular__platform-browser" % ngVersion,
"org.webjars.npm" % "systemjs" % "0.19.39",
"org.webjars.npm" % "todomvc-common" % "1.0.2",
"org.webjars.npm" % "rxjs" % "5.0.0-beta.12",
"org.webjars.npm" % "es6-promise" % "3.1.2",
"org.webjars.npm" % "es6-shim" % "0.35.1",
"org.webjars.npm" % "reflect-metadata" % "0.1.8",
"org.webjars.npm" % "zone.js" % "0.6.25",
"org.webjars.npm" % "core-js" % "2.4.1",
"org.webjars.npm" % "symbol-observable" % "1.0.1",
"org.webjars.npm" % "typescript" % "2.0.3",
//tslint dependency
"org.webjars.npm" % "tslint-eslint-rules" % "2.1.0",
"org.webjars.npm" % "codelyzer" % "0.0.28",
"org.webjars.npm" % "types__jasmine" % "2.2.26-alpha" % "test"
//test
// "org.webjars.npm" % "jasmine-core" % "2.4.1"
)
}
dependencyOverrides += "org.webjars.npm" % "minimatch" % "3.0.0"
// the typescript typing information is by convention in the typings directory
// It provides ES6 implementations. This is required when compiling to ES5.
typingsFile := Some(baseDirectory.value / "typings" / "index.d.ts")
// use the webjars npm directory (target/web/node_modules ) for resolution of module imports of angular2/core etc
resolveFromWebjarsNodeModulesDir := true
// use the combined tslint and eslint rules plus ng2 lint rules
(rulesDirectories in tslint) := Some(List(
tslintEslintRulesDir.value,
ng2LintRulesDir.value
))
routesGenerator := InjectedRoutesGenerator