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
|
|
|
|
2019-05-09 19:55:47 +00:00
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-3 src/gutenberg-blocks/tainacan-collections/collections-list/collections-list.scss:src/assets/css/tainacan-gutenberg-block-collections-list.css
|
|
|
|
|
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-4 src/gutenberg-blocks/tainacan-items/items-list/items-list.scss:src/assets/css/tainacan-gutenberg-block-items-list.css
|
|
|
|
|
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-5 src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list.scss:src/assets/css/tainacan-gutenberg-block-dynamic-items-list.css
|
|
|
|
|
|
|
|
sass -E 'UTF-8' --cache-location .tmp/sass-cache-6 src/gutenberg-blocks/tainacan-terms/terms-list/terms-list.scss:src/assets/css/tainacan-gutenberg-block-terms-list.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
|