refactor(scripts): 将启动和构建脚本移动到scripts目录

将start.sh、start.bat和build-and-publish.bat移动到scripts目录下
重构build-and-publish.bat脚本,增加错误处理和详细日志
This commit is contained in:
祀梦
2025-12-15 17:24:40 +08:00
parent d9a089be3f
commit b7018f8423
3 changed files with 4 additions and 2 deletions

View File

@@ -4,8 +4,8 @@ setlocal EnableExtensions
chcp 65001 >nul
REM Paths and settings
set "ROOT_DIR=%~dp0"
set "PROJECT_DIR=%ROOT_DIR%"
cd /d "%~dp0.."
set "PROJECT_DIR=%CD%\"
set "DIST_DIR=%PROJECT_DIR%docs\.vuepress\dist"
set "PUBLISH_DIR=%PROJECT_DIR%_publish"
set "REMOTE_URL=https://gitea.simengweb.com/si-meng-spec/build_notes_simengweb.git"

View File

@@ -1,2 +1,3 @@
@echo off
cd /d "%~dp0.."
npm run docs:dev -- --host 0.0.0.0 --port 8888

1
start.sh → script/start.sh Executable file → Normal file
View File

@@ -1 +1,2 @@
cd "$(dirname "$0")/.."
npm run docs:dev -- --host 0.0.0.0 --port 8888