tainacan-theme/compile-sass.sh

24 lines
501 B
Bash
Raw Normal View History

2018-01-19 17:06:56 +00:00
#!/bin/bash
# Executa o comando 'sass' para verificar se existe (veja http://stackoverflow.com/a/677212/329911)
command -v sass >/dev/null 2>&1 || {
echo >&2 "SASS does not seem to be available.";
2018-01-19 17:06:56 +00:00
exit 1;
}
# Define o caminho.
echo "Compiling Sass..."
#Bootstrap
cd src/vendor/bootstrap/scss
sass bootstrap.scss:bootstrap.min.css --style compressed
#Style do Tema
cd ../../../scss
2018-01-19 17:06:56 +00:00
sass -E 'UTF-8' style.scss:../style.css
cd ..
rm -rf style.css.map
2018-01-19 17:06:56 +00:00
echo "Sass compilation Completed!"
2018-01-19 17:06:56 +00:00
exit 0