Skip to content

Commit 6c2113e

Browse files
authored
Add nuspec and build file (#77)
1 parent 0bb048f commit 6c2113e

File tree

5 files changed

+48
-0
lines changed

5 files changed

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

build.cmd

Lines changed: 2 additions & 0 deletions
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

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

run.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msbuild .\build.msbuild

version.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.7

0 commit comments

Comments
 (0)