Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Oct 5, 2024
1 parent 567a04c commit 97a4344
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion BuildRelease.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
dotnet build webapiclientgen.sln --configuration Release --no-incremental
2 changes: 1 addition & 1 deletion CreateDebugWebClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
#Step 1: Launch Website
$path = "$PSScriptRoot/DebugWeb"
Expand Down
2 changes: 1 addition & 1 deletion CreateDemoCoreWebClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
# Step 3 and 4 may be optional
#Step 1: Launch Website
Expand Down
2 changes: 1 addition & 1 deletion CreateDemoGodAssemblyWebClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
#Step 1: Launch Website
$path = "$PSScriptRoot/DemoGodAssemblyWeb"
Expand Down
2 changes: 1 addition & 1 deletion CreateDemoTextJsonWebClientApi.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
#Make sure CodeGen.json is saved in format ANSI or UTF-8 without BOM, since ASP.NET Core 2.0 Web API will fail to deserialize POST Body that contains BOM.
# Step 3 may be optional
#Step 1: Launch Website
Expand Down
2 changes: 1 addition & 1 deletion DotNetPack.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pack existing release build
cd $PSScriptRoot
Set-Location $PSScriptRoot
$packCmd = 'dotnet pack $Name --no-build --output Release --configuration Release'
$projList = 'Fonlow.Poco2TsCore/Fonlow.Poco2TsCore.csproj', 'Fonlow.DocCommentCore/Fonlow.DocCommentCore.csproj', 'Fonlow.Web.MetaCore/Fonlow.Web.MetaCore.csproj', 'WebApiClientGenCore.Abstract/WebApiClientGenCore.Abstract.csproj', 'WebApiClientGenCore/WebApiClientGenCore.csproj', 'WebApiClientGenCore.NG2/WebApiClientGenCore.NG2.csproj', 'WebApiClientGenCore.NG2FormGroup/WebApiClientGenCore.NG2FormGroup.csproj', 'WebApiClientGenCore.Aurelia/WebApiClientGenCore.Aurelia.csproj', 'WebApiClientGenCore.Axios/WebApiClientGenCore.Axios.csproj', 'WebApiClientGenCore.Fetch/WebApiClientGenCore.Fetch.csproj', 'WebApiClientGenCore.jQuery/WebApiClientGenCore.jQuery.csproj', 'Fonlow.DateOnlyExtensions/Fonlow.DateOnlyExtensions.csproj', 'Fonlow.DateOnlyExtensionsNet/Fonlow.DateOnlyExtensionsTextJson.csproj', 'Fonlow.IntegralExtension/Fonlow.IntegralExtensions.csproj', 'Fonlow.IntegralExtensionsTextJson/Fonlow.IntegralExtensionsTextJson.csproj'
foreach($name in $projList){
Expand Down
2 changes: 1 addition & 1 deletion HeroesDemo/buildDev.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
ng build --configuration=dev
2 changes: 1 addition & 1 deletion HeroesDemo/buildProd.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
ng build --configuration=production
2 changes: 1 addition & 1 deletion HeroesDemo/runtest.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
ng test
2 changes: 1 addition & 1 deletion HeroesDemo/startDev.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Run prod build with dotnet hosting
cd $PSScriptRoot
Set-Location $PSScriptRoot
dotnet-serve -d ../ngdist/dev -p 5200
2 changes: 1 addition & 1 deletion HeroesDemo/startProd.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Run prod build with dotnet hosting
cd $PSScriptRoot
Set-Location $PSScriptRoot
dotnet-serve -d ../ngdist/prod -p 5200
2 changes: 1 addition & 1 deletion StartDemoCoreWeb.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
Set-Location $PSScriptRoot
$path = "$PSScriptRoot/DemoCoreWeb/bin/Debug/net8.0"
$procArgs = @{
FilePath = "dotnet.exe"
Expand Down
2 changes: 1 addition & 1 deletion StartDemoTextJsonWeb.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
Set-Location $PSScriptRoot
$path = "$PSScriptRoot/DemoTextJsonWeb"
$procArgs = @{
FilePath = "dotnet.exe"
Expand Down
2 changes: 1 addition & 1 deletion StartGodAssembly.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Launch WebApi Website and POST a request for generating client APIs
cd $PSScriptRoot
Set-Location $PSScriptRoot
$path = "$PSScriptRoot/DemoGodAssemblyWeb"
$procArgs = @{
FilePath = "dotnet.exe"
Expand Down
2 changes: 1 addition & 1 deletion TestReleaseAll.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
dotnet test --verbosity normal --configuration Release --no-build
2 changes: 1 addition & 1 deletion aurelia/runtest.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
karma start ./karma.conf.js
2 changes: 1 addition & 1 deletion axios/runtest.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
npx jest
2 changes: 1 addition & 1 deletion buildJqTests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot

#Step 3: Compile generated TS codes to JS for jQuery. https://www.typescriptlang.org/docs/handbook/compiler-options.html
# make sure TS compiler is installed through npm install -g typescript, then tsc.ps1 is available in C:\Users\YourProfile\AppData\Roaming\npm
Expand Down
2 changes: 1 addition & 1 deletion fetchapi/runtest.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd $PSScriptRoot
Set-Location $PSScriptRoot
npx jest

0 comments on commit 97a4344

Please sign in to comment.