代码拉取完成,页面将自动刷新
#!/bin/bash
# Change directory to the example directory
cd apps/material-react-table-docs/examples
# Loop through each file in the example directory
for file in *; do
if [ -d "$file" ]; then
echo "Processing $file..."
# Change directory to the current file
cd "$file"
# Check if the sandbox file exists
if [ -f "sandbox/package.json" ]; then
echo " - Found sandbox/package.json"
echo " - Running npm install in sandbox..."
# Change directory to the sandbox directory
cd sandbox
## Update dependency versions
npx npm-check-updates -u material-react-table
# Run npm install
npm install --package-lock-only --force
echo " - npm install completed"
# Change back to the example directory
cd ..
else
echo " - No sandbox/package.json found"
fi
# Change back to the parent directory of the current file
cd ..
echo "Completed processing $file"
echo
fi
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。