Updates on build script for laoding vendor libs.
This commit is contained in:
parent
e3684f1a48
commit
f7f3528450
5
build.sh
5
build.sh
|
@ -28,10 +28,11 @@ rm -rf $destination/vendor
|
||||||
|
|
||||||
##Slick
|
##Slick
|
||||||
mkdir $destination/assets/vendor/slick/css
|
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/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
|
cp $destination/assets/vendor/slick/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/ajax-loader.gif $destination/assets/vendor/slick/css/ajax-loader.gif
|
||||||
mv $destination/assets/vendor/slick/fonts/ $destination/assets/vendor/slick/css/fonts/
|
mv $destination/assets/vendor/slick/fonts/ $destination/assets/vendor/slick/css/fonts/
|
||||||
|
cp $destination/assets/vendor/slick/slick.min.js $destination/assets/vendor/slick/js/slick.min.js
|
||||||
|
|
||||||
##clean
|
##clean
|
||||||
rm $destination/assets/vendor/ekko-lightbox/.gitignore
|
rm $destination/assets/vendor/ekko-lightbox/.gitignore
|
||||||
|
|
|
@ -25,14 +25,14 @@ echo "Style of Tainacan for Gutenberg Editor Compiled";
|
||||||
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
|
sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed
|
||||||
echo "Bootstrap Compiled";
|
echo "Bootstrap Compiled";
|
||||||
rm -rf .sass-cache
|
rm -rf .sass-cache
|
||||||
cd ../vendor/slick/scss
|
cd ../vendor/slick
|
||||||
sass slick.scss:slick.min.css --style compressed
|
sass slick.scss:slick.min.css --style compressed
|
||||||
sass slick-theme.scss:slick-theme.min.css --style compressed
|
sass slick-theme.scss:slick-theme.min.css --style compressed
|
||||||
echo "Slick for slider carousel Compiled";
|
echo "Slick for slider carousel Compiled";
|
||||||
rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/
|
rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/
|
||||||
cd ../../../scss
|
cd ../../scss
|
||||||
rm -rf ../../style.css.map
|
rm -rf ../style.css.map
|
||||||
# rm -rf ../../editor-style.css.map
|
# rm -rf ../editor-style.css.map
|
||||||
|
|
||||||
echo "Sass compilation Completed!"
|
echo "Sass compilation Completed!"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -21,7 +21,7 @@ echo "\nCopy Frameword CSS - Bootstrap ...\n\n";
|
||||||
echo "Copy Slick for Slider...\n\n";
|
echo "Copy Slick for Slider...\n\n";
|
||||||
if (!file_exists("src/assets/vendor/slick")) {
|
if (!file_exists("src/assets/vendor/slick")) {
|
||||||
mkdir("src/assets/vendor/slick/", 0777, true);
|
mkdir("src/assets/vendor/slick/", 0777, true);
|
||||||
mkdir("src/assets/vendor/slick/scss", 0777, true);
|
mkdir("src/assets/vendor/slick/css", 0777, true);
|
||||||
mkdir("src/assets/vendor/slick/js", 0777, true);
|
mkdir("src/assets/vendor/slick/js", 0777, true);
|
||||||
mkdir("src/assets/vendor/slick/fonts", 0777, true);
|
mkdir("src/assets/vendor/slick/fonts", 0777, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
|
||||||
* Bootstrap 4.1.3
|
* Bootstrap 4.1.3
|
||||||
*/
|
*/
|
||||||
//Style
|
//Style
|
||||||
wp_register_style( 'bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/css/bootstrap.min.css' );
|
wp_register_style( 'bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/scss/bootstrap.min.css' );
|
||||||
wp_enqueue_style( 'bootstrap4CSS' );
|
wp_enqueue_style( 'bootstrap4CSS' );
|
||||||
//Javascript
|
//Javascript
|
||||||
wp_register_script( 'bootstrap4JS', get_template_directory_uri() . '/assets/vendor/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '', true );
|
wp_register_script( 'bootstrap4JS', get_template_directory_uri() . '/assets/vendor/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '', true );
|
||||||
|
@ -33,9 +33,9 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
|
||||||
/**
|
/**
|
||||||
* Ekko Lightbox
|
* Ekko Lightbox
|
||||||
*/
|
*/
|
||||||
wp_register_style( 'EkkoLightboxCss', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/ekko-lightbox.min.css');
|
wp_register_style( 'EkkoLightboxCss', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/dist/ekko-lightbox.css');
|
||||||
wp_enqueue_style( 'EkkoLightboxCss' );
|
wp_enqueue_style( 'EkkoLightboxCss' );
|
||||||
wp_register_script( 'EkkoLightboxJs', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/ekko-lightbox.min.js', array('jquery'), null, true);
|
wp_register_script( 'EkkoLightboxJs', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/dist/ekko-lightbox.min.js', array('jquery'), null, true);
|
||||||
wp_enqueue_script( 'EkkoLightboxJs' );
|
wp_enqueue_script( 'EkkoLightboxJs' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue