Skip to content

Commit

Permalink
Add Elm translation
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed Oct 2, 2023
1 parent 6e21881 commit 965b7cc
Show file tree
Hide file tree
Showing 9 changed files with 979 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Elm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
elm-stuff
build
12 changes: 12 additions & 0 deletions Elm/elm-watch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"targets": {
"Main": {
"inputs": [
"src/Main.elm"
],
"output": "build/main.js"
}
},
"port": 54321,
"serve": "."
}
30 changes: 30 additions & 0 deletions Elm/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm/random": "1.0.0",
"miniBill/elm-rope": "1.0.0"
},
"indirect": {
"elm/json": "1.1.3",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "2.1.1"
},
"indirect": {
"elm/bytes": "1.0.8"
}
}
}
16 changes: 16 additions & 0 deletions Elm/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trivia</title>
</head>
<body>
<main></main>
<script src="./build/main.js"></script>
<script>
Elm.Main.init({ node: document.querySelector("main") });
</script>
</body>
</html>
6 changes: 6 additions & 0 deletions Elm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"devDependencies": {
"elm-test": "^0.19.1-revision12",
"elm-watch": "^1.2.0-beta.3"
}
}
Loading

0 comments on commit 965b7cc

Please sign in to comment.