过滤掉 @cloud 结尾的目录不做 git pull 和 npm run boot

This commit is contained in:
luk.lu
2021-08-18 10:45:39 +08:00
parent 1ea14cee5f
commit 6ce99af4a9
4 changed files with 33 additions and 20 deletions

View File

@@ -26,16 +26,21 @@ echo *** Current path = [%CD%] ***
for /d %%o in (*) do (
if not %%o == .vscode (
pushd %%o
for /d %%g in (*) do (
if exist %%g/package.json (
pushd %%g
echo --- npm booting: %%g ...
npm run boot
popd
echo %%o | findstr "@cloud" && (
echo omitting [%BASEDIR%\%%o]
) || (
echo entering [%BASEDIR%\%%o]
pushd %%o
for /d %%g in (*) do (
if exist %%g/package.json (
pushd %%g
echo npm booting [%BASEDIR%\%%o\%%g]
npm run boot
popd
)
)
)
popd
popd
)
)
)