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
|
2019-02-20 19:05:46 +00:00
|
|
|
sass -E 'UTF-8' style.scss:../../style.css
|
2018-06-29 17:33:49 +00:00
|
|
|
echo "Style of Tainacan Compiled";
|
2019-03-12 19:55:04 +00:00
|
|
|
sass -E 'UTF-8' editor-style.scss:../../editor-style.css
|
|
|
|
echo "Style of Tainacan for Gutenberg Editor Compiled";
|
2018-06-29 17:33:49 +00:00
|
|
|
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
|
|
|
|
echo "Bootstrap Compiled";
|
|
|
|
rm -rf .sass-cache
|
2019-10-28 19:50:04 +00:00
|
|
|
cd ../vendor/slick
|
2018-06-29 17:33:49 +00:00
|
|
|
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/
|
2019-10-28 19:50:04 +00:00
|
|
|
cd ../../scss
|
|
|
|
rm -rf ../style.css.map
|
|
|
|
# rm -rf ../editor-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
|