This commit is contained in:
David Štaleker
2024-02-23 12:56:54 +01:00
parent 18bac3de1c
commit 28d1630749
1388 changed files with 558637 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# set env vars usually set by MyGet (enable for local testing)
#$env:SourcesPath = '..'
#$env:NuGet = "./nuget.exe" #https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
$nuget = $env:NuGet
# 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 '-'
$bsversion = $bsversionParts[0]
if ($bsversionParts.Length -gt 1)
{
$bsversion += '-' + $bsversionParts[1].replace('.', '').replace('-', '_') # strip out invalid chars from the PreRelease part
}
# update sourceMappingURL in bootstrap-select.min.js
(Get-Content $env:SourcesPath\dist\js\bootstrap-select.min.js).replace("sourceMappingURL=", "sourceMappingURL=Scripts/") | Set-Content $env:SourcesPath\dist\js\bootstrap-select.min.js
# create packages
& $nuget pack "$env:SourcesPath\nuget\bootstrap-select.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion

View File

@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>bootstrap-select</id>
<version>1.13.18</version>
<title>bootstrap-select</title>
<authors>Casey Holzer, Silvio Moreto, SnapAppointments LLC</authors>
<owners>SnapAppointments, LLC</owners>
<projectUrl>https://developer.snapappointments.com/bootstrap-select</projectUrl>
<description>The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.</description>
<tags>javascript jquery form bootstrap dropdown select replacement</tags>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies>
<dependency id="jQuery" version="[1.9.1, 4)" />
<dependency id="bootstrap" version="3.0.0" />
</dependencies>
</metadata>
<files>
<file src="dist\js\bootstrap-select*.*" target="content\Scripts" />
<file src="dist\js\i18n\*.*" target="content\Scripts\i18n" />
<file src="dist\css\*.*" target="content\Content" />
</files>
</package>