Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

project.json

103 lines3.1 KB

1{
2 "name": "@benchmarks/react-link-performance",
3 "projectType": "application",
4 "tags": ["optional-benchmark"],
5 "targets": {
6 "build:client": {
7 "executor": "nx:run-commands",
8 "cache": false,
9 "dependsOn": [
10 {
11 "projects": ["@tanstack/react-router"],
12 "target": "build"
13 }
14 ],
15 "options": {
16 "command": "NODE_ENV=production vite build --config ./link-performance/vite.client.config.ts",
17 "cwd": "benchmarks/client-nav"
18 }
19 },
20 "build:ssr": {
21 "executor": "nx:run-commands",
22 "cache": false,
23 "dependsOn": [
24 {
25 "projects": ["@tanstack/react-router"],
26 "target": "build"
27 }
28 ],
29 "options": {
30 "command": "NODE_ENV=production vite build --config ./link-performance/vite.ssr.config.ts",
31 "cwd": "benchmarks/client-nav"
32 }
33 },
34 "test:perf:client": {
35 "executor": "nx:run-commands",
36 "cache": false,
37 "dependsOn": ["build:client"],
38 "options": {
39 "command": "NODE_ENV=production vitest bench --config ./link-performance/vite.client.config.ts",
40 "cwd": "benchmarks/client-nav"
41 }
42 },
43 "test:perf:ssr": {
44 "executor": "nx:run-commands",
45 "cache": false,
46 "dependsOn": ["build:ssr"],
47 "options": {
48 "command": "NODE_ENV=production vitest bench --config ./link-performance/vite.ssr.config.ts",
49 "cwd": "benchmarks/client-nav"
50 }
51 },
52 "test:perf:stable": {
53 "executor": "nx:run-commands",
54 "cache": false,
55 "dependsOn": ["build:client", "build:ssr"],
56 "options": {
57 "command": "NODE_ENV=production node --import=@swc-node/register/esm-register benchmarks/client-nav/link-performance/stable-runner.ts"
58 }
59 },
60 "test:unit": {
61 "executor": "nx:run-commands",
62 "inputs": [
63 "...",
64 "{workspaceRoot}/benchmarks/client-nav/scenarios/harness.ts",
65 "{workspaceRoot}/benchmarks/client-nav/scenarios/links/shared.ts",
66 "{workspaceRoot}/benchmarks/client-nav/setup-helpers.ts",
67 "{workspaceRoot}/benchmarks/client-nav/tsconfig.json"
68 ],
69 "dependsOn": [
70 {
71 "projects": ["@tanstack/history"],
72 "target": "build"
73 }
74 ],
75 "options": {
76 "command": "vitest run --config ./link-performance/vitest.config.ts",
77 "cwd": "benchmarks/client-nav"
78 }
79 },
80 "test:types": {
81 "executor": "nx:run-commands",
82 "inputs": [
83 "...",
84 "{workspaceRoot}/benchmarks/client-nav/jsdom.ts",
85 "{workspaceRoot}/benchmarks/client-nav/scenarios/harness.ts",
86 "{workspaceRoot}/benchmarks/client-nav/scenarios/links/shared.ts",
87 "{workspaceRoot}/benchmarks/client-nav/setup-helpers.ts",
88 "{workspaceRoot}/benchmarks/client-nav/tsconfig.json",
89 "{workspaceRoot}/benchmarks/client-nav/vitest.setup.ts"
90 ],
91 "dependsOn": [
92 {
93 "projects": ["@tanstack/react-router"],
94 "target": "build"
95 }
96 ],
97 "options": {
98 "command": "tsc -p ./link-performance/tsconfig.json --noEmit",
99 "cwd": "benchmarks/client-nav"
100 }
101 }
102 }