Fix all unminified versions of third-party libraries

This commit is contained in:
Fabiano Alencar 2019-02-22 15:50:42 -03:00
parent 0e5ba23b05
commit 8641e5e30e
3 changed files with 10 additions and 14 deletions

View File

@ -6,20 +6,21 @@ command -v sass >/dev/null 2>&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
echo "Updating files of theme"
rm -rf $destination
mkdir $destination
cp -R src/* $destination/
##Removendo o arquivo sass
rm -rf $destination/scss
##Bootstrap
mkdir $destination/assets/vendor/bootstrap/css
cp $destination/assets/vendor/bootstrap/scss/bootstrap.min.css $destination/assets/vendor/bootstrap/css/bootstrap.min.css

View File

@ -25,18 +25,13 @@ echo "Copy Slick for Slider...\n\n";
mkdir("src/assets/vendor/slick/js", 0777, true);
mkdir("src/assets/vendor/slick/fonts", 0777, true);
}
copy("vendor/fabianobn/slick/slick/slick-theme.scss", "src/assets/vendor/slick/scss/slick-theme.scss");
copy("vendor/fabianobn/slick/slick/slick.scss", "src/assets/vendor/slick/scss/slick.scss");
copy("vendor/fabianobn/slick/slick/slick.min.js", "src/assets/vendor/slick/js/slick.min.js");
copy("vendor/fabianobn/slick/slick/ajax-loader.gif", "src/assets/vendor/slick/ajax-loader.gif");
recurse_copy("vendor/fabianobn/slick/slick/fonts", "src/assets/vendor/slick/fonts");
recurse_copy("vendor/fabianobn/slick/slick/", "src/assets/vendor/slick/");
echo "Copy Ekko Lightbox...\n\n";
if (!file_exists("src/assets/vendor/ekko-lightbox")) {
mkdir("src/assets/vendor/ekko-lightbox/", 0777, true);
}
copy("vendor/fabianobn/ekko-lightbox/dist/ekko-lightbox.min.js", "src/assets/vendor/ekko-lightbox/ekko-lightbox.min.js");
copy("vendor/fabianobn/ekko-lightbox/dist/ekko-lightbox.css", "src/assets/vendor/ekko-lightbox/ekko-lightbox.min.css");
recurse_copy("vendor/fabianobn/ekko-lightbox/", "src/assets/vendor/ekko-lightbox/");
echo "Finish Copy files! \n\n";

View File

@ -56,7 +56,7 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
'lessText' => __( 'Show less', 'tainacan-interface' ),
));
wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'tainacan_bootstrap4CSS' ) );
wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'bootstrap4CSS' ) );
wp_enqueue_style( 'tainacan_tainacanStyle' );
wp_register_script( 'tainacan_tainacanJS', get_template_directory_uri() . '/assets/js/js.js', '', '1.0', true );
wp_enqueue_script( 'tainacan_tainacanJS' );