refactor: make this a valid nuget package for Powershell gallery
feat: add build environment scripts
This commit is contained in:
parent
69c2684ee7
commit
46b1b7c83f
38 changed files with 200 additions and 42 deletions
22
scripts/clean.ps1
Executable file
22
scripts/clean.ps1
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#! /usr/bin/pwsh
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$ErrorView = "NormalView"
|
||||
|
||||
$basePath = Join-Path $PSScriptRoot '..'
|
||||
|
||||
@(
|
||||
'dist',
|
||||
'test-reports'
|
||||
) | ForEach {
|
||||
$path = Join-Path $basePath $_
|
||||
|
||||
If (-Not (Test-Path $path)) {return}
|
||||
|
||||
Write-Host "rm: $(Resolve-Path $path)"
|
||||
|
||||
Remove-Item -Recurse -Force ($path)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue