chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:10:28 +08:00
commit c2acfb5f2d
267 changed files with 15542 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
sleep 1
# 只依赖启动。
cd /usr/src/app
#!/bin/bash
# 定义要检查的文件夹路径
modules_path="/usr/src/app/node_modules"
# 使用[ ]检查文件夹是否存在
if [ -d "$modules_path" ]; then
echo "文件夹 $modules_path 存在"
else
echo "文件夹 $modules_path 不存在,执行 install 安装"
npm install --registry=https://registry.npmmirror.com
fi
npm run build
# 编译完成之后拷贝 html 资源到 影射目录,等待即可。每次编译前都清空内容。
rm -rf /data/html/*
cp -r ./dist/* /data/html/
echo "######### build finish and cp all html #########"