diff -r f93465523457 -r c0cf0150cb4c build.sc --- a/build.sc Sat Dec 26 19:56:35 2020 +0100 +++ b/build.sc Sat Dec 26 20:04:48 2020 +0100 @@ -1,3 +1,13 @@ +/* + * REPL: + * + * ./mill --repl -w + * + * Generate Idea project: + * + * ./mill mill.scalalib.GenIdea/idea + * + */ import mill._ import mill.api.Loose import mill.define.{Command, Input, Sources, Target} @@ -7,9 +17,9 @@ object V { val app = "0.3-SNAPSHOT" - val scalaJs = "0.6.28" + val scalaJs = "0.6.33" val scala211 = "2.11.12" - val scala212 = "2.12.9" + val scala212 = "2.12.12" } object D { @@ -18,7 +28,7 @@ trait Common extends CrossSbtModule with PublishModule { - def pomSettings = PomSettings( + def pomSettings: T[PomSettings] = PomSettings( description = "Scalatags DSL for purecss.io framework", organization = "cz.functionals", url = "https://hg.functionals.cz/purecss", @@ -44,7 +54,7 @@ "-unchecked", // Enable additional warnings where generated code depends on assumptions. "-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access. "-Xfuture", // Turn on future language features. - "-target:jvm-1.8", + "-target:jvm-1.8" )} def hgId: Input[String] = T.input { @@ -82,6 +92,14 @@ object jvm extends Cross[JvmModule](V.scala211, V.scala212) object js extends Cross[JsModule](V.scala211, V.scala212) +def compileAll(): Command[Unit] = T.command{ + jvm(V.scala212).compile() + js(V.scala212).compile() + jvm(V.scala211).compile() + js(V.scala211).compile() + () +} + def publishLocal(): Command[Unit] = T.command{ jvm(V.scala212).publishLocal()() js(V.scala212).publishLocal()()