Skip to content

Commit

Permalink
Merge pull request #65 from coliff/dev/coliff/update-to-bootstrap-533
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff authored Feb 21, 2024
2 parents a73442e + ded343c commit 0e3e82a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ <h5 class="mt-0">Media heading</h5>
<hr class="my-5" />

<p class="my-3 small">
&copy; 2023 <a href="https://christianoliff.com/" target="_blank" rel="noopener" class="text-dark">Christian Oliff</a> /
&copy; 2023-2024 <a href="https://christianoliff.com/" target="_blank" rel="noopener" class="text-dark">Christian Oliff</a> /
<a href="https://github.com/coliff/bootstrap-5-migrate-tool" target="_blank" rel="noopener" class="text-dark">GitHub</a>
</p>
</footer>
Expand Down
24 changes: 12 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,85 +14,85 @@ function migrate() {
/<link href=["']https:\/\/cdnjs\.cloudflare\.com\/ajax\/libs\/twitter-bootstrap\/4\.\d+\.\d+\/dist\/css\/bootstrap(\.min)?\.css["'] rel=["']stylesheet["'] ?\/?>/g,
function () {
CDNLinksChanged++;
return '<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">';
return '<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">';
},
),
)
// JSDelivr CSS
.pipe(
replace(/<link href=["']https:\/\/cdn\.jsdelivr\.net\/npm\/bootstrap@4\.\d+\.\d+\/dist\/css\/bootstrap(\.min)?\.css["'] rel=["']stylesheet["'] ?\/?>/g, function () {
CDNLinksChanged++;
return '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">';
return '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">';
}),
)
// Stackpath CSS
.pipe(
replace(/<link href=["']https:\/\/stackpath\.bootstrapcdn\.com\/bootstrap\/4\.\d+\.\d+\/css\/bootstrap(\.min)?\.css["'] rel=["']stylesheet["'] ?\/?>/g, function () {
CDNLinksChanged++;
return '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">';
return '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">';
}),
)
// UNPKG CSS
.pipe(
replace(/<link href=["']https:\/\/unpkg\.com\/bootstrap\/4\.\d+\.\d+\/css\/bootstrap(\.min)?\.css["'] rel=["']stylesheet["'] ?\/?>/g, function () {
CDNLinksChanged++;
return '<link href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css">';
return '<link href="https://unpkg.com/bootstrap@5.3.3/dist/css/bootstrap.min.css">';
}),
)
// CDNJS JS
.pipe(
replace(/<script src=["']https:\/\/cdn\.cloudflare\.com\/ajax\/libs\/bootstrap\/4\.\d+\.\d+\/dist\/js\/bootstrap(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.min.js">';
return '<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js">';
}),
)
// JSDelivr JS
.pipe(
replace(/<script src=["']https:\/\/cdn\.jsdelivr\.net\/npm\/bootstrap@4\.\d+\.\d+\/dist\/js\/bootstrap(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js">';
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js">';
}),
)
// Stackpath JS
.pipe(
replace(/<script src=["']https:\/\/stackpath\.bootstrapcdn\.com\/bootstrap\/4\.\d+\.\d+\/js\/bootstrap(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js">';
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js">';
}),
)
// UNPKG JS
.pipe(
replace(/<script src=["']https:\/\/unpkg\.com\/bootstrap\/4\.\d+\.\d+\/js\/bootstrap(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://unpkg.com/bootstrap@5.3.2/dist/js/bootstrap.min.js">';
return '<script src="https://unpkg.com/bootstrap@5.3.3/dist/js/bootstrap.min.js">';
}),
)
// CDNJS Bundle JS
.pipe(
replace(/<script src=["']https:\/\/cdn\.cloudflare\.com\/ajax\/libs\/bootstrap\/4\.\d+\.\d+\/dist\/js\/bootstrap\.bundle(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js">';
return '<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js">';
}),
)
// JSDelivr Bundle JS
.pipe(
replace(/<script src=["']https:\/\/cdn\.jsdelivr\.net\/npm\/bootstrap@4\.\d+\.\d+\/dist\/js\/bootstrap\.bundle(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js">';
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js">';
}),
)
// Stackpath Bundle JS
.pipe(
replace(/<script src=["']https:\/\/stackpath\.bootstrapcdn\.com\/bootstrap\/4\.\d+\.\d+\/js\/bootstrap\.bundle(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js">';
return '<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js">';
}),
)
// UNPKG Bundle JS
.pipe(
replace(/<script src=["']https:\/\/unpkg\.com\/bootstrap\/4\.\d+\.\d+\/js\/bootstrap\.bundle(\.min)?\.js["']>/g, function () {
CDNLinksChanged++;
return '<script src="https://unpkg.com/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js">';
return '<script src="https://unpkg.com/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js">';
}),
)
.pipe(
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"test": "npm run lint && npm run prettier && gulp migrate"
},
"dependencies": {
"gulp": "^4.0.2",
"gulp-replace": "^1.1.4"
"gulp": "4.0.2",
"gulp-replace": "1.1.4"
},
"devDependencies": {
"eslint": "8.56.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ <h5 class="mt-0">Media heading</h5>
<hr class="my-5" />

<p class="my-3 small">
&copy; 2023 <a href="https://christianoliff.com/" target="_blank" rel="noopener" class="text-dark">Christian Oliff</a> /
&copy; 2023-2024 <a href="https://christianoliff.com/" target="_blank" rel="noopener" class="text-dark">Christian Oliff</a> /
<a href="https://github.com/coliff/bootstrap-5-migrate-tool" target="_blank" rel="noopener" class="text-dark">GitHub</a>
</p>
</footer>
Expand Down

0 comments on commit 0e3e82a

Please sign in to comment.