Skip to content

Commit

Permalink
initial setup for working firebaseapp deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
dawehner committed Jun 17, 2017
1 parent afeed1c commit 0f3416e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "contenta-elm"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ elm-stuff
*.swp
node_modules
.idea
dist/elm.js
7 changes: 7 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<body>
<div></div>
<script src="elm.js"></script>
<script>Elm.Main.embed(document.querySelector("div"));</script>
</body>
</html>
5 changes: 5 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hosting": {
"public": "dist"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"elm-live": "^2.7.4"
},
"scripts": {
"app-dev": "elm-live src/Main.elm --pushstate --open --debug"
"app-dev": "elm-live src/Main.elm --pushstate --open --debug",
"app-build": "elm-make src/Main.elm --output=dist/elm.js",
"deploy": "yarn run app-build && firebase deploy"
}
}

0 comments on commit 0f3416e

Please sign in to comment.