-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
257 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import java.nio.charset.StandardCharsets | ||
import org.scalajs.linker.interface.ModuleSplitStyle | ||
|
||
lazy val currentYear: String = | ||
java.util.Calendar.getInstance().get(java.util.Calendar.YEAR).toString | ||
|
||
val scala33 = "3.3.1" | ||
|
||
inThisBuild( | ||
|
@@ -37,7 +34,6 @@ inThisBuild( | |
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-feature", | ||
"-Wunused:all", | ||
"-Xfatal-warnings" | ||
) | ||
) | ||
|
@@ -102,7 +98,8 @@ val usedScalacOptions = Seq( | |
"-unchecked", | ||
"-language:higherKinds", | ||
"-language:implicitConversions", | ||
"-Xmax-inlines:64" | ||
"-Xmax-inlines:64", | ||
"-Wunused:all" | ||
) | ||
lazy val core = scalajsProject("core", false) | ||
.settings( | ||
|
@@ -222,36 +219,3 @@ Global / onLoad := { | |
|
||
(Global / onLoad).value | ||
} | ||
enablePlugins( | ||
SiteScaladocPlugin, | ||
SitePreviewPlugin, | ||
ScalaUnidocPlugin, | ||
GhpagesPlugin | ||
) | ||
|
||
ScalaUnidoc / siteSubdirName := "" | ||
addMappingsToSiteDir( | ||
ScalaUnidoc / packageDoc / mappings, | ||
ScalaUnidoc / siteSubdirName | ||
) | ||
git.remoteRepo := "[email protected]:cheleb/laminar-form-derivation.git" | ||
ghpagesNoJekyll := true | ||
Compile / doc / scalacOptions ++= Seq( | ||
"-siteroot", | ||
"docs", | ||
"-project", | ||
"Laminar Form Derivation", | ||
"-groups", | ||
"-project-version", | ||
version.value, | ||
"-revision", | ||
version.value, | ||
"-default-templates", | ||
"static-site-main", | ||
"-project-footer", | ||
s"Copyright (c) 2022-$currentYear, Olivier NOUGUIER", | ||
"-Ygenerate-inkuire", | ||
"-skip-by-regex:demo\\..*", | ||
"-skip-by-regex:samples\\..*", | ||
"-snippet-compiler:compile" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```scala mdoc | ||
import java.time.Instant | ||
|
||
def now() = Instant.now() | ||
object Foo extends App{ | ||
println(now()) | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package samples | ||
|
||
import dev.cheleb.scalamigen.{*, given} | ||
|
||
import com.raquo.laminar.api.L.* | ||
|
||
import com.raquo.airstream.state.Var | ||
|
||
val simple = Sample( | ||
"Simple", { | ||
|
||
val eitherVar = Var(Cat("Scala le chat", 6)) | ||
|
||
div( | ||
child <-- eitherVar.signal.map { item => | ||
div( | ||
s"$item" | ||
) | ||
}, | ||
Form.renderVar(eitherVar) | ||
) | ||
} | ||
) |
Oops, something went wrong.