-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathupdateJS.sh
executable file
·41 lines (28 loc) · 1.2 KB
/
updateJS.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Update dependencies
npm install
# Create destination directories if they don't exist
mkdir -p assets/js
mkdir -p assets/bootstrap/js
mkdir -p assets/bootstrap/css
mkdir -p assets/bootstrap/fonts
mkdir -p assets/font-awesome/css
mkdir -p assets/font-awesome/webfonts
# Copy files from node_modules to assets, renaming to unversioned names
# jQuery
cp node_modules/jquery/dist/jquery.min.js assets/js/jquery.min.js
# Bootstrap
cp node_modules/bootstrap/dist/js/bootstrap.min.js assets/bootstrap/js/
cp node_modules/bootstrap/dist/css/bootstrap.min.css assets/bootstrap/css/
#cp node_modules/bootstrap/dist/js/bootstrap.min.js.map assets/bootstrap/js/
cp -r node_modules/bootstrap/dist/fonts/* assets/bootstrap/fonts/
# jQuery Backstretch
cp node_modules/jquery-backstretch/jquery.backstretch.min.js assets/js/
# WOW.js
cp node_modules/wowjs/dist/wow.min.js assets/js/
# Retina.js
cp node_modules/retinajs/dist/retina.min.js assets/js/
# Font Awesome
cp node_modules/@fortawesome/fontawesome-free/css/all.min.css assets/font-awesome/css/
cp -r node_modules/@fortawesome/fontawesome-free/webfonts/* assets/font-awesome/webfonts/
echo "JavaScript, CSS, and font files copied to assets directory."