Skip to content

Commit b696584

Browse files
authored
chore(monorepo): Replace Turborepo with Nx (#53)
1 parent 67d33b6 commit b696584

File tree

5 files changed

+517
-134
lines changed

5 files changed

+517
-134
lines changed

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Turborepo
2-
.turbo/
1+
# Nx
2+
.nx/cache
3+
.nx/workspace-data
34

45
# Node.js
56
node_modules/

nx.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"targetDefaults": {
4+
"build": {
5+
"dependsOn": ["^build"],
6+
"outputs": ["{projectRoot}/dist"],
7+
"cache": true
8+
},
9+
"check": {
10+
"dependsOn": ["^build", "^check"],
11+
"cache": false
12+
},
13+
"compile": {
14+
"dependsOn": ["^build", "^compile"],
15+
"outputs": ["{projectRoot}/build"],
16+
"cache": true
17+
},
18+
"docs": {
19+
"dependsOn": ["^build", "^docs"],
20+
"outputs": ["{projectRoot}/docs"],
21+
"cache": true
22+
},
23+
"release": {
24+
"dependsOn": ["^build", "build", "^release"],
25+
"cache": false
26+
},
27+
"test": {
28+
"dependsOn": ["^build", "^test"],
29+
"cache": true
30+
}
31+
},
32+
"defaultBase": "main"
33+
}

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
],
1616
"packageManager": "yarn@4.3.1",
1717
"scripts": {
18-
"build": "turbo build",
19-
"check": "turbo check && yarn lint",
20-
"compile": "turbo compile",
21-
"docs": "turbo docs",
18+
"build": "nx run-many -t build",
19+
"check": "nx run-many -t check && yarn lint",
20+
"compile": "nx run-many -t compile",
21+
"docs": "nx run-many -t docs",
2222
"lint": "eslint .",
23-
"test": "turbo test",
24-
"release": "turbo release --concurrency=1",
25-
"turbo": "turbo"
23+
"test": "nx run-many -t test --run",
24+
"release": "nx run-many -t release --parallel 1"
2625
},
2726
"devDependencies": {
2827
"@eslint/compat": "^1.1.0",
@@ -42,8 +41,8 @@
4241
"eslint-plugin-react": "^7.34.3",
4342
"eslint-plugin-sonarjs": "^1.0.3",
4443
"globals": "^15.8.0",
44+
"nx": "19.4.2",
4545
"tslib": "^2.6.3",
46-
"turbo": "^2.0.6",
4746
"typedoc": "^0.26.3",
4847
"typedoc-plugin-markdown": "^4.1.2",
4948
"typedoc-plugin-merge-modules": "^6.0.0",

turbo.json

-32
This file was deleted.

0 commit comments

Comments
 (0)