Skip to content

Instantly share code, notes, and snippets.

@hazzik
Created January 7, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hazzik/f0159ff07dcf3c537a41 to your computer and use it in GitHub Desktop.
Save hazzik/f0159ff07dcf3c537a41 to your computer and use it in GitHub Desktop.
$file = Get-Content ".\bower.json"
$component = "$file" | ConvertFrom-Json
$jquery = $component.dependencies.jquery.replace('>=', '')
echo "<?xml version=""1.0""?>
<package xmlns=""http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"">
<metadata>
<version>$($component.version).$env:BUILD_NUMBER</version>
<authors>Chris Wanstrath, Joshua Peek</authors>
<owners>hazzik</owners>
<licenseUrl>https://github.com/defunkt/jquery-pjax/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/defunkt/jquery-pjax</projectUrl>
<id>jQuery.Pjax</id>
<title>jQuery.Pjax</title>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies>
<!--<dependency id=""jQuery"" version=""$jquery""/>-->
</dependencies>
<description>pushState + ajax = pjax
pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks, page titles, and a working back button that fully degrades.
pjax enhances the browsing experience - nothing more.
You can find a demo on http://pjax.heroku.com/
This is a build for commit https://github.com/defunkt/jquery-pjax/commit/$env:BUILD_VCS_NUMBER</description>
<summary>pushState + ajax = pjax
pjax enhances the browsing
This is a build for commit https://github.com/defunkt/jquery-pjax/commit/$env:BUILD_VCS_NUMBER
</summary>
</metadata>
<files>
<file src=""jquery.pjax.js"" target=""content\Scripts\jquery.pjax.js"" />
</files>
</package>" > jquery.pjax.nuspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment