Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2022-01-15 12:16:14 +0300
committerSebastian Pech <windows@spech.de>2022-01-15 12:16:14 +0300
commit06736fdffcc673046500d31b506a13d91635d58a (patch)
treefaf73772755be19ca5160c171ce64834e489f86c
parent212330d72bd8b1ec0f01003193f9c1e30b04f20d (diff)
Prepare tooling
-rw-r--r--.gitignore2
-rw-r--r--package-lock.json13
-rw-r--r--package.json17
-rw-r--r--update.ps117
4 files changed, 46 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 6704566..e69b9dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -102,3 +102,5 @@ dist
# TernJS port file
.tern-port
+
+exampleSite/.hugo_build.lock
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..5ef2858
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,13 @@
+{
+ "name": "bootstrap-bp-hugo-theme",
+ "version": "1.0.0",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "bootstrap": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.1.3.tgz",
+ "integrity": "sha512-fcQztozJ8jToQWXxVuEyXWW+dSo8AiXWKwiSSrKWsRB/Qt+Ewwza+JWoLKiTuQLaEPhdNAJ7+Dosc9DOIqNy7Q=="
+ }
+ }
+}
diff --git a/package.json b/package.json
index 40f4a68..70d6bbb 100644
--- a/package.json
+++ b/package.json
@@ -5,18 +5,29 @@
"description": "Bootstrap based Hugo theme which supports out of the box best practices.",
"main": "index.js",
"scripts": {
- "start": "cd ../.. && hugo server"
+ "start": "cd ../.. && hugo server",
+ "example": "cd exampleSite && hugo server --themesDir ../.."
},
"repository": {
"type": "git",
- "url": "https://github.com/spech66/bootstrap-bp-hugo-theme.git"
+ "url": "git+https://github.com/spech66/bootstrap-bp-hugo-theme.git"
},
"keywords": [
- "hugo", "bootstrap", "blog", "fontawesome", "gohugo", "website", "theme"
+ "hugo",
+ "bootstrap",
+ "blog",
+ "fontawesome",
+ "gohugo",
+ "website",
+ "theme"
],
"author": "Sebastian Pech (https://www.spech.de/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/spech66/bootstrap-bp-hugo-theme/issues"
+ },
+ "private": "true",
+ "dependencies": {
+ "bootstrap": "^5.1.3"
}
}
diff --git a/update.ps1 b/update.ps1
new file mode 100644
index 0000000..712db36
--- /dev/null
+++ b/update.ps1
@@ -0,0 +1,17 @@
+$pkgold = Get-Content "package-lock.json" | Out-String | ConvertFrom-Json
+$bversionold = $pkgold.dependencies.bootstrap.version
+Write-Host "Bootstrap current: $bversionold"
+
+npm update
+
+Copy-Item -Force .\node_modules\bootstrap\dist\js\bootstrap.bundle.min.js .\assets\js\bootstrap.bundle.min.js
+
+New-Item -Path ".\assets\sass\bootstrap\" -ItemType "Directory" -Force
+Copy-Item -Path ".\node_modules\bootstrap\scss\*" -Destination ".\assets\sass\bootstrap\" -Recurse -Force
+
+$pkg = Get-Content "package-lock.json" | Out-String | ConvertFrom-Json
+$bversion = $pkg.dependencies.bootstrap.version
+Write-Host "Bootstrap: $bversion"
+Write-Host "For tagging:"
+Write-Host "git tag -a v$bversion -m ""Bootstrap version $bversion"""
+Write-Host "git push origin v$bversion"