tainacan-theme/build.sh

41 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
command -v sass >/dev/null 2>&1 || {
echo >&2 "REQUIRE: SASS installed to compile the SCSS archives to CSS.";
exit 1;
}
source build-config.cfg
echo "Updating files of theme"
rm -rf $destination
mkdir $destination
##Removendo o arquivo sass
##rm -rf $destination/scss
## Install composer dependencies
composer install
## Compile SASS
sh compile-sass.sh
cp -R src/* $destination/
##Bootstrap
mkdir $destination/assets/vendor/bootstrap/css
cp $destination/assets/vendor/bootstrap/scss/bootstrap.min.css $destination/assets/vendor/bootstrap/css/bootstrap.min.css
rm -rf $destination/vendor
##Slick
mkdir $destination/assets/vendor/slick/css
cp $destination/assets/vendor/slick/scss/slick.min.css $destination/assets/vendor/slick/css/slick.min.css
cp $destination/assets/vendor/slick/scss/slick-theme.min.css $destination/assets/vendor/slick/css/slick-theme.min.css
mv $destination/assets/vendor/slick/ajax-loader.gif $destination/assets/vendor/slick/css/ajax-loader.gif
mv $destination/assets/vendor/slick/fonts/ $destination/assets/vendor/slick/css/fonts/
##clean
rm $destination/assets/vendor/ekko-lightbox/.gitignore
rm -rf $destination/assets/vendor/ekko-lightbox/.git
echo "Compilation Finish!!"