--添加claude code 代码规范和技能

This commit is contained in:
2026-03-31 15:46:15 +08:00
parent a5af47d53c
commit 7dfbdd65c0
6 changed files with 615 additions and 1 deletions

52
publish.bat Normal file
View File

@ -0,0 +1,52 @@
@echo off
setlocal
set IMAGE=docker.ges.bjgastx.com/itc-web
if "%~1"=="" goto usage
set VERSION=%~1
set TAG=%IMAGE%:%VERSION%
echo ========================================
echo Publishing %TAG%
echo ========================================
echo.
echo [1/3] pnpm run build...
cmd /c pnpm run build
if not %errorlevel%==0 goto fail_build
echo.
echo [2/3] docker build -t %TAG% ...
docker build -t %TAG% .
if not %errorlevel%==0 goto fail_docker
echo.
echo [3/3] docker push %TAG%...
docker push %TAG%
if not %errorlevel%==0 goto fail_push
echo.
echo ========================================
echo Done: %TAG%
echo ========================================
endlocal
exit /b 0
:usage
echo Usage: publish.bat ^<version^>
echo Example: publish.bat 1.1.20
exit /b 1
:fail_build
echo Build failed.
exit /b 1
:fail_docker
echo Docker build failed.
exit /b 1
:fail_push
echo Docker push failed.
exit /b 1