Skip to content

Commit 23a230d

Browse files
committed
Add Turborepo configuration and scripts for improved monorepo management
1 parent 7f9ddcc commit 23a230d

File tree

4 files changed

+143
-1
lines changed

4 files changed

+143
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ public/mdx-images/*
9898
# yalc
9999
.yalc
100100
yalc.lock
101+
102+
# turborepo
103+
.turbo

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"url": "https://github.com/getsentry/sentry-docs/issues"
1212
},
1313
"private": true,
14+
"packageManager": "[email protected]",
1415
"workspaces": [
1516
"./apps/*"
1617
],
@@ -32,7 +33,11 @@
3233
"sidecar": "yarn spotlight-sidecar",
3334
"test": "vitest",
3435
"test:ci": "vitest run",
35-
"enforce-redirects": "node ./scripts/no-vercel-json-redirects.mjs"
36+
"enforce-redirects": "node ./scripts/no-vercel-json-redirects.mjs",
37+
"turbo:dev": "turbo run dev",
38+
"turbo:build": "turbo run build",
39+
"turbo:lint": "turbo run lint",
40+
"turbo:test": "turbo run test"
3641
},
3742
"dependencies": {
3843
"@ariakit/react": "^0.4.5",
@@ -124,6 +129,7 @@
124129
"prettier": "^3.2.4",
125130
"tailwindcss": "^3.4.1",
126131
"ts-node": "^10.9.1",
132+
"turbo": "^2.5.4",
127133
"typescript": "^5",
128134
"vite-tsconfig-paths": "^5.0.1",
129135
"vitest": "^3.0.7",

turbo.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"tasks": {
4+
"build": {
5+
"dependsOn": [
6+
"^build"
7+
],
8+
"outputs": [
9+
".next/**",
10+
"!.next/cache/**",
11+
"dist/**"
12+
],
13+
"env": [
14+
"NODE_ENV",
15+
"NEXT_PUBLIC_*"
16+
]
17+
},
18+
"dev": {
19+
"cache": false,
20+
"persistent": true
21+
},
22+
"start": {
23+
"dependsOn": [
24+
"build"
25+
],
26+
"cache": false,
27+
"persistent": true
28+
},
29+
"lint": {
30+
"outputs": []
31+
},
32+
"lint:ts": {
33+
"outputs": []
34+
},
35+
"lint:docs": {
36+
"outputs": []
37+
},
38+
"lint:eslint": {
39+
"outputs": []
40+
},
41+
"lint:eslint:fix": {
42+
"cache": false,
43+
"outputs": []
44+
},
45+
"lint:prettier": {
46+
"outputs": []
47+
},
48+
"lint:prettier:fix": {
49+
"cache": false,
50+
"outputs": []
51+
},
52+
"lint:fix": {
53+
"cache": false,
54+
"outputs": []
55+
},
56+
"test": {
57+
"dependsOn": [
58+
"^build"
59+
],
60+
"outputs": [
61+
"coverage/**"
62+
],
63+
"inputs": [
64+
"src/**/*.{ts,tsx,js,jsx}",
65+
"test/**/*.{ts,tsx,js,jsx}",
66+
"**/*.test.*",
67+
"**/*.spec.*"
68+
]
69+
},
70+
"test:ci": {
71+
"dependsOn": [
72+
"^build"
73+
],
74+
"outputs": [
75+
"coverage/**"
76+
],
77+
"inputs": [
78+
"src/**/*.{ts,tsx,js,jsx}",
79+
"test/**/*.{ts,tsx,js,jsx}",
80+
"**/*.test.*",
81+
"**/*.spec.*"
82+
]
83+
},
84+
"enforce-redirects": {
85+
"cache": false
86+
},
87+
"migrate:dev": {
88+
"cache": false
89+
}
90+
}
91+
}

yarn.lock

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12373,6 +12373,48 @@ tunnel@^0.0.6:
1237312373
resolved "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz"
1237412374
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
1237512375

12376+
12377+
version "2.5.4"
12378+
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-2.5.4.tgz#f03b3f071365c626d05e84d0d4b9db96348f2951"
12379+
integrity sha512-ah6YnH2dErojhFooxEzmvsoZQTMImaruZhFPfMKPBq8sb+hALRdvBNLqfc8NWlZq576FkfRZ/MSi4SHvVFT9PQ==
12380+
12381+
12382+
version "2.5.4"
12383+
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-2.5.4.tgz#614becf281da75af5a01094373f380ac2b48190a"
12384+
integrity sha512-2+Nx6LAyuXw2MdXb7pxqle3MYignLvS7OwtsP9SgtSBaMlnNlxl9BovzqdYAgkUW3AsYiQMJ/wBRb7d+xemM5A==
12385+
12386+
12387+
version "2.5.4"
12388+
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-2.5.4.tgz#fc7425f35feb19a8373e7926eccdd4a3b2fb77a4"
12389+
integrity sha512-5May2kjWbc8w4XxswGAl74GZ5eM4Gr6IiroqdLhXeXyfvWEdm2mFYCSWOzz0/z5cAgqyGidF1jt1qzUR8hTmOA==
12390+
12391+
12392+
version "2.5.4"
12393+
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-2.5.4.tgz#ab5418a88089e4ec20b2c28c3d3c6b8a99b07a81"
12394+
integrity sha512-/2yqFaS3TbfxV3P5yG2JUI79P7OUQKOUvAnx4MV9Bdz6jqHsHwc9WZPpO4QseQm+NvmgY6ICORnoVPODxGUiJg==
12395+
12396+
12397+
version "2.5.4"
12398+
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-2.5.4.tgz#fc78585d3950e5cd64bed8d6648f078e7f32f9a5"
12399+
integrity sha512-EQUO4SmaCDhO6zYohxIjJpOKRN3wlfU7jMAj3CgcyTPvQR/UFLEKAYHqJOnJtymbQmiiM/ihX6c6W6Uq0yC7mA==
12400+
12401+
12402+
version "2.5.4"
12403+
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-2.5.4.tgz#5134537cc9fa27f4647f2f899b7ba2dacfc6ad22"
12404+
integrity sha512-oQ8RrK1VS8lrxkLriotFq+PiF7iiGgkZtfLKF4DDKsmdbPo0O9R2mQxm7jHLuXraRCuIQDWMIw6dpcr7Iykf4A==
12405+
12406+
turbo@^2.5.4:
12407+
version "2.5.4"
12408+
resolved "https://registry.yarnpkg.com/turbo/-/turbo-2.5.4.tgz#e46213a4560b94e56c014e0fd56d06605de16753"
12409+
integrity sha512-kc8ZibdRcuWUG1pbYSBFWqmIjynlD8Lp7IB6U3vIzvOv9VG+6Sp8bzyeBWE3Oi8XV5KsQrznyRTBPvrf99E4mA==
12410+
optionalDependencies:
12411+
turbo-darwin-64 "2.5.4"
12412+
turbo-darwin-arm64 "2.5.4"
12413+
turbo-linux-64 "2.5.4"
12414+
turbo-linux-arm64 "2.5.4"
12415+
turbo-windows-64 "2.5.4"
12416+
turbo-windows-arm64 "2.5.4"
12417+
1237612418
type-check@^0.4.0, type-check@~0.4.0:
1237712419
version "0.4.0"
1237812420
resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz"

0 commit comments

Comments
 (0)