update_bootstrap.sh 729 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # Script to copy Bootstrap files into project after running `yarn` to download Bootstrap.
  3. # Use:
  4. # 1. run from project root: zsh ./scripts/update_bootstrap.sh
  5. # 2. rename bootstrap/vendor -> _vendor
  6. # 3. update renamed dir in _mixins.scss to `@import "_vendor/rfs";`
  7. # 4. update jQuery and Popper CDN dependencies
  8. ASSETS_JS_DIR="wowchemy/assets/js/_vendor/"
  9. ASSETS_SCSS_DIR="wowchemy/assets/scss/_vendor/"
  10. mkdir -p $ASSETS_SCSS_DIR/bootstrap/
  11. cp node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $ASSETS_JS_DIR
  12. cp -r node_modules/bootstrap/scss/* $ASSETS_SCSS_DIR/bootstrap/
  13. # cp node_modules/jquery/dist/jquery.min.js $ASSETS_JS_DIR
  14. # cp node_modules/popper.js/dist/umd/popper.min.js $ASSETS_JS_DIR