This commit is contained in:
陆柯 2021-06-29 09:42:40 +08:00
parent 287207aae1
commit 0999d60f10
2 changed files with 19 additions and 1 deletions

View File

@ -1,8 +1,11 @@
@echo off
@ IF "%1" == "" echo Using current folder as root folder
pushd %1
for /d %%d in (*) do pushd %%d & (for /d %%d in (*) do pushd %%d & echo Git Pulling %%d ... & git pull & popd) & popd
for /d %%d in (*) do pushd %%d & (for /d %%d in (*) do if exist %%d/.git (pushd %%d & echo [ Git Pulling %%d ... ] & git pull & popd)) & popd
popd
pause
@GOTO END
:EMPTY

15
npm-boot-all.bat Normal file
View File

@ -0,0 +1,15 @@
@echo off
@ IF "%1" == "" echo Using current folder as root folder
pushd %1
for /d %%d in (*) do pushd %%d & (for /d %%d in (*) do if exist %%d/package.json (pushd %%d & echo [ npm booting %%d ... ] & npm run boot & popd)) & popd
popd
pause
@GOTO END
:EMPTY
@ echo Empty target! Please assign a target path.
@ GOTO END
:END