svg.escobar.life

Unnamed repository; edit this file 'description' to name the repository.

commit a8f49db9738976725db7464c2e5a76a0fa0a8fcf
parent ca83eae377da86302b4a3fc8bd24cb7b71389115
Author: Pablo Emilio Escobar Gaviria <pablo-escobar@riseup.net>
Date:   Thu,  3 Dec 2020 15:42:00 -0300

Organized the repository

Diffstat:
M.gitignore | 2+-
MMakefile | 9+++++----
Rstyles.css -> css/styles.css | 0
Mindex.html | 6+++---
Rapp.webmanifest -> js/app.webmanifest | 0
Rservice-worker.js -> js/service-worker.js | 0
6 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,3 @@
 elm-stuff
 elm.json
-*.min.js
+_site
diff --git a/Makefile b/Makefile
@@ -1,11 +1,12 @@
 .PHONY: build auto-compile
 
 runserver:
-	python3 -m http.server
+	(cd _site && python3 -m http.server)
 
 build:
-	elm make --optimize --output=script.js src/Main.elm
-	mv script.js script.min.js
+	elm make --optimize --output=_site/js/script.min.js src/Main.elm
+	cp index.html css assets _site/ -r
+	cp js/* _site/js/
 
 auto-compile:
-	ls src/*.elm | entr make build
+	ls src/*.elm js/* css/* index.html | entr make build
diff --git a/styles.css b/css/styles.css
diff --git a/index.html b/index.html
@@ -3,15 +3,15 @@
 <head>
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
-	<link rel="stylesheet" href="styles.css">
+	<link rel="stylesheet" href="css/styles.css">
 
   <link rel="icon" 
         type="image/svg+xml" 
         sizes="16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512" 
         href="https://pablo.escobar.life/images/icons/favicon.svg">
 
-  <link rel="manifest" href="app.webmanifest">
-  <script src="script.min.js"></script>
+  <link rel="manifest" href="js/app.webmanifest">
+  <script src="js/script.min.js"></script>
 </head>
 <body>
 	<script>Elm.Main.init()</script>
diff --git a/app.webmanifest b/js/app.webmanifest
diff --git a/service-worker.js b/js/service-worker.js