2017-10-20 14:30:04 +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 || {
|
|
|
|
echo >&2 "SASS parece não está disponivel.";
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define o caminho.
|
|
|
|
echo "Compilando Sass..."
|
2017-11-06 14:02:51 +00:00
|
|
|
|
2018-10-01 20:32:32 +00:00
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-1 src/scss/tainacan-embeds.scss:src/assets/css/tainacan-embeds.css
|
|
|
|
|
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-2 src/admin/scss/tainacan-admin.scss:src/assets/css/tainacan-admin.css
|
2018-01-19 13:33:24 +00:00
|
|
|
|
2018-10-01 20:32:32 +00:00
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-3 src/gutenberg-blocks/gutenberg-blocks-style.scss:src/assets/css/tainacan-gutenberg-blocks-style.css
|
2018-01-19 13:33:24 +00:00
|
|
|
|
2017-10-20 14:30:04 +00:00
|
|
|
echo "Compilação do Sass Concluído!"
|
|
|
|
exit 0
|