summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/make.sh b/make.sh
new file mode 100755
index 0000000..04f42a3
--- /dev/null
+++ b/make.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env sh
+
+make_stylesheet() {
+ input="css/${1}.scss"
+ output="css/${1}.css"
+
+ echo "making stylesheet at \"${output}\"..."
+ sassc --style compressed "${input}" > "${output}"
+}
+
+make_script() {
+ input="js/${1}.ts"
+ output="js/${1}.js"
+
+ echo "making script at \"${output}\"..."
+ tsc --outFile "${output}" --target ES2022 "${input}"
+}
+
+make_stylesheet "main"
+
+make_script "initImages"