From 95fbc3eb539a932aa5a05c54a912c17a2bf593f2 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 30 Nov 2022 13:48:07 +0800 Subject: [PATCH] rename targetDir to targetFolder in deploy config --- git-pull-recursive.bat | 2 +- git-push-recursive.bat | 2 +- npm-boot-all.bat | 33 ++++++++++++++------------------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/git-pull-recursive.bat b/git-pull-recursive.bat index d7eb41e..9446aaa 100644 --- a/git-pull-recursive.bat +++ b/git-pull-recursive.bat @@ -32,7 +32,7 @@ echo *** Starting from [%CD%] *** echo; for /d /r %%r in (*) do ( - echo "%%r" | findstr "node_modules" >NUL && ( echo; ) || ( + echo "%%r" | findstr "node_modules" >NUL || ( if exist "%%r\.git" ( pushd "%%r" echo ---- git pulling [%%r] ---- diff --git a/git-push-recursive.bat b/git-push-recursive.bat index dec2f54..b1e34b7 100644 --- a/git-push-recursive.bat +++ b/git-push-recursive.bat @@ -39,7 +39,7 @@ set /p COMMIT_MESSAGE=">>> " echo; for /d /r %%r in (*) do ( - echo "%%r" | findstr "node_modules" >NUL && ( echo; ) || ( + echo "%%r" | findstr "node_modules" >NUL || ( if exist "%%r\.git" ( pushd "%%r" echo ---- git commit and push [%%r] ---- diff --git a/npm-boot-all.bat b/npm-boot-all.bat index 5ad5a22..f6800cd 100644 --- a/npm-boot-all.bat +++ b/npm-boot-all.bat @@ -35,26 +35,21 @@ echo; for /d %%o in (*) do ( @ if not "%%o" == ".vscode" ( - @REM @ echo "%%o" | findstr "=" >NUL && ( - @REM echo !!!!!!!! omitting [%FONPATH%\%%o] !!!!!!!! - @REM echo; - @REM ) || ( - echo ======== entering [%FONPATH%\%%o] ======== - echo; - pushd %%o - for /d %%g in (*) do ( - @ if exist "%%g\package.json" ( - findstr "\"boot\"" %%g\package.json >NUL && ( - pushd %%g - echo ---- npm booting [%FONPATH%\%%o\%%g] ---- - npm run boot - echo; - popd - ) - ) + echo ======== entering [%FONPATH%\%%o] ======== + echo; + pushd %%o + for /d %%g in (*) do ( + @ if exist "%%g\package.json" ( + findstr "\"boot\"" %%g\package.json >NUL && ( + pushd %%g + echo ---- npm booting [%FONPATH%\%%o\%%g] ---- + npm run boot + echo; + popd + ) ) - popd - @REM ) + ) + popd ) )