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

Replace webpack with modd #33

Closed
wants to merge 1 commit into from
Closed
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
elm-stuff
node_modules
dist
42 changes: 0 additions & 42 deletions dev_server.js

This file was deleted.

23 changes: 23 additions & 0 deletions modd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


# Using `unbuffer` keeps the compiler output colorful. See:
# https://github.com/cortesi/modd/issues/26

src/**/*.elm {
# prep: elm make --warn --yes --output dist/app.js src/Main.elm
prep: unbuffer elm make --yes --output dist/app.js src/Main.elm
}

src/index.html {
prep: cp src/index.html dist/
}

src/index.js {
prep: cp src/index.js dist/
}

# Do it anyway for simpler configuration
dist/index.html dist/app.js {
daemon: devd -mqo dist/
}

24 changes: 0 additions & 24 deletions package.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/Api.elm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ getProposalEndpoint id =

-- TODO: move client_id and redirect_uri into environment variables
facebookAuthUrl : String
facebookAuthUrl = "https://www.facebook.com/dialog/oauth?client_id=1583083701926004&redirect_uri=http://localhost:3000/facebook_redirect"
facebookAuthUrl = "https://www.facebook.com/dialog/oauth?client_id=1583083701926004&redirect_uri=http://localhost:8000/facebook_redirect"



Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
<body>
<div id="main"></div>
<script src="/app.js"></script>
<script src="/index.js"></script>
</body>
</html>
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
'use strict';

// Require index.html so it gets copied to dist
require('./index.html');

var Elm = require('./Main.elm');
var mountNode = document.getElementById('main');

var programFlags = {
Expand Down
52 changes: 0 additions & 52 deletions webpack.config.js

This file was deleted.