探测 boot 脚本是否存在于 package.json 里

This commit is contained in:
luk.lu
2021-07-22 16:38:47 +08:00
parent f2809ad31a
commit 7251918b03
5 changed files with 66 additions and 28 deletions

View File

@@ -21,7 +21,22 @@ if not exist %BASEDIR% (
pushd %BASEDIR%
echo *** Current path = [%CD%] ***
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
@REM 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 )
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