import sbt.Keys._ import scala.scalajs.sbtplugin.ScalaJSPlugin._ import ScalaJSKeys._ val defaultSettings = Seq( unmanagedSourceDirectories in Compile <+= baseDirectory(_ / "shared" / "main" / "scala"), unmanagedSourceDirectories in Test <+= baseDirectory(_ / "shared" / "test" / "scala") ) lazy val root = project.in(file(".")).settings(defaultSettings:_*).settings( name := "workbench", version := "0.1.6", organization := "com.lihaoyi", scalaVersion := "2.10.4", 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 }, libraryDependencies ++= Seq( "io.spray" % "spray-can" % "1.3.1", "io.spray" % "spray-routing" % "1.3.1", "com.typesafe.akka" %% "akka-actor" % "2.3.0", "com.lihaoyi" %% "autowire" % "0.2.3", "com.lihaoyi" %% "upickle" % "0.2.3" ) ) lazy val client = project.in(file("client")) .settings(defaultSettings ++ scalaJSSettings:_*) .settings( libraryDependencies ++= Seq( "org.scala-lang.modules.scalajs" %%% "scalajs-dom" % "0.6", "com.lihaoyi" %%% "autowire" % "0.2.3", "com.lihaoyi" %%% "upickle" % "0.2.3" ) )