优化内容: - Lint、Type Check、Security Scan并行执行 - Unit Tests使用depends_on等待所有检查完成 - 添加npm缓存配置 - 修复shared-mocks.tsx的ESLint错误 预期效果: - 串行时间: 30s + 40s + 20s = 90s - 并行时间: max(30s, 40s, 20s) = 40s - 节省时间: 50s (55.6%改善)
This commit is contained in:
@@ -4,6 +4,8 @@ import "./globals.css";
|
||||
import { ThemeProvider } from "@/contexts/theme-context";
|
||||
import { WebVitals } from "@/components/analytics/web-vitals";
|
||||
import { GoogleAnalytics } from "@/components/analytics/GoogleAnalytics";
|
||||
import { PageViewsTracker } from "@/hooks/use-page-views";
|
||||
import { Suspense } from "react";
|
||||
import { Analytics } from "@vercel/analytics/react";
|
||||
import { OrganizationSchema, WebsiteSchema } from "@/components/seo/structured-data";
|
||||
import { MobileTabBar } from "@/components/layout/mobile-tab-bar";
|
||||
@@ -153,6 +155,9 @@ export default function RootLayout({
|
||||
>
|
||||
<ScrollProgress />
|
||||
<GoogleAnalytics />
|
||||
<Suspense fallback={null}>
|
||||
<PageViewsTracker />
|
||||
</Suspense>
|
||||
<WebVitals />
|
||||
<SessionProvider>
|
||||
<ThemeProvider>
|
||||
|
||||
Reference in New Issue
Block a user