summaryrefslogtreecommitdiff
path: root/assets/css/compile.sh
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-28 17:54:41 -0500
committerZach van Rijn <me@zv.io>2021-07-28 18:10:26 -0500
commit0aa41b28d872336b294245a1fba1336b8010aff7 (patch)
tree87577f5a30b878d16800c0f5d0d1e8f47ffa3223 /assets/css/compile.sh
parentf9244351757b7679bcd3d1a8286f351dc28db89e (diff)
downloadsite-ng-0aa41b28d872336b294245a1fba1336b8010aff7.tar.gz
site-ng-0aa41b28d872336b294245a1fba1336b8010aff7.tar.bz2
site-ng-0aa41b28d872336b294245a1fba1336b8010aff7.tar.xz
site-ng-0aa41b28d872336b294245a1fba1336b8010aff7.zip
Use different sass compiler. Enable atomic update.
Diffstat (limited to 'assets/css/compile.sh')
-rwxr-xr-xassets/css/compile.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/assets/css/compile.sh b/assets/css/compile.sh
new file mode 100755
index 0000000..a117b9f
--- /dev/null
+++ b/assets/css/compile.sh
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+
+HERE=$(dirname $(readlink -f ${0}));
+cd ${HERE};
+
+rm -f theme.css;
+
+#===============================================================
+docker run -v$(pwd):/x -w/x --rm -i node:16.5.0-alpine3.14 sh <<'EOF'
+apk update;
+apk upgrade;
+apk add git;
+#===============================================================
+
+cd /tmp;
+git clone https://github.com/sass/sass.git;
+cd sass;
+git checkout 2121f939b411c1650005b82c53557dd6248bff74;
+npm audit fix;
+npm install;
+npm install -g sass;
+cd /x;
+
+sass --no-source-map scss/theme.scss theme.css;
+chown 1000:1000 theme.css;
+
+#===============================================================
+EOF
+#===============================================================