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

update.ps1 - github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 712db36412489ac96658d72309ffdbe08cf46566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"