tainacan-theme/compile-sass.sh

45 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2018-01-19 17:06:56 +00:00
#!/bin/bash
2018-11-23 20:13:04 +00:00
#Teste commit
2018-01-19 17:06:56 +00:00
# Executa o comando 'sass' para verificar se existe (veja http://stackoverflow.com/a/677212/329911)
command -v sass >/dev/null 2>&1 || {
2018-08-17 16:57:51 +00:00
echo >&2 "REQUIRE: SASS installed to compile the SCSS archives to CSS.";
2018-01-19 17:06:56 +00:00
exit 1;
}
# Define o caminho.
echo "Compiling Sass..."
#Bootstrap
#cd src/assets/vendor/bootstrap/scss
#sass bootstrap.scss:bootstrap.min.css --style compressed
#Style do Tema
#cd ../../../../assets/scss
cd src/assets/scss
sass -E 'UTF-8' -t compressed style.scss:../../style.css
2021-04-19 18:47:24 +00:00
echo "Tainacan's style compiled.";
sass -E 'UTF-8' -t compressed editor-style.scss:../../editor-style.css
2021-04-19 18:47:24 +00:00
echo "Tainacan's Gutenberg Editor style compiled";
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
2021-04-19 18:47:24 +00:00
echo "Bootstrap style compiled";
rm -rf .sass-cache
cd ../vendor/slick
sass slick.scss:slick.min.css --style compressed
sass slick-theme.scss:slick-theme.min.css --style compressed
2021-04-19 18:47:24 +00:00
echo "Slick for slider carousel compiled";
rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/
cd ../../../
rm -rf style.css.map
rm -rf editor-style.css.map
rm -rf assets/vendor/bootstrap/scss/bootstrap.min.css.map
echo "CSS map files removed";
2018-01-19 17:06:56 +00:00
echo "Sass compilation Completed!"
2018-01-19 17:06:56 +00:00
exit 0