portfolios_pgp/themes/academia-hugo/scripts/update_bootstrap.sh

14 lines
485 B
Bash
Raw Normal View History

2021-12-31 12:44:26 +01:00
#!/usr/bin/env bash
# Script to copy Bootstrap files into project after running `npm install` to download Bootstrap.
ASSETS_JS_DIR="assets/js/vendor/"
ASSETS_SCSS_DIR="assets/sass/vendor/"
mkdir -p $ASSETS_SCSS_DIR/bootstrap/
cp node_modules/bootstrap/dist/js/bootstrap.min.js $ASSETS_JS_DIR
cp -r node_modules/bootstrap/scss/* $ASSETS_SCSS_DIR/bootstrap/
# cp node_modules/jquery/dist/jquery.min.js $ASSETS_JS_DIR
# cp node_modules/popper.js/dist/umd/popper.min.js $ASSETS_JS_DIR