Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ To get started, you can use the accompanying [template](https://github.com/typel
scala-cli --power new typelevel/toolkit.g8
```

> [!IMPORTANT]
> The toolkit does not yet support Scala Native 0.5.x series.

# Libraries included

* [Cats] and [Cats Effect]
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ lazy val tests = crossProject(JVMPlatform, JSPlatform, NativePlatform)
libraryDependencies ++= Seq(
"org.typelevel" %%% "munit-cats-effect" % "2.0.0-M5" % Test,
"co.fs2" %%% "fs2-io" % "3.10.2" % Test,
"org.virtuslab.scala-cli" %% "cli" % "1.2.2" cross (CrossVersion.for2_13Use3)
"org.virtuslab.scala-cli" %% "cli" % "1.3.0" cross (CrossVersion.for2_13Use3)
),
buildInfoKeys += scalaBinaryVersion,
buildInfoKeys += "nativeVersion" -> nativeVersion,
buildInfoKeys += BuildInfoKey.map(Compile / dependencyClasspath) {
case (_, v) =>
"classPath" -> v.seq
Expand Down
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ A toolkit of **great libraries** to start building **Typelevel** apps on JVM, No

Our very own flavour of the [Scala Toolkit].

@:callout(info)

The toolkit does not yet support Scala Native 0.5.x series.

@:@

## Overview

Typelevel toolkit is a meta library that currently includes these libraries:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,19 @@ object ScalaCliProcess {
None
)
.evalTap { path =>
val header = List(
val commonHeader = List(
s"//> using scala ${BuildInfo.scalaBinaryVersion}",
s"//> using toolkit typelevel:${BuildInfo.version}",
s"//> using platform ${BuildInfo.platform}"
).mkString("", "\n", "\n")
Stream(header, scriptBody.stripMargin)
)
val header = BuildInfo.platform match {
case "jvm" => commonHeader
case "js" => commonHeader
case "native" =>
commonHeader :+
s"//> using nativeVersion ${BuildInfo.nativeVersion}"
}
Stream(header.mkString("", "\n", "\n"), scriptBody.stripMargin)
.through(Files[IO].writeUtf8(path))
.compile
.drain
Expand Down