Skip to content

Commit

Permalink
Udash TODO MVC demo
Browse files Browse the repository at this point in the history
  • Loading branch information
starzu committed Apr 11, 2018
1 parent 8f3e17d commit 99bfe41
Show file tree
Hide file tree
Showing 33 changed files with 2,500 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ jobs:
env:
- CYPRESS_framework=typescript-react
<<: *defaults
- stage: test
env:
- CYPRESS_framework=udash
<<: *defaults
- stage: test
env:
- CYPRESS_framework=vanilla-es6
Expand Down
5 changes: 5 additions & 0 deletions examples/udash/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = false

[*.scala]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions examples/udash/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
target
35 changes: 35 additions & 0 deletions examples/udash/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name := "todomvc"

inThisBuild(Seq(
version := "0.6.0",
scalaVersion := "2.12.4",
organization := "io.udash",
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-language:implicitConversions",
"-language:existentials",
"-language:dynamics",
"-Xfuture",
"-Xfatal-warnings",
"-Xlint:_,-missing-interpolator,-adapted-args"
),
))

val generatedDir = file("generated")

val todomvc = project.in(file("."))
.enablePlugins(ScalaJSPlugin)
.settings(
mainClass := Some("io.udash.todo.JSLauncher"),
scalaJSUseMainModuleInitializer := true,

libraryDependencies ++= Dependencies.frontendDeps.value,

// Target files for Scala.js plugin
Compile / fastOptJS / artifactPath := generatedDir / "todomvc.js",
Compile / fullOptJS / artifactPath := generatedDir / "todomvc.js",
Compile / packageJSDependencies / artifactPath := generatedDir / "todomvc-deps.js",
Compile / packageMinifiedJSDependencies / artifactPath := generatedDir / "todomvc-deps.js",
)
5 changes: 5 additions & 0 deletions examples/udash/generated/todomvc-deps.js

Large diffs are not rendered by default.

995 changes: 995 additions & 0 deletions examples/udash/generated/todomvc.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions examples/udash/generated/todomvc.js.map

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions examples/udash/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en" data-framework="udash">
<head>
<meta charset="utf-8">
<title>Udash Framework • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<section class="todoapp"></section>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="http://github.com/Starzu/">Mateusz Starzec</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="generated/todomvc-deps.js"></script>
<!-- include application -->
<script src="generated/todomvc.js"></script>
</body>
</html>
Loading

0 comments on commit 99bfe41

Please sign in to comment.