Skip to content

Commit 6c54903

Browse files
authored
Add nuspec (#31)
1 parent c81e95a commit 6c54903

9 files changed

+50
-37
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata>
4+
<id>Microsoft.jQuery.Unobtrusive.Ajax</id>
5+
<version>$version$</version>
6+
<title>Microsoft jQuery Unobtrusive Ajax</title>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft,aspnet</owners>
9+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
10+
<licenseUrl>https://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm</licenseUrl>
11+
<projectUrl>https://www.asp.net/</projectUrl>
12+
<iconUrl>https://go.microsoft.com/fwlink/?LinkID=288859</iconUrl>
13+
<description>jQuery plugin that unobtrusively sets up jQuery Ajax.</description>
14+
<summary>jQuery plugin that unobtrusively sets up jQuery Ajax.</summary>
15+
<releaseNotes>Please visit https://go.microsoft.com/fwlink/?LinkId=389866 to view the release notes.</releaseNotes>
16+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
17+
<tags>jQuery Unobtrusive Ajax</tags>
18+
<dependencies>
19+
<dependency id="jQuery" version="1.8.0" />
20+
</dependencies>
21+
</metadata>
22+
<files>
23+
<file src="dist\jquery.unobtrusive-ajax.js" target="Content\Scripts"/>
24+
<file src="dist\jquery.unobtrusive-ajax.min.js" target="Content\Scripts"/>
25+
</files>
26+
</package>

bower.json

-34
This file was deleted.

build.cmd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@ECHO OFF
2+
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0run.ps1' %*; exit $LASTEXITCODE"

build.msbuild

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project>
2+
<ItemGroup>
3+
<VersionFile Include="version.props"/>
4+
</ItemGroup>
5+
<PropertyGroup>
6+
<NuspecPath>Microsoft.jQuery.Unobtrusive.Ajax.nuspec</NuspecPath>
7+
</PropertyGroup>
8+
<Target Name="Build">
9+
<ReadLinesFromFile File="@(VersionFile)">
10+
<Output TaskParameter="Lines" PropertyName="PackageVersion"/>
11+
</ReadLinesFromFile>
12+
<Exec Command="npm install" />
13+
<Exec Command="npm version --no-git-tag-version --allow-same-version $(PackageVersion)" />
14+
<Exec Command="gulp" />
15+
<Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion)" />
16+
</Target>
17+
</Project>

dist/jquery.unobtrusive-ajax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Unobtrusive Ajax support library for jQuery
22
// Copyright (C) Microsoft Corporation. All rights reserved.
3-
// @version v3.2.4
3+
// @version v3.2.5
44
//
55
// Microsoft grants you the right to use these script files for the sole
66
// purpose of either: (i) interacting through your browser with the Microsoft

dist/jquery.unobtrusive-ajax.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-ajax-unobtrusive",
3-
"version": "3.2.4",
3+
"version": "3.2.5",
44
"description": "Add-on to jQuery Ajax to enable unobtrusive options in data-* attributes",
55
"main": "dist/jquery.unobtrusive-ajax.js",
66
"repository": {

run.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msbuild .\build.msbuild

version.props

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.5

0 commit comments

Comments
 (0)