Instalação e configuração;

This commit is contained in:
Fabiano Alencar 2018-01-26 14:48:42 -02:00
parent 324adb9155
commit 5635013cf1
3 changed files with 14 additions and 14 deletions

View File

@ -17,8 +17,8 @@ cp -R src/* $destination/
rm -rf $destination/scss
##Bootstrap
mkdir $destination/vendor/bootstrap/css
cp $destination/vendor/bootstrap/scss/bootstrap.min.css $destination/vendor/bootstrap/css
rm -rf $destination/vendor/bootstrap/scss
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
echo "Finish!!"

View File

@ -10,13 +10,13 @@ command -v sass >/dev/null 2>&1 || {
echo "Compiling Sass..."
#Bootstrap
cd src/vendor/bootstrap/scss
cd src/assets/vendor/bootstrap/scss
sass bootstrap.scss:bootstrap.min.css --style compressed
#Style do Tema
cd ../../../scss
sass -E 'UTF-8' style.scss:../style.css
cd ..
cd ../../../../assets/scss
sass -E 'UTF-8' style.scss:../../style.css
cd ../..
rm -rf style.css.map
echo "Sass compilation Completed!"

View File

@ -7,9 +7,9 @@ echo "\nStarting installation with composer ... please wait!!";
echo "\nChecking if project folders exist ...\n\n";
if (!file_exists("vendor/bootstrap")) {
mkdir("src/vendor/bootstrap/", 0777, true);
mkdir("src/vendor/bootstrap/scss", 0777, true);
mkdir("src/vendor/bootstrap/js", 0777, true);
mkdir("src/assets/vendor/bootstrap/", 0777, true);
mkdir("src/assets/vendor/bootstrap/scss", 0777, true);
mkdir("src/assets/vendor/bootstrap/js", 0777, true);
}
echo "\nVerification completed...\n";
@ -17,10 +17,10 @@ echo "\nVerification completed...\n";
echo "\nStarting Copying Files...\n";
echo "...Bootstrap\n";
if (!file_exists("src/vendor/bootstrap/scss/bootstrap.scss")) {
recurse_copy("vendor/twbs/bootstrap/scss", "src/vendor/bootstrap/scss");
copy("vendor/twbs/bootstrap/dist/js/bootstrap.min.js", "src/vendor/bootstrap/js/bootstrap.min.js");
}
recurse_copy("vendor/twbs/bootstrap/scss", "src/assets/vendor/bootstrap/scss");
copy("vendor/twbs/bootstrap/dist/js/bootstrap.min.js", "src/assets/vendor/bootstrap/js/bootstrap.min.js");
copy("vendor/twbs/bootstrap/assets/js/vendor/popper.min.js", "src/assets/vendor/bootstrap/js/popper.min.js");
echo "Finish!\n\n";