Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 167d7be

Browse files
committed
build
1 parent ace324d commit 167d7be

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
[Rr]eleases/
1818
[Xx]64/
1919
[Xx]86/
20-
[Bb]uild/
2120
bld/
2221
[Bb]in/
2322
[Oo]bj/

build/build.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
echo Restore nuget dep's
3+
dotnet restore "../src/Backend/Jp.UserManagement"
4+
dotnet restore "../src/Frontend/Jp.UI.SSO"
5+
6+
CLS
7+
echo RUN API
8+
start /d "../src/Backend/Jp.UserManagement" dotnet run args
9+
10+
echo RUN SSO
11+
start /d "../src/Frontend/Jp.UI.SSO" dotnet run args
12+
13+
(cd "../src/Frontend/Jp.UserManagement" && npm install && start ng serve)
14+

build/build.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$currentPath = (Get-Item -Path "./" -Verbose).FullName;
2+
$src = (Get-Item -Path "../src" -Verbose).FullName;
3+
$sso = (Get-Item -Path ($src + "/Frontend/Jp.UI.SSO") -Verbose).FullName
4+
$api = (Get-Item -Path ($src + "/Backend/Jp.UserManagement") -Verbose).FullName
5+
$ui = (Get-Item -Path ($src + "/Frontend/Jp.UserManagement") -Verbose).FullName
6+
7+
$paramsSSO= "/c cd " + $sso + " && dotnet run";
8+
$paramsAPI= "/c cd " + $api + " && dotnet run";
9+
$paramsUI= "/c cd " + $ui + " && ng serve";
10+
11+
12+
Write-Information Restore deps
13+
dotnet restore $sso
14+
dotnet restore $api
15+
# The best way to npm install is from src folder
16+
cd $ui; npm install
17+
cd $currentPath
18+
19+
# Start-Process -Verb runas "cmd.exe" $paramsSSO;
20+
Start-Process "cmd.exe" $paramsAPI;
21+
Start-Process "cmd.exe" $paramsSSO;
22+
Start-Process "cmd.exe" $paramsUI;

0 commit comments

Comments
 (0)