Open History to see the last commit
1{
2 "name": "@benchmarks/client-nav",
3 "private": true,
4 "type": "module",
5 "scripts": {
6 "build:react": "NODE_ENV=production vite build --config ./react/vite.config.ts",
7 "build:solid": "NODE_ENV=production vite build --config ./solid/vite.config.ts",
8 "build:vue": "NODE_ENV=production vite build --config ./vue/vite.config.ts",
9 "test:flame:react": "NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\"--stack-size=65500\" ./react/speed.flame.ts",
10 "test:flame:solid": "NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\"--stack-size=65500\" ./solid/speed.flame.ts",
11 "test:flame:vue": "NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\"--stack-size=65500\" ./vue/speed.flame.ts",
12 "test:perf": "NODE_ENV=production vitest bench --config ./vitest.config.ts",
13 "test:perf:react": "NODE_ENV=production vitest bench --config ./vitest.react.config.ts",
14 "test:perf:solid": "NODE_ENV=production vitest bench --config ./vitest.solid.config.ts",
15 "test:perf:vue": "NODE_ENV=production vitest bench --config ./vitest.vue.config.ts",
16 "test:types": "pnpm run test:types:react && pnpm run test:types:solid && pnpm run test:types:vue",
17 "test:types:react": "tsc -p ./react/tsconfig.json --noEmit",
18 "test:types:solid": "tsc -p ./solid/tsconfig.json --noEmit",
19 "test:types:vue": "tsc -p ./vue/tsconfig.json --noEmit"
20 },
21 "dependencies": {
22 "@tanstack/history": "workspace:^",
23 "@tanstack/react-router": "workspace:^",
24 "@tanstack/router-core": "workspace:^",
25 "@tanstack/solid-router": "workspace:^",
26 "@tanstack/vue-router": "workspace:^",
27 "react": "^19.0.0",
28 "react-dom": "^19.0.0",
29 "solid-js": "^1.9.10",
30 "vue": "^3.5.16"
31 },
32 "devDependencies": {
33 "@platformatic/flame": "^1.6.0",
34 "@codspeed/vitest-plugin": "^5.7.1",
35 "@tanstack/router-plugin": "workspace:^",
36 "@testing-library/react": "^16.2.0",
37 "@vitejs/plugin-react": "^6.0.1",
38 "@vitejs/plugin-vue": "^6.0.5",
39 "@vitejs/plugin-vue-jsx": "^5.1.5",
40 "@types/jsdom": "28.0.0",
41 "@types/react": "catalog:",
42 "@types/react-dom": "catalog:",
43 "@typescript/native": "npm:typescript@^7.0.2",
44 "jsdom": "^29.1.1",
45 "typescript": "npm:@typescript/typescript6@^6.0.2",
46 "vite": "^8.0.14",
47 "vite-plugin-solid": "^2.11.11",
48 "vitest": "catalog:"
49 },
50 "nx": {
51 "targets": {
52 "build:react": {
53 "cache": false,
54 "dependsOn": [
55 {
56 "projects": [
57 "@tanstack/react-router"
58 ],
59 "target": "build"
60 },
61 {
62 "projects": [
63 "@benchmarks/client-nav-async-pipeline-react",
64 "@benchmarks/client-nav-control-flow-react",
65 "@benchmarks/client-nav-head-react",
66 "@benchmarks/client-nav-history-react",
67 "@benchmarks/client-nav-hydration-react",
68 "@benchmarks/client-nav-link-churn-react",
69 "@benchmarks/client-nav-links-react",
70 "@benchmarks/client-nav-loaders-react",
71 "@benchmarks/client-nav-mount-react",
72 "@benchmarks/client-nav-nested-params-react",
73 "@benchmarks/client-nav-preload-react",
74 "@benchmarks/client-nav-rewrites-react",
75 "@benchmarks/client-nav-route-tree-scale-react",
76 "@benchmarks/client-nav-search-params-react"
77 ],
78 "target": "build:client"
79 }
80 ]
81 },
82 "build:solid": {
83 "cache": false,
84 "dependsOn": [
85 {
86 "projects": [
87 "@tanstack/solid-router"
88 ],
89 "target": "build"
90 },
91 {
92 "projects": [
93 "@benchmarks/client-nav-async-pipeline-solid",
94 "@benchmarks/client-nav-control-flow-solid",
95 "@benchmarks/client-nav-head-solid",
96 "@benchmarks/client-nav-history-solid",
97 "@benchmarks/client-nav-hydration-solid",
98 "@benchmarks/client-nav-link-churn-solid",
99 "@benchmarks/client-nav-links-solid",
100 "@benchmarks/client-nav-loaders-solid",
101 "@benchmarks/client-nav-mount-solid",
102 "@benchmarks/client-nav-nested-params-solid",
103 "@benchmarks/client-nav-preload-solid",
104 "@benchmarks/client-nav-rewrites-solid",
105 "@benchmarks/client-nav-route-tree-scale-solid",
106 "@benchmarks/client-nav-search-params-solid"
107 ],
108 "target": "build:client"
109 }
110 ]
111 },
112 "build:vue": {
113 "cache": false,
114 "dependsOn": [
115 {
116 "projects": [
117 "@tanstack/vue-router"
118 ],
119 "target": "build"
120 },
121 {
122 "projects": [
123 "@benchmarks/client-nav-async-pipeline-vue",
124 "@benchmarks/client-nav-control-flow-vue",
125 "@benchmarks/client-nav-head-vue",
126 "@benchmarks/client-nav-history-vue",
127 "@benchmarks/client-nav-link-churn-vue",
128 "@benchmarks/client-nav-links-vue",
129 "@benchmarks/client-nav-loaders-vue",
130 "@benchmarks/client-nav-mount-vue",
131 "@benchmarks/client-nav-nested-params-vue",
132 "@benchmarks/client-nav-preload-vue",
133 "@benchmarks/client-nav-rewrites-vue",
134 "@benchmarks/client-nav-route-tree-scale-vue",
135 "@benchmarks/client-nav-search-params-vue"
136 ],
137 "target": "build:client"
138 }
139 ]
140 },
141 "test:perf": {
142 "cache": false,
143 "dependsOn": [
144 "build:react",
145 "build:solid",
146 "build:vue"
147 ]
148 },
149 "test:flame:react": {
150 "cache": false,
151 "dependsOn": [
152 "build:react"
153 ]
154 },
155 "test:flame:solid": {
156 "cache": false,
157 "dependsOn": [
158 "build:solid"
159 ]
160 },
161 "test:flame:vue": {
162 "cache": false,
163 "dependsOn": [
164 "build:vue"
165 ]
166 },
167 "test:perf:react": {
168 "cache": false,
169 "dependsOn": [
170 "build:react"
171 ]
172 },
173 "test:perf:solid": {
174 "cache": false,
175 "dependsOn": [
176 "build:solid"
177 ]
178 },
179 "test:perf:vue": {
180 "cache": false,
181 "dependsOn": [
182 "build:vue"
183 ]
184 },
185 "test:types": {
186 "inputs": [
187 "default",
188 "^production",
189 "{workspaceRoot}/eslint.config.js",
190 "{workspaceRoot}/benchmarks/cpu-simulation.ts",
191 "dependentTaskOutputs"
192 ],
193 "dependsOn": [
194 "^build",
195 {
196 "projects": [
197 "@benchmarks/client-nav-async-pipeline-react",
198 "@benchmarks/client-nav-async-pipeline-solid",
199 "@benchmarks/client-nav-async-pipeline-vue",
200 "@benchmarks/client-nav-control-flow-react",
201 "@benchmarks/client-nav-control-flow-solid",
202 "@benchmarks/client-nav-control-flow-vue",
203 "@benchmarks/client-nav-head-react",
204 "@benchmarks/client-nav-head-solid",
205 "@benchmarks/client-nav-head-vue",
206 "@benchmarks/client-nav-history-react",
207 "@benchmarks/client-nav-history-solid",
208 "@benchmarks/client-nav-history-vue",
209 "@benchmarks/client-nav-hydration-react",
210 "@benchmarks/client-nav-hydration-solid",
211 "@benchmarks/client-nav-link-churn-react",
212 "@benchmarks/client-nav-links-react",
213 "@benchmarks/client-nav-link-churn-solid",
214 "@benchmarks/client-nav-links-solid",
215 "@benchmarks/client-nav-link-churn-vue",
216 "@benchmarks/client-nav-links-vue",
217 "@benchmarks/client-nav-loaders-react",
218 "@benchmarks/client-nav-loaders-solid",
219 "@benchmarks/client-nav-loaders-vue",
220 "@benchmarks/client-nav-mount-react",
221 "@benchmarks/client-nav-mount-solid",
222 "@benchmarks/client-nav-mount-vue",
223 "@benchmarks/client-nav-nested-params-react",
224 "@benchmarks/client-nav-nested-params-solid",
225 "@benchmarks/client-nav-nested-params-vue",
226 "@benchmarks/client-nav-preload-react",
227 "@benchmarks/client-nav-preload-solid",
228 "@benchmarks/client-nav-preload-vue",
229 "@benchmarks/client-nav-rewrites-react",
230 "@benchmarks/client-nav-route-tree-scale-react",
231 "@benchmarks/client-nav-rewrites-solid",
232 "@benchmarks/client-nav-route-tree-scale-solid",
233 "@benchmarks/client-nav-rewrites-vue",
234 "@benchmarks/client-nav-route-tree-scale-vue",
235 "@benchmarks/client-nav-search-params-react",
236 "@benchmarks/client-nav-search-params-solid",
237 "@benchmarks/client-nav-search-params-vue"
238 ],
239 "target": "test:types:client"
240 }
241 ]
242 }
243 }
244 }
245}