From 47cc41ecaa2eaf5677fcb1794db7bbba6533b559 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Fri, 17 Jun 2016 22:38:18 -0400 Subject: refactor/simplify scalaJs plugin and example - Restructure code as 1 library case class and 1 Build mixin trait. A library is generally easier to understand and could be re-used independently. 1 trait seems simpler than several here. - Let not the plugin create the multi-project build, but the user project manually. I think while this adds some minor code overhead it is much simpler to understand. Fewer tasks and other moving parts needed. - Remove verbose nested sbt-style folder structure. It's simpler without it :). --- plugins/scalajs/ScalaJsInformation.scala | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 plugins/scalajs/ScalaJsInformation.scala (limited to 'plugins/scalajs/ScalaJsInformation.scala') diff --git a/plugins/scalajs/ScalaJsInformation.scala b/plugins/scalajs/ScalaJsInformation.scala deleted file mode 100644 index ada3baf..0000000 --- a/plugins/scalajs/ScalaJsInformation.scala +++ /dev/null @@ -1,25 +0,0 @@ -import cbt._ - -trait ScalaJsInformation extends BaseBuild { outer => - - val sjsVersion = "0.6.8" - final private val sjsMajorVersion: String = lib.libMajorVersion(sjsVersion) - final protected val artifactIdSuffix = s"_sjs$sjsMajorVersion" - - final protected val scalaJsCompilerDep = - Resolver( mavenCentral ).bindOne( - // Has to be full Scala version because the compiler is incompatible between versions - MavenDependency("org.scala-js", "scalajs-compiler_2.11.8", sjsVersion) - ) - - final protected val scalaJsLibDep = - Resolver( mavenCentral ).bindOne( - ScalaDependency("org.scala-js", "scalajs-library", sjsVersion) - ) - - final protected val scalaJsCliDep = - Resolver( mavenCentral ).bindOne( - ScalaDependency("org.scala-js", "scalajs-cli", sjsVersion) - ) -} - -- cgit v1.2.3