diff options
author | Sebastian Pech <windows@spech.de> | 2022-01-15 12:16:14 +0300 |
---|---|---|
committer | Sebastian Pech <windows@spech.de> | 2022-01-15 12:16:14 +0300 |
commit | 06736fdffcc673046500d31b506a13d91635d58a (patch) | |
tree | faf73772755be19ca5160c171ce64834e489f86c | |
parent | 212330d72bd8b1ec0f01003193f9c1e30b04f20d (diff) |
Prepare tooling
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | package-lock.json | 13 | ||||
-rw-r--r-- | package.json | 17 | ||||
-rw-r--r-- | update.ps1 | 17 |
4 files changed, 46 insertions, 3 deletions
@@ -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" |