Skip to content

Commit 6ad8798

Browse files
committed
Tests and examples updated
1 parent a53b3cc commit 6ad8798

File tree

139 files changed

+29371
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+29371
-6
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FromModel", "FromModel\FromModel.csproj", "{D8163BA2-D463-4B54-8FE2-7E46ED7900B3}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{D8163BA2-D463-4B54-8FE2-7E46ED7900B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{D8163BA2-D463-4B54-8FE2-7E46ED7900B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{D8163BA2-D463-4B54-8FE2-7E46ED7900B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{D8163BA2-D463-4B54-8FE2-7E46ED7900B3}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="KY.Generator" Version="8.0.0-preview.0" />
9+
<PackageReference Include="KY.Generator.Annotations" Version="8.0.0-preview.0" />
10+
</ItemGroup>
11+
12+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated with KY.Generator 8.0.0.0
4+
//
5+
// Manual changes to this file may cause unexpected behavior in your application.
6+
// Manual changes to this file will be overwritten if the code is regenerated.
7+
// </auto-generated>
8+
// ------------------------------------------------------------------------------
9+
/* eslint-disable */
10+
// tslint:disable
11+
12+
export class TypeToRead {
13+
public stringProperty: string;
14+
public numberProperty: number;
15+
16+
public constructor(init?: Partial<TypeToRead>) {
17+
Object.assign(this, init);
18+
}
19+
}
20+
21+
// outputid:d8163ba2-d463-4b54-8fe2-7e46ed7900b3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using KY.Generator;
2+
3+
namespace FromModel
4+
{
5+
[GenerateAngularModel("Output/Models")]
6+
internal class TypeToRead
7+
{
8+
public string StringProperty { get; set; }
9+
public int NumberProperty { get; set; }
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChangeReturnType", "ChangeReturnType\Assembly\ChangeReturnType.csproj", "{915C7DBD-A42A-4CB5-A4F6-E6123686D79C}"
4+
EndProject
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "ChangeReturnType\Generator\Generator.csproj", "{9660B137-C505-4541-84F8-D95684D17506}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{915C7DBD-A42A-4CB5-A4F6-E6123686D79C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{915C7DBD-A42A-4CB5-A4F6-E6123686D79C}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{915C7DBD-A42A-4CB5-A4F6-E6123686D79C}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{915C7DBD-A42A-4CB5-A4F6-E6123686D79C}.Release|Any CPU.Build.0 = Release|Any CPU
17+
{9660B137-C505-4541-84F8-D95684D17506}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{9660B137-C505-4541-84F8-D95684D17506}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{9660B137-C505-4541-84F8-D95684D17506}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{9660B137-C505-4541-84F8-D95684D17506}.Release|Any CPU.Build.0 = Release|Any CPU
21+
EndGlobalSection
22+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
bin/
23+
Bin/
24+
obj/
25+
Obj/
26+
27+
# Visual Studio 2015 cache/options directory
28+
.vs/
29+
30+
# MSTest test Results
31+
[Tt]est[Rr]esult*/
32+
[Bb]uild[Ll]og.*
33+
34+
# NUNIT
35+
*.VisualState.xml
36+
TestResult.xml
37+
38+
# Build Results of an ATL Project
39+
[Dd]ebugPS/
40+
[Rr]eleasePS/
41+
dlldata.c
42+
43+
*_i.c
44+
*_p.c
45+
*_i.h
46+
*.ilk
47+
*.meta
48+
*.obj
49+
*.pch
50+
*.pdb
51+
*.pgc
52+
*.pgd
53+
*.rsp
54+
*.sbr
55+
*.tlb
56+
*.tli
57+
*.tlh
58+
*.tmp
59+
*.tmp_proj
60+
*.log
61+
*.vspscc
62+
*.vssscc
63+
.builds
64+
*.pidb
65+
*.svclog
66+
*.scc
67+
68+
# Chutzpah Test files
69+
_Chutzpah*
70+
71+
# Visual C++ cache files
72+
ipch/
73+
*.aps
74+
*.ncb
75+
*.opendb
76+
*.opensdf
77+
*.sdf
78+
*.cachefile
79+
80+
# Visual Studio profiler
81+
*.psess
82+
*.vsp
83+
*.vspx
84+
*.sap
85+
86+
# TFS 2012 Local Workspace
87+
$tf/
88+
89+
# Guidance Automation Toolkit
90+
*.gpState
91+
92+
# ReSharper is a .NET coding add-in
93+
_ReSharper*/
94+
*.[Rr]e[Ss]harper
95+
*.DotSettings.user
96+
97+
# JustCode is a .NET coding add-in
98+
.JustCode
99+
100+
# TeamCity is a build add-in
101+
_TeamCity*
102+
103+
# DotCover is a Code Coverage Tool
104+
*.dotCover
105+
106+
# NCrunch
107+
_NCrunch_*
108+
.*crunch*.local.xml
109+
nCrunchTemp_*
110+
111+
# MightyMoose
112+
*.mm.*
113+
AutoTest.Net/
114+
115+
# Web workbench (sass)
116+
.sass-cache/
117+
118+
# Installshield output folder
119+
[Ee]xpress/
120+
121+
# DocProject is a documentation generator add-in
122+
DocProject/buildhelp/
123+
DocProject/Help/*.HxT
124+
DocProject/Help/*.HxC
125+
DocProject/Help/*.hhc
126+
DocProject/Help/*.hhk
127+
DocProject/Help/*.hhp
128+
DocProject/Help/Html2
129+
DocProject/Help/html
130+
131+
# Click-Once directory
132+
publish/
133+
134+
# Publish Web Output
135+
*.[Pp]ublish.xml
136+
*.azurePubxml
137+
# TODO: Comment the next line if you want to checkin your web deploy settings
138+
# but database connection strings (with potential passwords) will be unencrypted
139+
*.pubxml
140+
*.publishproj
141+
142+
# NuGet Packages
143+
*.nupkg
144+
# The packages folder can be ignored because of Package Restore
145+
**/packages/*
146+
# except build/, which is used as an MSBuild target.
147+
!**/packages/build/
148+
# Uncomment if necessary however generally it will be regenerated when needed
149+
#!**/packages/repositories.config
150+
151+
# Microsoft Azure Build Output
152+
csx/
153+
*.build.csdef
154+
155+
# Microsoft Azure Emulator
156+
ecf/
157+
rcf/
158+
159+
# Microsoft Azure ApplicationInsights config file
160+
ApplicationInsights.config
161+
162+
# Windows Store app package directory
163+
AppPackages/
164+
BundleArtifacts/
165+
166+
# Visual Studio cache files
167+
# files ending in .cache can be ignored
168+
*.[Cc]ache
169+
# but keep track of directories ending in .cache
170+
!*.[Cc]ache/
171+
172+
# Others
173+
ClientBin/
174+
~$*
175+
*~
176+
*.dbmdl
177+
*.dbproj.schemaview
178+
*.pfx
179+
*.publishsettings
180+
orleans.codegen.cs
181+
182+
/node_modules
183+
184+
# RIA/Silverlight projects
185+
Generated_Code/
186+
187+
# Backup & report files from converting an old project file
188+
# to a newer Visual Studio version. Backup files are not needed,
189+
# because we have git ;-)
190+
_UpgradeReport_Files/
191+
Backup*/
192+
UpgradeLog*.XML
193+
UpgradeLog*.htm
194+
195+
# SQL Server files
196+
*.mdf
197+
*.ldf
198+
199+
# Business Intelligence projects
200+
*.rdl.data
201+
*.bim.layout
202+
*.bim_*.settings
203+
204+
# Microsoft Fakes
205+
FakesAssemblies/
206+
207+
# GhostDoc plugin setting file
208+
*.GhostDoc.xml
209+
210+
# Node.js Tools for Visual Studio
211+
.ntvs_analysis.dat
212+
213+
# Visual Studio 6 build log
214+
*.plg
215+
216+
# Visual Studio 6 workspace options file
217+
*.opt
218+
219+
# Visual Studio LightSwitch build output
220+
**/*.HTMLClient/GeneratedArtifacts
221+
**/*.DesktopClient/GeneratedArtifacts
222+
**/*.DesktopClient/ModelManifest.xml
223+
**/*.Server/GeneratedArtifacts
224+
**/*.Server/ModelManifest.xml
225+
_Pvt_Extensions
226+
227+
# Paket dependency manager
228+
.paket/paket.exe
229+
230+
# FAKE - F# Make
231+
.fake/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
6+
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
7+
<IsPackable>false</IsPackable>
8+
<SpaRoot>ClientApp\</SpaRoot>
9+
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
10+
11+
<!-- Set this to true if you enable server-side prerendering -->
12+
<BuildServerSideRenderer>false</BuildServerSideRenderer>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.4" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<!-- Don't publish the SPA source files, but do show them in the project files list -->
21+
<Content Remove="$(SpaRoot)**" />
22+
<None Remove="$(SpaRoot)**" />
23+
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
24+
</ItemGroup>
25+
26+
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
27+
<!-- Ensure Node.js is installed -->
28+
<Exec Command="node --version" ContinueOnError="true">
29+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
30+
</Exec>
31+
<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." />
32+
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
33+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
34+
</Target>
35+
36+
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
37+
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
38+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
39+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" />
40+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
41+
42+
<!-- Include the newly-built files in the publish output -->
43+
<ItemGroup>
44+
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
45+
<DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
46+
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
47+
<RelativePath>%(DistFiles.Identity)</RelativePath>
48+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
49+
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
50+
</ResolvedFileToPublish>
51+
</ItemGroup>
52+
</Target>
53+
54+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
14+
15+
[*.{razor,cshtml}]
16+
charset = utf-8-bom

0 commit comments

Comments
 (0)