Skip to content

Commit 17a3795

Browse files
init turbo & lerna
1 parent 653fe11 commit 17a3795

File tree

5 files changed

+2709
-74
lines changed

5 files changed

+2709
-74
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ dist
107107
.DS_Store
108108

109109

110+
# turbo
111+
.turbo
112+
110113
# ------- docs related -------
111114
## Learn more at scripts/docs-copy/flags-api-docs.js
112115
# flags api docs

lerna.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"useWorkspaces": true,
3+
"packages": [
4+
"packages/*"
5+
],
6+
"command": {
7+
"version": {
8+
"exact": true
9+
},
10+
"publish": {
11+
"npmClient": "npm",
12+
"allowBranch": [
13+
"canary"
14+
],
15+
"registry": "https://registry.npmjs.org/"
16+
}
17+
},
18+
"version": "0.0.0"
19+
}

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"private": true,
77
"scripts": {
88
"checkout:all": "git submodule update --init --recursive",
9-
"editor": "yarn workspace editor dev"
9+
"editor": "turbo run editor#dev",
10+
"build": "turbo run build",
11+
"lerna": "lerna"
1012
},
1113
"workspaces": [
1214
"editor",
@@ -18,5 +20,9 @@
1820
"@design-sdk/figma-node": "0.0.25",
1921
"@reflect-ui/core": "0.0.8",
2022
"csstype": "3.1.0"
23+
},
24+
"devDependencies": {
25+
"lerna": "^4.0.0",
26+
"turbo": "^1.4.2"
2127
}
2228
}

turbo.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://turborepo.org/schema.json",
3+
"baseBranch": "origin/main",
4+
"pipeline": {
5+
"editor#dev": {
6+
"dependsOn": [
7+
"^build"
8+
],
9+
"outputs": [
10+
".next"
11+
]
12+
},
13+
"build": {
14+
"dependsOn": [
15+
"^build"
16+
],
17+
"outputs": [
18+
".next/**"
19+
]
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)