Skip to content
Permalink
Browse files

Use our own index.html file

  • Loading branch information...
magopian committed Aug 8, 2019
1 parent e2ef1bf commit 7b5a3e88b7d0b42d8670297ac6e59134a3402753
Showing with 23 additions and 7 deletions.
  1. +1 −3 .gitignore
  2. +18 −0 index.html
  3. +4 −4 package.json
@@ -1,6 +1,4 @@
elm-stuff/
index.html
node_modules/
package-lock.json
build/
public/app.js
app.js
@@ -0,0 +1,18 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Elm pong</title>
<script src="app.js"></script>
</head>

<body>
<div id="elm"></div>
<script>
var app = Elm.Main.init({
node: document.getElementById('elm')
});
</script>
</body>
</html>

@@ -4,10 +4,10 @@
"description": "A tutorial on how to make a pong game in elm. Follow-along blog post: http://mathieu.agopian.info/blog/making-a-pong-game-in-elm.html",
"main": "index.js",
"scripts": {
"build": "elm make src/Main.elm --optimize",
"deploy": "npm run build && gh-pages --dist ./ --src index.html",
"debug": "elm-live src/Main.elm -- --debug",
"live": "elm-live src/Main.elm"
"build": "elm make src/Main.elm --optimize --output=app.js",
"deploy": "npm run build && gh-pages --dist ./",
"debug": "elm-live src/Main.elm -- --debug --output=app.js",
"live": "elm-live src/Main.elm -- --output=app.js"
},
"repository": {
"type": "git",

0 comments on commit 7b5a3e8

Please sign in to comment.
You can’t perform that action at this time.