Skip to content

Commit

Permalink
Update router version
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Nov 29, 2020
1 parent 47659b2 commit bb174b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions build.sbt
Expand Up @@ -26,6 +26,24 @@ lazy val core = (project in file("core"))
)
.enablePlugins(ScalaJSPlugin)

lazy val examples = (project in file("examples"))
.settings(
scalaJSUseMainModuleInitializer := true
)
.dependsOn(core)
.enablePlugins(ScalaJSPlugin)

lazy val todo = (project in file("todo"))
.settings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "upickle" % "1.2.0",
"ba.sake" %%% "scalajs-router" % "0.0.8"
)
)
.dependsOn(core)
.enablePlugins(ScalaJSPlugin)

lazy val docs = (project in file("docs"))
.settings(
libraryDependencies ++= Seq(
Expand All @@ -49,24 +67,6 @@ lazy val docs = (project in file("docs"))
.dependsOn(examples)
.enablePlugins(HepekPlugin, SbtWeb, ScalaJSPlugin)

lazy val examples = (project in file("examples"))
.settings(
scalaJSUseMainModuleInitializer := true
)
.dependsOn(core)
.enablePlugins(ScalaJSPlugin)

lazy val todo = (project in file("todo"))
.settings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "upickle" % "1.2.0",
"ba.sake" %%% "scalajs-router" % "0.0.7"
)
)
.dependsOn(core)
.enablePlugins(ScalaJSPlugin)

val openIndexPage = taskKey[Unit]("Opens index.html")

val openIndexPageTask = Def.taskDyn {
Expand Down
2 changes: 1 addition & 1 deletion todo/src/main/scala/ba/sake/rxtags/todo/Main.scala
Expand Up @@ -22,6 +22,6 @@ object Main {
mainComponent
}

router.withRoutesData("main", routes, mainComponent).init()
router.withRoutesData("main", routes).init()
}
}

0 comments on commit bb174b6

Please sign in to comment.