tainacan-theme/build.sh

32 lines
961 B
Bash
Raw Normal View History

2018-01-19 17:06:56 +00:00
#!/bin/bash
2018-07-24 18:05:46 +00:00
source build-config.cfg
2018-01-19 17:06:56 +00:00
## Install composer dependencies
composer install
2018-01-19 17:06:56 +00:00
## Compile SASS
sh compile-sass.sh
echo "Updating files of theme"
2018-01-19 17:06:56 +00:00
rm -rf $destination
mkdir $destination
cp -R src/* $destination/
##Removendo o arquivo sass
2018-01-19 17:06:56 +00:00
rm -rf $destination/scss
##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
##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-03 13:20:12 +00:00
cp $destination/assets/vendor/slick/ajax-loader.gif $destination/assets/vendor/slick/css/ajax-loader.gif
rm -rf $destination/assets/vendor/slick/scss
2018-07-24 18:05:46 +00:00
echo "Compilation Finish!!"