-
Notifications
You must be signed in to change notification settings - Fork 8
/
update_bootstrap.sh
executable file
·25 lines (19 loc) · 837 Bytes
/
update_bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh
# A useful script to download the latest version of bootstrap and jquery
rm -rf node_modules package-lock.json
npm install bootstrap@latest jquery@latest @popperjs/core@latest
rm -rf _sass/bootstrap
mkdir -p _sass/bootstrap
cp -r node_modules/bootstrap/scss/* _sass/bootstrap
touch _sass/bootstrap/__DO_NOT_MODIFY
rm -rf assets/javascript/bootstrap
mkdir -p assets/javascript/bootstrap
cp node_modules/bootstrap/dist/js/bootstrap.bundle.min.* assets/javascript/bootstrap/
cp node_modules/jquery/dist/jquery.min.* assets/javascript/bootstrap/
touch assets/javascript/bootstrap/__DO_NOT_MODIFY
# popper stuff
rm -rf assets/javascript/popper
mkdir -p assets/javascript/popper
cp -r node_modules/@popperjs/core/* assets/javascript/popper/
touch assets/javascript/popper/__DO_NOT_MODIFY
rm -rf node_modules package-lock.json