diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e0ff9f..c0f3e90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,11 +20,11 @@ jobs: with: node-version: 12 - name: Build - run: sbt frontend/fullLinkJS + run: sbt frontend/fastOptJS/webpack - name: Prepare artifact run: | mkdir artifact - cp modules/frontend/target/scala-3.3.1/frontend-opt/main.js artifact/main.js + cp modules/frontend/target/scala-3.3.1/frontend-fastopt/main.js artifact/main.js cp -r modules/backend/src/main/resources/static artifact/static cp modules/backend/src/main/resources/index.html artifact/index.html - name: Upload artifact diff --git a/build.sbt b/build.sbt index 97e9582..150da63 100644 --- a/build.sbt +++ b/build.sbt @@ -81,7 +81,7 @@ lazy val backend = (project in file("modules/backend")) "org.scalatest" %% "scalatest" % scalaTestVersion % Test, "org.typelevel" %% "cats-effect-testing-scalatest" % catsEffectTestingVersion % Test ), - scalaJSProjects := Seq(frontend), // frontend), + scalaJSProjects := Seq(frontend), exportJars := true, resolvers ++= Resolver.sonatypeOssRepos("snapshots"), resolvers += Resolver.bintrayRepo("hseeberger", "maven"), diff --git a/project/plugins.sbt b/project/plugins.sbt index fdae192..89e4f6d 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,8 +1,7 @@ -addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0") -addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5") +addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.15.0") addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.3.0") -addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0") +addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2") addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1") addSbtPlugin("ch.epfl.scala" % "sbt-web-scalajs-bundler" % "0.21.1") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")