diff --git a/.gitignore b/.gitignore index 27b2bb41..46c426b9 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,6 @@ local.properties *.sln.docstates *.sln *.nupkg -*.nuspec *.*roj workbench/jquery* workbench/bootstrap* diff --git a/build/KoGrid.nuspec b/build/KoGrid.nuspec new file mode 100644 index 00000000..83c33b67 --- /dev/null +++ b/build/KoGrid.nuspec @@ -0,0 +1,25 @@ + + + + Knockout.KoGrid + 2.1.1 + timothyswt,ebarnard + timothyswt,ebarnard + http://www.opensource.org/licenses/mit-license.php + https://github.com/Knockout-Contrib/KoGrid + false + A high-performance KnockoutJS DataGrid. +KoGrid was inspired by SlickGrid, and has been kept in sync with its sibling, ng-grid (a high-performance AngularJS DataGrid). + Officially moved to Knockout-Contrib + Copyright 2013 + knockoutjs javascript jquery datagrid ng-grid + + + + + + + + + + \ No newline at end of file diff --git a/build/build-nuget.ps1 b/build/build-nuget.ps1 new file mode 100644 index 00000000..f7853fd1 --- /dev/null +++ b/build/build-nuget.ps1 @@ -0,0 +1,29 @@ +# NuGet Build and Publish Script +#============================================================================== +# Prerequisites: +# - Must be an owner of the NuGet Package +# - Must have "NuGet.exe" in your path +# - Must have latest "NuGet.exe" or self-updating enabled (which it should be) +# - Must have set your NuGet APIKey globally using: +# "nuget setApiKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +# - Windows (hopefully that's obvious) +#============================================================================== + +# Variables + +$path = [System.IO.Path] +$cd = $(Get-Location).Path; +$output = $cd; # The "/Build" Folder +$nuspec = $path::Combine($cd, "KoGrid.nuspec"); +$pkg = ""; # set after the build + +# First, smoke any old Nuget Packages +Write-Host "Cleaning out old Nuget Packages..." +Get-ChildItem $output -include *.nupkg -recurse | foreach ($_) { Write-Host $_.Name; Remove-Item $_.FullName } + +# Then, Build the NuGet Pkg +& nuget pack $nuspec -p Configuration=Release -o $output -verbosity "detailed" + +# Now Publish the Pkg +$pkg = $(Get-ChildItem *.nupkg | Select-Object -First 1).FullName; +& nuget push $pkg -verbosity "detailed" \ No newline at end of file