2018-01-19 17:06:56 +00:00
|
|
|
#!/bin/bash
|
2018-08-17 16:41:47 +00:00
|
|
|
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-08-17 16:41:47 +00:00
|
|
|
exit 1;
|
|
|
|
}
|
2018-01-19 17:06:56 +00:00
|
|
|
|
2018-07-24 18:45:38 +00:00
|
|
|
source build-config.cfg
|
2018-01-19 17:06:56 +00:00
|
|
|
|
2018-01-24 19:09:23 +00:00
|
|
|
## Install composer dependencies
|
|
|
|
composer install
|
|
|
|
|
2018-01-19 17:06:56 +00:00
|
|
|
## Compile SASS
|
|
|
|
sh compile-sass.sh
|
|
|
|
|
2018-01-24 19:09:23 +00:00
|
|
|
echo "Updating files of theme"
|
2018-01-19 17:06:56 +00:00
|
|
|
rm -rf $destination
|
|
|
|
mkdir $destination
|
|
|
|
cp -R src/* $destination/
|
2018-01-24 19:09:23 +00:00
|
|
|
|
|
|
|
##Removendo o arquivo sass
|
2018-01-19 17:06:56 +00:00
|
|
|
rm -rf $destination/scss
|
2018-01-24 19:09:23 +00:00
|
|
|
|
|
|
|
##Bootstrap
|
2018-01-26 16:48:42 +00:00
|
|
|
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/assets/vendor/bootstrap/scss
|
2018-09-19 16:30:03 +00:00
|
|
|
rm -rf $destination/vendor
|
2018-01-24 19:09:23 +00:00
|
|
|
|
2018-06-29 17:33:49 +00:00
|
|
|
##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
|
2018-07-31 22:25:54 +00:00
|
|
|
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/
|
2018-06-29 17:33:49 +00:00
|
|
|
rm -rf $destination/assets/vendor/slick/scss
|
|
|
|
|
2018-07-24 18:05:46 +00:00
|
|
|
echo "Compilation Finish!!"
|