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

project.json

40 lines1.3 KB

1{
2 "name": "@benchmarks/client-nav-hydration-react",
3 "projectType": "application",
4 "targets": {
5 "build:client": {
6 "executor": "nx:run-commands",
7 "cache": false,
8 "dependsOn": [
9 { "projects": ["@tanstack/react-router"], "target": "build" }
10 ],
11 "options": {
12 "command": "NODE_ENV=production vite build --config {projectRoot}/vite.server.config.ts && NODE_ENV=production node {projectRoot}/generate-fixture.mjs && NODE_ENV=production vite build --config {projectRoot}/vite.config.ts"
13 }
14 },
15 "test:unit": {
16 "executor": "nx:run-commands",
17 "dependsOn": ["build:client"],
18 "options": {
19 "command": "vitest run --config ./scenarios/hydration/react/vite.config.ts",
20 "cwd": "benchmarks/client-nav"
21 }
22 },
23 "test:perf": {
24 "executor": "nx:run-commands",
25 "cache": false,
26 "dependsOn": ["build:client"],
27 "options": {
28 "command": "NODE_ENV=production vitest bench --run --config ./scenarios/hydration/react/vite.config.ts",
29 "cwd": "benchmarks/client-nav"
30 }
31 },
32 "test:types:client": {
33 "executor": "nx:run-commands",
34 "dependsOn": [
35 { "projects": ["@tanstack/react-router"], "target": "build" }
36 ],
37 "options": { "command": "tsc -p {projectRoot}/tsconfig.json --noEmit" }
38 }
39 }