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.
|
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
|
2021-05-26 18:21:43 +00:00
|
|
|
sass -E 'UTF-8' -t compressed style.scss:../../style.css
|
2021-04-19 18:47:24 +00:00
|
|
|
echo "Tainacan's style compiled.";
|
2020-08-18 20:59:44 +00:00
|
|
|
|
2021-05-26 18:21:43 +00:00
|
|
|
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";
|
2020-08-18 20:59:44 +00:00
|
|
|
|
2018-06-29 17:33:49 +00:00
|
|
|
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
|
2021-04-19 18:47:24 +00:00
|
|
|
echo "Bootstrap style compiled";
|
2020-08-18 20:59:44 +00:00
|
|
|
|
2018-06-29 17:33:49 +00:00
|
|
|
rm -rf .sass-cache
|
2020-08-18 20:59:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2018-01-24 19:09:23 +00:00
|
|
|
echo "Sass compilation Completed!"
|
2018-01-19 17:06:56 +00:00
|
|
|
exit 0
|