summaryrefslogtreecommitdiff
path: root/assets/css/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/compile.sh')
-rwxr-xr-xassets/css/compile.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/assets/css/compile.sh b/assets/css/compile.sh
new file mode 100755
index 0000000..2487f07
--- /dev/null
+++ b/assets/css/compile.sh
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+HERE=$(dirname $(readlink -f ${0}));
+
+cd ${HERE};
+
+rm -fr fonts;
+
+#===============================================================
+docker run -u$(id -u):$(id -g) -v${HERE}:/x -w/x --rm -i node:16.6.0-alpine3.14 sh <<'EOF'
+#===============================================================
+
+npm install;
+npm run build;
+
+#===============================================================
+EOF
+#===============================================================
+
+mv out/theme.css .;
+mv out/fonts .;
+
+rm -fr node_modules;
+rm -fr out;