prvi
This commit is contained in:
@@ -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
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user