diff --git a/scripts/git/run.cmd b/scripts/git/run.cmd deleted file mode 100644 index dec021f1a65..00000000000 --- a/scripts/git/run.cmd +++ /dev/null @@ -1,3 +0,0 @@ -@echo off - -copy commit_msg_template.txt ../../.git/commit_msg_template1.txt /y diff --git a/scripts/git/run.sh b/scripts/git/run.sh deleted file mode 100644 index e5dca0f06d2..00000000000 --- a/scripts/git/run.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -cp commit_msg_template.txt ../../.git/commit_msg_template1.txt \ No newline at end of file diff --git a/scripts/services/ba.blazor.service b/scripts/services/ba.blazor.service index 3a537b1f7c0..d2ac97eda1b 100644 --- a/scripts/services/ba.blazor.service +++ b/scripts/services/ba.blazor.service @@ -1,5 +1,5 @@ [Unit] -Description=Bootstrap Admin Blazor Application +Description=BootstrapBlazor Offical Web Application [Service] Type=simple diff --git a/scripts/wasm/sync.cmd b/scripts/wasm/sync.cmd deleted file mode 100644 index b3a39063186..00000000000 --- a/scripts/wasm/sync.cmd +++ /dev/null @@ -1,22 +0,0 @@ -@echo off -if "%1" == "" ( - echo Please provider SolutionDir like: "$(MSBuildThisFileDirectory)" - exit /B -) -if "%2" == "" ( - echo Please provider TargetDir like: "$(TargetDir)publish" - exit /B -) - -set sourceDir=%2\wwwroot -set targetDir=%1..\..\dist - -echo "Ready to copy files to dist - -echo xcopy %sourceDir%\*.* %targetDir% /y - -xcopy %sourceDir%\*.* %targetDir% /E /R /Y - -xcopy %targetDir%\404.html %targetDir%\index.html /R /Y - -echo Sync success! diff --git a/scripts/wasm/sync.sh b/scripts/wasm/sync.sh deleted file mode 100755 index c4715f56040..00000000000 --- a/scripts/wasm/sync.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -if [ $1 = "" ]; then - echo Please provider SolutionDir like: "$(MSBuildThisFileDirectory)" - exit 1 -fi - -if [ $2 = "" ]; then - echo Please provider TargetDir like: "$(TargetDir)publish" - exit 1 -fi - -sourceDir=$2/wwwroot/ -targetDir=$1../../dist/ - -echo "Ready to copy files to dist" - -echo copy $sourceDir $targetDir - -\cp -rf $sourceDir $targetDir - -\cp -f $targetDir/404.html $targetDir/index.html - -echo Sync success! diff --git a/scripts/windows/bundle.cmd b/scripts/windows/bundle.cmd deleted file mode 100644 index c4d5e9d504e..00000000000 --- a/scripts/windows/bundle.cmd +++ /dev/null @@ -1 +0,0 @@ -setx Bundle=True diff --git a/scripts/windows/pack.cmd b/scripts/windows/pack.cmd deleted file mode 100644 index 389e2f74b92..00000000000 --- a/scripts/windows/pack.cmd +++ /dev/null @@ -1,27 +0,0 @@ -@echo off -if "%1" == "" ( - echo Please provider ProjectName like: "BootstrapBlazor Debug|Release" - exit /B -) -set config=%2 -if "%ProjectFolder%" == "" ( - set "ProjectFolder=%BB%" -) -if "%ProjectFolder%" == "" ( - echo Please set ProjectFolder evniroment Variables - exit /B -) -if "%config%" == "" ( - set "config=Debug" -) -cd %ProjectFolder%\%1 -dotnet pack -c %config% %ProjectFolder%\%1\ -copy %ProjectFolder%\%1\bin\%config%\%1*.nupkg %NugetLib% /y -del %ProjectFolder%\%1\bin\%config%\%1*.nupkg -cd %NugetLib% -set config= -echo Ready to DELETE %USERPROFILE%\.nuget\packages\%1 /S /F /Q -pause - -del %USERPROFILE%\.nuget\packages\%1 /S /F /Q -dir %NugetLib%\%1*.nupkg diff --git a/scripts/windows/push.cmd b/scripts/windows/push.cmd deleted file mode 100644 index 250cfb5df3e..00000000000 --- a/scripts/windows/push.cmd +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -call pack %1 Release -dotnet nuget push -k %NugetKey% -s https://api.nuget.org/v3/index.json %NugetLib%\%1.*.nupkg --skip-duplicate --no-symbols %NugetLib%\%1.*.snupkg -del %NugetLib%\%1*.nupkg /F /Q \ No newline at end of file diff --git a/scripts/windows/push.ps1 b/scripts/windows/push.ps1 deleted file mode 100644 index 2f63ec4abc6..00000000000 --- a/scripts/windows/push.ps1 +++ /dev/null @@ -1,49 +0,0 @@ -# 判断是否设置 NugetKey -if ($env:NugetKey -eq $null) -{ - echo "请设置环境变量 NugetKey 上传秘钥" - exit -} - -# 判断是否设置 NugetSource -if ($env:NugetSource -eq $null) -{ - echo "请设置环境变量 NugetSource 上传 Nuget 地址" - exit -} - -# 获取当前 PM 中选中的项目 -$currentProj = Get-Project - -# 获取当前项目所在文件夹 -$projectFolder = Split-Path -parent $currentProj.FullName - -# 获取当前项目打包文件输出目录 -$outFolder = -Join($projectFolder, "\bin\Release\") - -# 删除 nupkg 文件防止有老文件干扰 -Remove-Item $outFolder*.nupkg -recurse - -# 获取打包文件不包含版本号的文件名 -$pkgName = -Join($outFolder, $currentProj.Name) - -# 带版本号的文件名 -$pkgFileName = -Join($pkgName, "*.nupkg") - -$spkgFileName = -Join($pkgName, "*.snupkg") - -# 开始打包 -dotnet pack -c Release $currentProj.FullName - -# 判断是否打包成功 -$done = Test-Path $pkgFileName - -if ($done) -{ - # 开始上传 - dotnet nuget push -k $env:NugetKey -s $env:NugetSource $pkgFileName --skip-duplicate --no-symbols $spkgFileName -} -else -{ - Write-Host "打包失败" -} diff --git a/tools/delete-bin.cmd b/tools/delete-bin.cmd new file mode 100644 index 00000000000..5da11085839 --- /dev/null +++ b/tools/delete-bin.cmd @@ -0,0 +1,21 @@ +@ECHO off +cls +cd .. + +ECHO Deleting all BIN and OBJ folders... +ECHO. + +FOR /d /r . %%d in (bin,obj) DO ( + IF EXIST "%%d" ( + ECHO %%d | FIND /I "\node_modules\" > Nul && ( + ECHO.Skipping: %%d + ) || ( + ECHO.Deleting: %%d + rd /s/q "%%d" + ) + ) +) + +ECHO. +ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit. +pause > nul diff --git a/tools/pack.bat b/tools/pack.bat new file mode 100644 index 00000000000..3c32b7b2918 --- /dev/null +++ b/tools/pack.bat @@ -0,0 +1,7 @@ +@echo off +setlocal enabledelayedexpansion + +cd ../src/BootstrapBlazor +dotnet pack -c Release + +endlocal diff --git a/tools/watch.bat b/tools/watch.bat new file mode 100644 index 00000000000..d1a3a0545b9 --- /dev/null +++ b/tools/watch.bat @@ -0,0 +1,7 @@ +@echo off +setlocal enabledelayedexpansion + +cd ../src/BootstrapBlazor.Server +dotnet watch run + +endlocal