This commit is contained in:
luk.lu
2022-10-24 12:27:25 +08:00
parent 439c4d6675
commit fcd08cd98e
8 changed files with 24 additions and 21 deletions

View File

@@ -36,14 +36,17 @@ pushd $FONPATH
echo "*** Starting from [`pwd`] ***"
echo ""
find . -mindepth 1 -maxdepth 3 -type d -name '?*' | grep -v 'node_modules' | while read repo
find . -mindepth 1 -maxdepth 3 -type d -name '[^.]*' | grep -v 'node_modules' | while read repo
do
if ( [ -f "$repo/package.json" ] && grep -q '"boot"' "$repo/package.json" )
then
echo "---- npm booting: [`pwd`/$repo] ----"
echo ""
echo "---- npm booting: [$repo] ----"
echo ""
pushd "$repo"
npm run boot
echo "---- npm booted: [`pwd`/$repo] ----"
echo ""
echo "---- npm booted: [$repo] ----"
echo ""
popd
fi