Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 293b59b

Browse files
committed
Bump version and changelog
1 parent c3defb6 commit 293b59b

File tree

4 files changed

+63
-5
lines changed

4 files changed

+63
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# current
1+
# 2.2.1
2+
* [Bugfix] Kill dangling processes when using the VS "stop" button. c3defb6351b736bd42d382e4d374892abd6b2c7b
23
* [Bugfix] Fix for potential issue where target string occurs with no following newline. a169dd6d39912d7e6ecbb13e5fa349860c26af0b
34

45
# 2.2.0

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ This is a stand-alone module to add VueCli support to AspNet Core 2.2.0.
3131
public virtual void Configure(IApplicationBuilder app, IHostingEnvironment env)
3232
{
3333
// your config opts...
34+
// optional basepath
35+
// app.UsePathBase("/myapp");
3436
3537
// add static files from SPA (/dist)
3638
app.UseSpaStaticFiles();
@@ -51,6 +53,54 @@ This is a stand-alone module to add VueCli support to AspNet Core 2.2.0.
5153
}
5254
```
5355

56+
## CSPROJ Configuration
57+
You may also need to add the following tasks to your csproj file. This are similar to what are found in the default ASPNETSPA templates.
58+
59+
```project.csproj
60+
<PropertyGroup>
61+
<!-- Typescript/Javascript Client Configuration -->
62+
<SpaRoot>ClientApp\</SpaRoot>
63+
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
64+
</PropertyGroup>
65+
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build">
66+
<!-- Build Target: Ensure Node.js is installed -->
67+
<Exec Command="node --version" ContinueOnError="true">
68+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
69+
</Exec>
70+
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
71+
</Target>
72+
73+
<Target Name="DebugEnsureNpm" AfterTargets="DebugEnsureNodeEnv">
74+
<!-- Build Target: Ensure Node.js is installed -->
75+
<Exec Command="npm --version" ContinueOnError="true">
76+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
77+
</Exec>
78+
</Target>
79+
80+
<Target Name="EnsureNodeModulesInstalled" BeforeTargets="Build" Inputs="package.json" Outputs="packages-lock.json">
81+
<!-- Build Target: Restore NPM packages using npm -->
82+
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
83+
84+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
85+
</Target>
86+
87+
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
88+
<!-- Build Target: Run webpack dist build -->
89+
<Message Importance="high" Text="Running npm build..." />
90+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
91+
92+
<!-- Include the newly-built files in the publish output -->
93+
<ItemGroup>
94+
<DistFiles Include="$(SpaRoot)dist\**" />
95+
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
96+
<RelativePath>%(DistFiles.Identity)</RelativePath>
97+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
98+
</ResolvedFileToPublish>
99+
</ItemGroup>
100+
</Target>
101+
102+
```
103+
54104
## History
55105

56106
Due to the discussion [here](https://github.com/aspnet/JavaScriptServices/pull/1726), it was decided to not be included in the Microsoft owned package.

src/VueCliMiddleware.sln

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28010.2026
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.28922.388
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VueCliMiddleware", "VueCliMiddleware\VueCliMiddleware.csproj", "{6EF79200-935A-4EBB-BB10-EB233A360210}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VueCliMiddleware.Tests", "VueCliMiddleware.Tests\VueCliMiddleware.Tests.csproj", "{36DA789C-1C87-48A3-9A9E-804E9BA5C141}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VueCliMiddleware.Tests", "VueCliMiddleware.Tests\VueCliMiddleware.Tests.csproj", "{36DA789C-1C87-48A3-9A9E-804E9BA5C141}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6E3830FF-A9BD-4D14-8F65-1FBE28F81E05}"
11+
ProjectSection(SolutionItems) = preProject
12+
..\CHANGELOG.md = ..\CHANGELOG.md
13+
..\README.md = ..\README.md
14+
EndProjectSection
915
EndProject
1016
Global
1117
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/VueCliMiddleware/VueCliMiddleware.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<PropertyGroup>
44
<Description>Helpers for building single-page applications on ASP.NET MVC Core using Vue Cli.</Description>
55
<TargetFramework>netstandard2.0</TargetFramework>
6+
67
<Title>VueCliMiddleware</Title>
7-
<VersionPrefix>2.2.0</VersionPrefix>
8+
<VersionPrefix>2.2.1</VersionPrefix>
89
<LangVersion>Latest</LangVersion>
910
<Authors>EEParker</Authors>
1011
<RepositoryUrl>https://github.com/EEParker/aspnetcore-vueclimiddleware.git</RepositoryUrl>

0 commit comments

Comments
 (0)