-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate-dependencies
More file actions
executable file
·32 lines (25 loc) · 1.64 KB
/
Copy pathupdate-dependencies
File metadata and controls
executable file
·32 lines (25 loc) · 1.64 KB
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
#!/usr/bin/env bash
JS_DIR='assets/js'
CSS_DIR='assets/css'
FONTS_DIR='assets/fonts'
set -e
echo "Déplacement dans le répertoire racine du dépôt"
cd "$(dirname "${BASH_SOURCE[0]}")/.."
echo "Mise à jour de Jekyll et de ses dépendances"
bundle update
bundle outdated --only-explicit
echo
echo "Mise à jour de Bootstrap..."
bootstrapVersion=$(curl -s 'https://data.jsdelivr.com/v1/package/npm/bootstrap' | jq -r '.tags."latest-5"')
echo -e "Using bootstrap ${bootstrapVersion}\n"
curl -so "$CSS_DIR/bootstrap.min.css" "https://cdn.jsdelivr.net/npm/bootstrap@${bootstrapVersion}/dist/css/bootstrap.min.css"
echo "Mise à jour de Bootstrap Icons..."
bootstrapIconsVersion=$(curl -s 'https://data.jsdelivr.com/v1/package/npm/bootstrap-icons' | jq -r '.tags.latest')
echo -e "Using bootstrap-icons ${bootstrapIconsVersion}\n"
curl -so "$CSS_DIR/bootstrap-icons.css" "https://cdn.jsdelivr.net/npm/bootstrap-icons@${bootstrapIconsVersion}/font/bootstrap-icons.css"
curl -so "$CSS_DIR/fonts/bootstrap-icons.woff" "https://cdn.jsdelivr.net/npm/bootstrap-icons@${bootstrapIconsVersion}/font/fonts/bootstrap-icons.woff"
curl -so "$CSS_DIR/fonts/bootstrap-icons.woff2" "https://cdn.jsdelivr.net/npm/bootstrap-icons@${bootstrapIconsVersion}/font/fonts/bootstrap-icons.woff2"
echo "Mise à jour de Simple-Jekyll-Search..."
simpleJekyllSearchVersion=$(curl -s 'https://data.jsdelivr.com/v1/package/npm/simple-jekyll-search' | jq -r '.tags.latest')
echo -e "Using simple-jekyll-search ${simpleJekyllSearchVersion}\n"
curl -so "$JS_DIR/simple-jekyll-search.min.js" "https://cdn.jsdelivr.net/npm/simple-jekyll-search@${simpleJekyllSearchVersion}/dest/simple-jekyll-search.min.js"