File tree 6 files changed +569
-268
lines changed
6 files changed +569
-268
lines changed Original file line number Diff line number Diff line change 1
1
bower_components /
2
2
node_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" >
2
2
<ItemGroup>
3
3
<VersionFile Include="version.props"/>
4
4
</ItemGroup>
5
5
<PropertyGroup>
6
6
<NuspecPath>Microsoft.jQuery.Unobtrusive.Ajax.nuspec</NuspecPath>
7
+ <DistDir>$(MSBuildThisFileDirectory)dist\</DistDir>
8
+ <ArtifactsDir>$(MSBuildThisFileDirectory)artifacts\build\</ArtifactsDir>
9
+ <WebPackTestDir>$(MSBuildThisFileDirectory)test\webpacktest\</WebPackTestDir>
7
10
</PropertyGroup>
11
+
12
+ <ItemGroup>
13
+ <DistDirFiles Include="$(DistDir)*"/>
14
+ </ItemGroup>
15
+
8
16
<Target Name="Build">
9
17
<ReadLinesFromFile File="@(VersionFile)">
10
18
<Output TaskParameter="Lines" PropertyName="PackageVersion"/>
11
19
</ReadLinesFromFile>
12
- <Exec Command="npm install " />
20
+ <Exec Command="npm run build " />
13
21
<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..." />
16
36
</Target>
17
37
</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