mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 15:40:59 +00:00
Tabs to spaces.
[ci skip]
This commit is contained in:
parent
c2bb71e4ae
commit
278a563241
@ -4,15 +4,15 @@
|
|||||||
|
|
||||||
$nuget = $env:NuGet
|
$nuget = $env:NuGet
|
||||||
|
|
||||||
#parse the version number out of package.json
|
# parse the version number out of package.json
|
||||||
$bsversionParts = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version.split('-', 2) #split the version on the '-'
|
$bsversionParts = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version.split('-', 2) # split the version on the '-'
|
||||||
$bsversion = $bsversionParts[0]
|
$bsversion = $bsversionParts[0]
|
||||||
|
|
||||||
if($bsversionParts.Length -gt 1)
|
if ($bsversionParts.Length -gt 1)
|
||||||
{
|
{
|
||||||
$bsversion += '-' + $bsversionParts[1].replace('.', '').replace('-', '_') #strip out invalid chars from the PreRelease part
|
$bsversion += '-' + $bsversionParts[1].replace('.', '').replace('-', '_') # strip out invalid chars from the PreRelease part
|
||||||
}
|
}
|
||||||
|
|
||||||
#create packages
|
# create packages
|
||||||
& $nuget pack "$env:SourcesPath\nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
|
& $nuget pack "$env:SourcesPath\nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
|
||||||
& $nuget pack "$env:SourcesPath\nuget\bootstrap.sass.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
|
& $nuget pack "$env:SourcesPath\nuget\bootstrap.sass.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
|
Loading…
x
Reference in New Issue
Block a user