svg.escobar.life

A simple SVG markup editor for the web

Commit
a8f49db9738976725db7464c2e5a76a0fa0a8fcf
Parent
ca83eae377da86302b4a3fc8bd24cb7b71389115
Author
Pablo Emilio Escobar Gaviria <pablo-escobar@riseup.net>
Date

Organized the repository

Diffstat

6 files changed, 9 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified .gitignore 2 1 1
Modified Makefile 9 5 4
Renamed styles.css -> css/styles.css 0 0 0
Modified index.html 6 3 3
Renamed app.webmanifest -> js/app.webmanifest 0 0 0
Renamed service-worker.js -> js/service-worker.js 0 0 0
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