feat(frontend): 用户端切换为参考站 Vue 界面
This commit is contained in:
@@ -11,9 +11,9 @@ while IFS= read -r -d '' file; do
|
||||
printf '[frontend-size] %s %s 行,超过上限 %s\n' "${file#${ROOT_DIR}/}" "${lines}" "${MAX_LINES}" >&2
|
||||
failed=1
|
||||
fi
|
||||
done < <(find "${ROOT_DIR}/frontend/src" -name '*.tsx' -not -name '*.test.tsx' -print0)
|
||||
done < <(find "${ROOT_DIR}/frontend/src" -name '*.vue' -not -path '*/features/admin/*' -print0)
|
||||
|
||||
if ((failed != 0)); then
|
||||
exit 1
|
||||
fi
|
||||
printf '[frontend-size] 所有 React 页面均不超过 %s 行\n' "${MAX_LINES}"
|
||||
printf '[frontend-size] 所有用户端 Vue 页面均不超过 %s 行\n' "${MAX_LINES}"
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ if [[ "${SKIP_FRONTEND}" == "0" ]]; then
|
||||
log "前端检查目录: ${FRONTEND_DIR}"
|
||||
cd "${FRONTEND_DIR}"
|
||||
|
||||
run_step "React 页面大小门禁" bash "${ROOT_DIR}/scripts/check-frontend-size.sh" || FAILED=1
|
||||
run_step "用户端 Vue 页面大小门禁" bash "${ROOT_DIR}/scripts/check-frontend-size.sh" || FAILED=1
|
||||
|
||||
if [[ ! -d node_modules ]]; then
|
||||
run_step "npm ci (首次安装依赖)" npm ci || FAILED=1
|
||||
|
||||
Reference in New Issue
Block a user