Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Jun 6, 2021
1 parent a31849e commit 06f4091
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 29 deletions.
67 changes: 41 additions & 26 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,23 @@ import scala.language.postfixOps

ThisBuild / versionScheme := Some("early-semver")

lazy val tyrian =
(project in file("tyrian"))
.enablePlugins(ScalaJSPlugin)
.settings(
scalaVersion := "3.0.0",
version := "0.1.0-SNAPSHOT",
name := "tyrian",
organization := "io.indigoengine",
libraryDependencies ++= Seq(
("org.scala-js" %%% "scalajs-dom" % "1.1.0").cross(CrossVersion.for3Use2_13),
"org.typelevel" %%% "cats-core" % "2.6.1",
"org.scalameta" %%% "munit" % "0.7.26" % Test
),
testFrameworks += new TestFramework("munit.Framework"),
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) },
publishTo := sonatypePublishTo.value
)
lazy val tyrianVersion = "0.1.0"

lazy val tyrianProject =
(project in file("."))
.settings(
code := { "code ." ! }
)
.enablePlugins(ScalaJSPlugin)
.aggregate(tyrian)
val scala3Version = "3.0.0"

lazy val code =
taskKey[Unit]("Launch VSCode in the current directory")
lazy val commonSettings: Seq[sbt.Def.Setting[_]] = Seq(
version := tyrianVersion,
scalaVersion := scala3Version,
crossScalaVersions := Seq(scala3Version),
organization := "io.indigoengine",
libraryDependencies ++= Seq(
"org.scalameta" %%% "munit" % "0.7.26" % Test
),
testFrameworks += new TestFramework("munit.Framework"),
Test / scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) },
// scalacOptions ++= Seq("-language:strictEquality"),
crossScalaVersions := Seq(scala3Version)
)

lazy val publishSettings = {
import xerial.sbt.Sonatype._
Expand All @@ -50,3 +39,29 @@ lazy val publishSettings = {
)
)
}

lazy val tyrian =
(project in file("tyrian"))
.enablePlugins(ScalaJSPlugin)
.settings(commonSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "tyrian",
libraryDependencies ++= Seq(
("org.scala-js" %%% "scalajs-dom" % "1.1.0").cross(CrossVersion.for3Use2_13),
"org.typelevel" %%% "cats-core" % "2.6.1"
)
)

lazy val tyrianProject =
(project in file("."))
.enablePlugins(ScalaJSPlugin)
.settings(commonSettings: _*)
.settings(
code := { "code ." ! },
)
.enablePlugins(ScalaJSPlugin)
.aggregate(tyrian)

lazy val code =
taskKey[Unit]("Launch VSCode in the current directory")
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# Run from root.

sbt clean test tyrian/publishLocal
sbt clean update compile test +tyrian/publishLocal
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.5.2
sbt.version=1.5.3
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export GPG_TTY=$(tty)

source credentials.sh

sbt clean update compile publishSigned sonatypeBundleRelease
sbt clean update compile test +tyrian/publishSigned sonatypeBundleRelease

0 comments on commit 06f4091

Please sign in to comment.