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 || {
|
2018-01-24 19:09:23 +00:00
|
|
|
echo >&2 "SASS does not seem to be available.";
|
2018-01-19 17:06:56 +00:00
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define o caminho.
|
2018-01-24 19:09:23 +00:00
|
|
|
echo "Compiling Sass..."
|
|
|
|
|
|
|
|
#Bootstrap
|
2018-01-29 15:45:24 +00:00
|
|
|
#cd src/assets/vendor/bootstrap/scss
|
|
|
|
#sass bootstrap.scss:bootstrap.min.css --style compressed
|
2018-01-24 19:09:23 +00:00
|
|
|
|
|
|
|
#Style do Tema
|
2018-01-29 15:45:24 +00:00
|
|
|
#cd ../../../../assets/scss
|
|
|
|
cd src/assets/scss
|
2018-06-29 17:33:49 +00:00
|
|
|
sass -E 'UTF-8' style.scss:../../style.css --style compressed
|
|
|
|
echo "Style of Tainacan Compiled";
|
|
|
|
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
|
|
|
|
echo "Bootstrap Compiled";
|
|
|
|
rm -rf .sass-cache
|
|
|
|
cd ../vendor/slick/scss
|
|
|
|
sass slick.scss:slick.min.css --style compressed
|
|
|
|
sass slick-theme.scss:slick-theme.min.css --style compressed
|
|
|
|
echo "Slick for slider carousel Compiled";
|
|
|
|
rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/
|
|
|
|
cd ../../../scss
|
2018-01-29 15:45:24 +00:00
|
|
|
rm -rf ../../style.css.map
|
2018-01-19 17:06:56 +00:00
|
|
|
|
2018-01-24 19:09:23 +00:00
|
|
|
echo "Sass compilation Completed!"
|
2018-01-19 17:06:56 +00:00
|
|
|
exit 0
|