Browse Source
Merge pull request #68 from colinin/3.0
add powershell build scripts
pull/81/head
cKey
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
23 additions and
2 deletions
-
aspnet-core/services/start-apigateway-admin.bat
-
vueJs/start-vue-admin.bat
|
|
@ -6,7 +6,6 @@ echo. 启动网关管理服务 |
|
|
|
|
|
|
|
|
cd .\apigateway\LINGYUN.ApiGateway.HttpApi.Host |
|
|
cd .\apigateway\LINGYUN.ApiGateway.HttpApi.Host |
|
|
|
|
|
|
|
|
echo %1 |
|
|
|
|
|
if '%1' equ '--publish' goto publish |
|
|
if '%1' equ '--publish' goto publish |
|
|
if '%1' equ '--run' goto run |
|
|
if '%1' equ '--run' goto run |
|
|
if '%1' equ '--restore' goto restore |
|
|
if '%1' equ '--restore' goto restore |
|
|
|
|
|
@ -5,10 +5,32 @@ chcp 65001 |
|
|
echo. 启动后台管理UI |
|
|
echo. 启动后台管理UI |
|
|
|
|
|
|
|
|
if '%1' equ '--run' goto run |
|
|
if '%1' equ '--run' goto run |
|
|
|
|
|
if '%1' equ '--build' goto build |
|
|
|
|
|
if '%1' equ '--publish' goto publish |
|
|
if '%1' equ '' goto run |
|
|
if '%1' equ '' goto run |
|
|
exit |
|
|
exit |
|
|
|
|
|
|
|
|
:run |
|
|
:run |
|
|
npm run serve-nomock |
|
|
npm run serve-nomock |
|
|
pause |
|
|
|
|
|
exit |
|
|
exit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:build |
|
|
|
|
|
set distPath=.\dist |
|
|
|
|
|
if exist %distPath% ( rd /s /q %distPath%) |
|
|
|
|
|
npm run build:prod |
|
|
|
|
|
exit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:publish |
|
|
|
|
|
set distPath=.\dist |
|
|
|
|
|
if exist %distPath% ( rd /s /q %distPath%) |
|
|
|
|
|
npm run build:prod |
|
|
|
|
|
copy Dockerfile ..\aspnet-core\services\Publish\client\Dockerfile |
|
|
|
|
|
set publishPath=..\aspnet-core\services\Publish\client\dist |
|
|
|
|
|
set nginxPath=..\aspnet-core\services\Publish\client\docker |
|
|
|
|
|
if exist %publishPath% ( rd /s /q %publishPath%) |
|
|
|
|
|
if exist %nginxPath% ( rd /s /q %nginxPath%) |
|
|
|
|
|
xcopy dist\* ..\aspnet-core\services\Publish\client\dist /y /e /i /q |
|
|
|
|
|
xcopy docker\* ..\aspnet-core\services\Publish\client\docker /y /e /i /q |
|
|
|
|
|
exit |