Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Udash Framework #1874

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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