From 556fab7daaf84a91364d74f99763cb596f45fb86 Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Thu, 20 Apr 2017 14:38:52 +0200 Subject: [PATCH] Put Elm files into src/ and assets into public/ (#4) --- .gitignore | 2 +- elm-package.json | 2 +- package.json | 6 +++--- style.css => public/css/style.css | 0 index.html => public/index.html | 2 +- Main.elm => src/Main.elm | 0 Mastodon.elm => src/Mastodon.elm | 0 Model.elm => src/Model.elm | 0 Ports.elm => src/Ports.elm | 0 View.elm => src/View.elm | 0 10 files changed, 6 insertions(+), 6 deletions(-) rename style.css => public/css/style.css (100%) rename index.html => public/index.html (92%) rename Main.elm => src/Main.elm (100%) rename Mastodon.elm => src/Mastodon.elm (100%) rename Model.elm => src/Model.elm (100%) rename Ports.elm => src/Ports.elm (100%) rename View.elm => src/View.elm (100%) diff --git a/.gitignore b/.gitignore index 549fed8..481630f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /build /elm-stuff /node_modules -/app.js +app.js diff --git a/elm-package.json b/elm-package.json index 1fa0161..40e3079 100644 --- a/elm-package.json +++ b/elm-package.json @@ -4,7 +4,7 @@ "repository": "https://github.com/n1k0/tooty.git", "license": "MIT", "source-directories": [ - "." + "./src" ], "exposed-modules": [], "dependencies": { diff --git a/package.json b/package.json index d86e72f..0ffe2e6 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "1.0.0", "description": "An alternative Web client for Mastodon.", "scripts": { - "build": "node_modules/.bin/elm-make Main.elm --output=build/app.js && npm run copy-assets", - "copy-assets": "node_modules/.bin/copyfiles index.html style.css build/", + "build": "node_modules/.bin/elm-make src/Main.elm --output=build/public/app.js && npm run copy-assets", + "copy-assets": "node_modules/.bin/copyfiles public/index.html public/css/style.css build/", "deploy": "npm run build && node_modules/.bin/gh-pages --dist build/", - "live": "node_modules/.bin/elm-live Main.elm --output=app.js --debug", + "live": "node_modules/.bin/elm-live src/Main.elm --dir=public/ --output=public/app.js --debug", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/style.css b/public/css/style.css similarity index 100% rename from style.css rename to public/css/style.css diff --git a/index.html b/public/index.html similarity index 92% rename from index.html rename to public/index.html index dd33eee..10fc922 100644 --- a/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ Tooty - + diff --git a/Main.elm b/src/Main.elm similarity index 100% rename from Main.elm rename to src/Main.elm diff --git a/Mastodon.elm b/src/Mastodon.elm similarity index 100% rename from Mastodon.elm rename to src/Mastodon.elm diff --git a/Model.elm b/src/Model.elm similarity index 100% rename from Model.elm rename to src/Model.elm diff --git a/Ports.elm b/src/Ports.elm similarity index 100% rename from Ports.elm rename to src/Ports.elm diff --git a/View.elm b/src/View.elm similarity index 100% rename from View.elm rename to src/View.elm