refactor(scripts): 将启动和构建脚本移动到scripts目录
将start.sh、start.bat和build-and-publish.bat移动到scripts目录下 重构build-and-publish.bat脚本,增加错误处理和详细日志
This commit is contained in:
@@ -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"
|
||||
@@ -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
1
start.sh → script/start.sh
Executable file → Normal file
@@ -1 +1,2 @@
|
||||
cd "$(dirname "$0")/.."
|
||||
npm run docs:dev -- --host 0.0.0.0 --port 8888
|
||||
Reference in New Issue
Block a user