diff options
Diffstat (limited to 'assets/css/compile.sh')
-rwxr-xr-x | assets/css/compile.sh | 29 |
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 +#=============================================================== |