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 :). --- stage2/BuildBuild.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'stage2') diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index db5374c..4d9c869 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -10,6 +10,7 @@ trait BuildBuild extends BaseBuild{ object plugins{ final val scalaTest = DirectoryDependency( managedContext.cbtHome ++ "/plugins/scalatest" ) final val sbtLayout = DirectoryDependency( managedContext.cbtHome ++ "/plugins/sbt_layout" ) + final val scalaJs = DirectoryDependency( managedContext.cbtHome ++ "/plugins/scalajs" ) } override def dependencies = -- cgit v1.2.3