1
0
mirror of https://github.com/nsnail/dot.git synced 2025-04-17 19:02:50 +08:00

build: 📦 构建脚本优化 ()

This commit is contained in:
nsnail 2023-12-15 16:46:33 +08:00 committed by GitHub
parent 82ab9cb42b
commit db7d32aa01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -13,11 +13,11 @@ git checkout main
git branch -D release
git checkout -b release
./node_modules/.bin/standard-version -r $types[$prefix][0]
cd ./scripts
./code.clean.ps1
git commit --amend --no-edit -a
git push --follow-tags --force origin release
Start-Process -FilePath "https://github.com/nsnail/dot/compare/main...release"
cd ./scripts
Write-Host "按『Enter』回到主分支『Ctrl+C』退出"
Pause
git checkout main

@ -1,4 +1,4 @@
dotnet jb cleanupcode --no-build --include =$( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../Dot.sln
jb cleanupcode --no-build --include =$( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../Dot.sln
dot rbom -w -e refs -e .git -e node_modules ../
dot trim -w -e refs -e .git -e node_modules ../
dot tolf -w -e refs -e .git -e node_modules ../