tainacan-theme/compile-sass.sh

43 lines
1.1 KiB
Bash
Raw 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";
2022-05-26 12:16:42 +00:00
sass -E 'UTF-8' -t compressed editor-style-legacy.scss:../../editor-style-legacy.css
echo "Tainacan's Gutenberg Editor legacy 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 ../../../
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