Skip to content

Commit 4d225cf

Browse files
committed
move to turbo
1 parent d144367 commit 4d225cf

File tree

6 files changed

+291
-209
lines changed

6 files changed

+291
-209
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
!.yarn/sdks
1111
!.yarn/versions
1212

13+
.turbo
14+
1315
.ultra.cache.json
1416
tmp
1517
*.tsbuildinfo

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"workbench.colorCustomizations": {
4-
"titleBar.activeBackground": "#a10ca3",
4+
"titleBar.activeBackground": "#6d386d",
55
"titleBar.activeForeground": "#fff",
66
"titleBar.inactiveBackground": "#a10ca3",
77
"titleBar.inactiveForeground": "#2a0b2b"

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"postinstall": "manypkg check",
1515
"check": "manypkg check",
1616
"build": "yarn build:js && yarn build:types",
17-
"build:js": "SKIP_TYPES=1 ultra -r --no-pretty --concurrency 100 --rebuild",
18-
"build:types": "SKIP_JS=1 ultra -r --no-pretty --concurrency 100 --rebuild",
19-
"watch": "yarn build:types && SKIP_TYPES_INITIAL=1 ultra -r --no-pretty --concurrency 100 watch",
17+
"build:js": "SKIP_TYPES=1 turbo run build",
18+
"build:types": "SKIP_JS=1 turbo run build",
19+
"watch": "yarn build:types && SKIP_TYPES_INITIAL=1 turbo run --no-pretty --concurrency 100 watch",
2020
"pretty": "pretty-quick",
2121
"pretty:all": "prettier --write \"**/*.{ts,tsx}\"",
22-
"test": "ultra -r --no-pretty --serial test",
22+
"test": "turbo run test",
2323
"prettier": "prettier --write \"**/*.{ts,tsx}\" || true",
2424
"publish": "lerna publish",
2525
"site": "yarn workspace @tamagui/site dev",
26-
"clean": "find . -name \"node_modules\" -type d -prune -exec rm -rf '{}' +",
26+
"clean": "yarn turbo:clean",
2727
"fix": "yarn manypkg fix"
2828
},
2929
"resolutions": {
@@ -62,6 +62,6 @@
6262
"prettier": "^2.4.1",
6363
"prettier-plugin-import-sort": "^0.0.7",
6464
"pretty-quick": "^3.1.2",
65-
"ultra-runner": "^3.10.5"
65+
"turbo": "^1.1.1"
6666
}
6767
}

packages/site/next.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ const transform = withPlugins(
2626
// return Object.assign({}, nextConfig, {
2727
// webpack(config, options) {
2828
// config.optimization.minimize = false
29-
3029
// if (typeof nextConfig.webpack === 'function') {
3130
// return nextConfig.webpack(config, options)
3231
// }
33-
3432
// return config
3533
// },
3634
// })

turbo.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"baseBranch": "origin/main",
3+
"pipeline": {
4+
"build": {
5+
"dependsOn": [
6+
"^build"
7+
],
8+
"outputs": [
9+
".next/**",
10+
"dist/**",
11+
"lib/**"
12+
]
13+
},
14+
"start": {
15+
"dependsOn": [
16+
"^build"
17+
],
18+
"outputs": []
19+
},
20+
"test": {
21+
"dependsOn": [
22+
"^build"
23+
],
24+
"outputs": []
25+
},
26+
"test-update": {
27+
"dependsOn": [
28+
"^build"
29+
],
30+
"outputs": []
31+
},
32+
"lint": {
33+
"outputs": []
34+
},
35+
"dev": {
36+
"cache": false
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)