mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
19 lines
377 B
Bash
19 lines
377 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
main() {
|
||
|
for file in $(find . -name '*.scss' -type f); do
|
||
|
bnam="$(basename "$file")"
|
||
|
out="$(dirname "$file")/${bnam%.*}.css"
|
||
|
|
||
|
echo " >> Generating $out"
|
||
|
node-sass "$file" --output-style compressed >"$out"
|
||
|
done
|
||
|
|
||
|
echo " >> Removing residuals"
|
||
|
find . -name '_*.css' -type f -exec rm -f {} \;
|
||
|
}
|
||
|
|
||
|
main "$@"
|