import sbt.Keys._ val defaultSettings = Seq( scalacOptions ++= Seq("-feature", "-deprecation"), unmanagedSourceDirectories in Compile += baseDirectory.value / "shared" / "main" / "scala", unmanagedSourceDirectories in Test += baseDirectory.value / "shared" / "test" / "scala" ) lazy val root = project.in(file(".")).settings(defaultSettings:_*).settings( name := "workbench", version := "0.3.1-SNAPSHOT", organization := "com.lihaoyi", scalaVersion := "2.10.6", sbtPlugin := true, publishArtifact in Test := false, publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"), pomExtra := ( https://github.com/lihaoyi/workbench MIT license http://www.opensource.org/licenses/mit-license.php git://github.com/lihaoyi/workbench.git scm:git://github.com/lihaoyi/workbench.git lihaoyi Li Haoyi https://github.com/lihaoyi ), (resources in Compile) += { (fullOptJS in (client, Compile)).value (artifactPath in (client, Compile, fullOptJS)).value }, addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13"), libraryDependencies ++= Seq( Dependencies.sprayCan, Dependencies.sprayRouting, Dependencies.akka, Dependencies.autowire.value, Dependencies.upickle.value ) ) lazy val client = project.in(file("client")) .enablePlugins(ScalaJSPlugin) .settings(defaultSettings: _*) .settings( unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "shared" / "main" / "scala", libraryDependencies ++= Seq( Dependencies.autowire.value, Dependencies.dom.value, Dependencies.upickle.value ), emitSourceMaps := false )