From 524ba41ef532c15cfdd6442ff69a1a0d8975b26f Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Mon, 22 May 2023 14:03:12 -0400 Subject: [PATCH] Add a simple system for building with HTML --- Makefile | 10 ++++++++++ README.md | 9 +++++++++ static/index.html | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100644 static/index.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5cb6646 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: out/gender.min.js out/index.html + +out/gender.max.js: src/ + elm make src/Main.elm --optimize --output out/gender.max.js + +out/gender.min.js: out/gender.max.js + npx uglify-js out/gender.max.js --compress 'pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe' | npx uglify-js --mangle --output out/gender.min.js + +out/index.html: static/index.html + cp static/index.html out/index.html \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..a559524 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Gender Friends + +A silly little meme sketch thingy idk + +## Building + +Install [`elm`][] and [`npx`][] (just used for minification). + +Run `make` in the same directory as this README. \ No newline at end of file diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..ab88f56 --- /dev/null +++ b/static/index.html @@ -0,0 +1,14 @@ + + + + + + +
+ + + \ No newline at end of file