File tree Expand file tree Collapse file tree 6 files changed +569
-268
lines changed Expand file tree Collapse file tree 6 files changed +569
-268
lines changed Original file line number Diff line number Diff line change 11bower_components /
22node_modules /
3- * .nupkg
3+ * .nupkg
4+ artifacts /
5+ dist /
Original file line number Diff line number Diff line change 1- <Project>
1+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
22 <ItemGroup>
33 <VersionFile Include="version.props"/>
44 </ItemGroup>
55 <PropertyGroup>
66 <NuspecPath>Microsoft.jQuery.Unobtrusive.Ajax.nuspec</NuspecPath>
7+ <DistDir>$(MSBuildThisFileDirectory)dist\</DistDir>
8+ <ArtifactsDir>$(MSBuildThisFileDirectory)artifacts\build\</ArtifactsDir>
9+ <WebPackTestDir>$(MSBuildThisFileDirectory)test\webpacktest\</WebPackTestDir>
710 </PropertyGroup>
11+
12+ <ItemGroup>
13+ <DistDirFiles Include="$(DistDir)*"/>
14+ </ItemGroup>
15+
816 <Target Name="Build">
917 <ReadLinesFromFile File="@(VersionFile)">
1018 <Output TaskParameter="Lines" PropertyName="PackageVersion"/>
1119 </ReadLinesFromFile>
12- <Exec Command="npm install " />
20+ <Exec Command="npm run build " />
1321 <Exec Command="npm version --no-git-tag-version --allow-same-version $(PackageVersion)" />
14- <Exec Command="npx gulp" />
15- <Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion)" />
22+ <MakeDir Directories="$(ArtifactsDir)" />
23+ <Copy
24+ SourceFiles="@(DistDirFiles)"
25+ DestinationFolder="$(ArtifactsDir)" OverwriteReadOnlyFiles="true"/>
26+ <Exec Command="npm pack $(MSBuildThisFileDirectory)" WorkingDirectory="$(ArtifactsDir)" />
27+ <Exec Command="nuget pack $(NuspecPath) -Version $(PackageVersion) -OutputDirectory $(ArtifactsDir)" />
28+
29+ <MSBuild Projects ="$(MSBuildProjectFullPath)"
30+ Properties="PackageVersion=$(PackageVersion)"
31+ Targets="Test" />
32+ </Target>
33+
34+ <Target Name="Test">
35+ <Message Text="No tests yet..." />
1636 </Target>
1737</Project>
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments