refactor: 整理项目根目录结构
整理内容: - 删除 60+ 临时测试输出文件 (*.txt) - 移动二进制文件到 bin/ 目录 - 移动 Shell 脚本到 scripts/ 目录 - scripts/dev/: check_gitea.sh, check_sub2api.sh, run_tests.sh - scripts/deploy/: deploy_*.sh, simple_deploy.sh - scripts/ops/: fix_nginx.sh, fix_ssl.sh, install_docker.sh - scripts/test/: test_*.sh, test_*.bat - 移动批处理文件到 scripts/ - 移动 Python 脚本到 tools/ - 清理临时日志文件 保留根目录必要文件: - go.mod, go.sum, go.work - Makefile, docker-compose.yml - .env.example, .gitignore - README.md, AGENTS.md, DEPLOY_GUIDE.md 验证: go build ./... && go test ./... 通过
This commit is contained in:
40
scripts/check_project.bat
Normal file
40
scripts/check_project.bat
Normal file
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
echo ====================================
|
||||
echo Project Migration Quick Check
|
||||
echo ====================================
|
||||
echo.
|
||||
|
||||
echo 1. Checking key files...
|
||||
if exist "D:\project\go.mod" echo [OK] go.mod
|
||||
if exist "D:\project\README.md" echo [OK] README.md
|
||||
if exist "D:\project\cmd\server\main.go" echo [OK] main.go
|
||||
if exist "D:\project\configs\config.yaml" echo [OK] config.yaml
|
||||
echo.
|
||||
|
||||
echo 2. Checking Go environment...
|
||||
where go >nul 2>&1
|
||||
if %errorlevel% == 0 (
|
||||
echo [OK] Go is installed
|
||||
go version
|
||||
) else (
|
||||
echo [ERROR] Go is not installed
|
||||
)
|
||||
echo.
|
||||
|
||||
echo 3. Checking directories...
|
||||
if exist "D:\project\cmd" echo [OK] cmd\
|
||||
if exist "D:\project\internal" echo [OK] internal\
|
||||
if exist "D:\project\configs" echo [OK] configs\
|
||||
if exist "D:\project\docs" echo [OK] docs\
|
||||
echo.
|
||||
|
||||
echo ====================================
|
||||
echo Quick check completed!
|
||||
echo ====================================
|
||||
echo.
|
||||
echo Next steps:
|
||||
echo 1. Read docs\migration\MIGRATION_CHECKLIST.md for full checklist
|
||||
echo 2. Read docs\plans\NEXT_STEPS.md for detailed instructions
|
||||
echo 3. If Go is installed, run: go build ./cmd/server
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user