Created
June 13, 2017 07:39
-
-
Save rchatsiri/b1724e6ebd5bd3d7cf3cd6cc46e1e3a2 to your computer and use it in GitHub Desktop.
SBT built file supports angularjs2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := """play-angular2-typescript""" | |
version := "0.2.0-beta.7" | |
lazy val root = (project in file(".")).enablePlugins(PlayScala) | |
scalaVersion := "2.11.8" | |
incOptions := incOptions.value.withNameHashing(true) | |
updateOptions := updateOptions.value.withCachedResolution(cachedResoluton = true) | |
//we use nodejs to make our typescript build as fast as possible | |
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node | |
resolvers ++= Seq( | |
Resolver.jcenterRepo, | |
Resolver.bintrayRepo("webjars","maven") | |
) | |
libraryDependencies ++= { | |
val ngVersion="2.2.0" | |
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__http" % ngVersion, | |
"org.webjars.npm" % "angular__forms" % ngVersion, | |
"org.webjars.npm" % "angular__router" % "3.2.0", | |
"org.webjars.npm" % "angular__platform-browser-dynamic" % ngVersion, | |
"org.webjars.npm" % "angular__platform-browser" % ngVersion, | |
"org.webjars.npm" % "systemjs" % "0.19.40", | |
"org.webjars.npm" % "rxjs" % "5.0.0-beta.12", | |
"org.webjars.npm" % "reflect-metadata" % "0.1.8", | |
"org.webjars.npm" % "zone.js" % "0.6.26", | |
"org.webjars.npm" % "core-js" % "2.4.1", | |
"org.webjars.npm" % "symbol-observable" % "1.0.1", | |
"org.webjars.npm" % "typescript" % "2.2.1", | |
//tslint dependency | |
"org.webjars.npm" % "tslint-eslint-rules" % "3.4.0", | |
"org.webjars.npm" % "tslint-microsoft-contrib" % "4.0.0", | |
// "org.webjars.npm" % "codelyzer" % "2.0.0-beta.1", | |
"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" | |
// 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 | |
)) | |
logLevel in tslint := Level.Debug | |
routesGenerator := InjectedRoutesGenerator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment