1
- import os.copy.over
2
- import $ivy.`io.github.quafadas::millSite::0.0.24`
3
- import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
4
- import $ivy.`com.goyeau::mill-scalafix::0.4.0`
5
- import $file.playwrightVersion // used to cache in GHA
1
+ //| mill-version: 1.0.3
2
+ //| mill-jvm-version: 21
3
+ //| mvnDeps:
4
+ //| - com.goyeau::mill-scalafix::0.6.0
5
+ //| - com.lihaoyi::mill-contrib-buildinfo:$MILL_VERSION
6
+
6
7
7
- import io.github.quafadas.millSite._
8
+ import os.copy.over
9
+ // import io.github.quafadas.millSite._
8
10
import mill._, scalalib._, publish._, scalanativelib._
9
11
import mill.scalalib.scalafmt.ScalafmtModule
10
- import de.tobiasroeser. mill.vcs.version._
12
+ import mill.util.*
11
13
12
14
import com.goyeau.mill.scalafix.ScalafixModule
13
15
import java.text.Format
14
16
15
- object V{
16
- val scalaLts = "3.3.5"
17
17
18
+ object V{
19
+ val scalaLts = "3.3.6"
20
+ val pwV = build.pwV
18
21
val http4sVersion = "0.23.30"
19
22
val circeVersion = "0.14.10"
23
+ val scalaVersion = "3.7.2"
24
+ val laminar = "17.2.1"
25
+ val scalaJsDom = "2.8.1"
26
+ val scalaJs = "1.19.0"
20
27
}
21
28
22
29
trait FormatFix extends ScalafmtModule with ScalafixModule with ScalaModule
23
30
24
31
trait FormatFixPublish extends ScalaModule with FormatFix with PublishModule{
25
- override def scalaVersion = "3.6.4"
32
+ override def scalaVersion = V.scalaVersion
26
33
27
- override def scalacOptions: Target[Seq[String]] = super.scalacOptions() ++ Seq("-Wunused:all")
34
+ override def scalacOptions = super.scalacOptions() ++ Seq("-Wunused:all")
28
35
29
36
def publishVersion = VcsVersion.vcsState().format()
30
37
31
- override def pomSettings = T {
38
+ override def pomSettings = Task {
32
39
PomSettings(
33
40
description = "An experimental live server for scala JS projects",
34
41
organization = "io.github.quafadas",
@@ -46,79 +53,33 @@ trait FormatFixPublish extends ScalaModule with FormatFix with PublishModule{
46
53
47
54
trait Testy extends TestModule.Munit with FormatFix {
48
55
49
- override def defaultCommandName (): String = "test "
56
+ override def defaultTask (): String = "testForked "
50
57
51
- def ivyDeps = super.ivyDeps () ++ sjsls.ivyDeps () ++ Seq(
52
- ivy "org.typelevel::munit-cats-effect::2.0.0",
53
- ivy "org.scalameta::munit::1.1.0",
54
- ivy "com.lihaoyi::os-lib:0.11.4"
58
+ def mvnDeps = super.mvnDeps () ++ sjsls.mvnDeps () ++ Seq(
59
+ mvn "org.typelevel::munit-cats-effect::2.0.0",
60
+ mvn "org.scalameta::munit::1.1.0",
61
+ mvn "com.lihaoyi::os-lib:0.11.4"
55
62
)
56
63
57
64
}
58
65
59
- object routes extends FormatFixPublish {
60
-
61
- def scalaVersion: T[String] = V.scalaLts
62
-
63
- def ivyDeps = Agg(
64
- ivy"org.http4s::http4s-core:${V.http4sVersion}",
65
- ivy"org.http4s::http4s-client:${V.http4sVersion}",
66
- ivy"org.http4s::http4s-server:${V.http4sVersion}",
67
- ivy"org.http4s::http4s-dsl::${V.http4sVersion}",
68
- ivy"com.outr::scribe-cats::3.15.0"
69
- )
70
-
71
- override def artifactName = "frontend-routes"
72
-
73
- object test extends Testy with ScalaTests{
74
- def ivyDeps = super.ivyDeps() ++ sjsls.ivyDeps()
75
- }
76
-
77
- }
78
-
79
- object sjsls extends FormatFixPublish {
80
-
81
- override def scalaVersion = V.scalaLts
66
+ object SiteUnidoc extends ScalaModule, UnidocModule :
67
+ def scalaVersion = V.scalaVersion
68
+ def moduleDeps = Seq(build.sjsls, build.routes)
82
69
83
- def ivyDeps = super.ivyDeps() ++ Seq(
84
- ivy"org.http4s::http4s-ember-server::${V.http4sVersion}",
85
- ivy"org.http4s::http4s-ember-client::${V.http4sVersion}",
86
- ivy"org.http4s::http4s-scalatags::0.25.2",
87
- ivy"io.circe::circe-core::${V.circeVersion}",
88
- ivy"io.circe::circe-generic::${V.circeVersion}",
89
- ivy"co.fs2::fs2-io::3.11.0",
90
- ivy"com.lihaoyi::scalatags::0.13.1",
91
- ivy"com.monovore::decline::2.5.0",
92
- ivy"com.monovore::decline-effect::2.5.0",
93
-
94
- )
70
+ def unidocDocumentTitle = Task { "Scala JS Live Server Docs" }
71
+ def unidocVersion = Some(VcsVersion.vcsState().format())
95
72
96
- def moduleDeps = Seq(routes)
97
73
98
- def artifactName = " sjsls"
74
+ // def scalaVersion = sjsls.scalaVersion
99
75
100
- object test extends Testy with ScalaTests {
101
- def ivyDeps = super.ivyDeps() ++ sjsls.ivyDeps() ++ Seq(
102
-
103
- ivy"com.microsoft.playwright:playwright:${playwrightVersion.pwV}",
104
- ivy"com.microsoft.playwright:driver-bundle:${playwrightVersion.pwV}"
105
- )
106
- }
107
- //def scalaNativeVersion = "0.4.17" // aspirational :-)
108
-
109
- }
110
-
111
- object site extends SiteModule {
112
-
113
- def scalaVersion = sjsls.scalaVersion
114
-
115
- override def moduleDeps = Seq(sjsls)
116
- }
76
+ // override def moduleDeps = Seq(sjsls)
77
+ // }
117
78
118
79
// SN deps which aren't yet there.
119
80
/**
120
81
1 targets failed
121
- project.resolvedIvyDeps
82
+ project.resolvedmvnDeps
122
83
Resolution failed for 2 modules:
123
84
--------------------------------------------
124
85
com.outr:scribe-cats_native0.4_3:3.13.5
0 commit comments