Created
January 7, 2015 11:00
-
-
Save hazzik/f0159ff07dcf3c537a41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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