svg-editor

A simple SVG markup editor for the web

Commit
0bfc7091b49473fb04027dba6c7e555c1324915f
Parent
9dc32f51b107c20d87fe08b6c7a0a90c4fa18244
Author
Pablo <pablo-pie@riseup.net>
Date

Updated Makefile and README.md

Diffstats

3 files changed, 9 insertions, 15 deletions

Status Name Changes Insertions Deletions
Modified .gitignore 2 files changed 1 1
Modified Makefile 2 files changed 6 4
Modified README.md 2 files changed 2 10
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,4 @@
 elm-stuff
 css/base.css
 css/ibm-plex.css
-_site
+site
diff --git a/Makefile b/Makefile
@@ -1,14 +1,16 @@
 .PHONY: runserver build auto-compile
 
+OUTPUT_DIR ?= ./site
+
 build:
 	elm make --optimize --output=/tmp/elm-script.js src/Main.elm
-	uglifyjs --compress --mangle -o _site/js/script.min.js -- /tmp/elm-script.js
+	uglifyjs --compress --mangle -o "$(OUTPUT_DIR)/js/script.min.js" -- /tmp/elm-script.js
 	rm /tmp/elm-script.js
-	cp --verbose index.html manifest.json css assets _site/ -r
-	cp --verbose js/* _site/js/
+	cp -vr index.html manifest.json css assets/ "$(OUTPUT_DIR)/"
+	cp -v  js/* "$(OUTPUT_DIR)/js/"
 
 runserver:
-	cd _site && python3 -m http.server
+	cd "$(OUTPUT_DIR)/" && python3 -m http.server
 
 auto-compile:
 	find '.' -name '*.elm' -or -name '*.js' -or -name '*.css' -or -name '*.svg' \
diff --git a/README.md b/README.md
@@ -1,14 +1,7 @@
 # SVG Editor
 
-A simple, visual SVG markup editor for the web. This editor solves a very
-specific problem:
-
-* I can edit the source code of SVG files in a text editor
-* I can view the changes I made in an editor like Inkscape
-* I cannot do them both at the same time
-
-This editor allows users the edit the source code of the image and preview the
-results instantly.
+A simple, visual SVG markup editor for the web. This editor allows users the
+edit the source code of the image and preview the results instantly.
 
 ## Running This on Your Server
 
@@ -25,4 +18,3 @@ run this on your server just dump the files somewhere.
 ```
 $ make build
 ```
-