Skip to content

Commit

Permalink
chore(monorepo): Replace Turborepo with Nx (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion authored Jul 10, 2024
1 parent 67d33b6 commit b696584
Show file tree
Hide file tree
Showing 5 changed files with 517 additions and 134 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Turborepo
.turbo/
# Nx
.nx/cache
.nx/workspace-data

# Node.js
node_modules/
Expand Down
33 changes: 33 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/dist"],
"cache": true
},
"check": {
"dependsOn": ["^build", "^check"],
"cache": false
},
"compile": {
"dependsOn": ["^build", "^compile"],
"outputs": ["{projectRoot}/build"],
"cache": true
},
"docs": {
"dependsOn": ["^build", "^docs"],
"outputs": ["{projectRoot}/docs"],
"cache": true
},
"release": {
"dependsOn": ["^build", "build", "^release"],
"cache": false
},
"test": {
"dependsOn": ["^build", "^test"],
"cache": true
}
},
"defaultBase": "main"
}
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
],
"packageManager": "yarn@4.3.1",
"scripts": {
"build": "turbo build",
"check": "turbo check && yarn lint",
"compile": "turbo compile",
"docs": "turbo docs",
"build": "nx run-many -t build",
"check": "nx run-many -t check && yarn lint",
"compile": "nx run-many -t compile",
"docs": "nx run-many -t docs",
"lint": "eslint .",
"test": "turbo test",
"release": "turbo release --concurrency=1",
"turbo": "turbo"
"test": "nx run-many -t test --run",
"release": "nx run-many -t release --parallel 1"
},
"devDependencies": {
"@eslint/compat": "^1.1.0",
Expand All @@ -42,8 +41,8 @@
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-sonarjs": "^1.0.3",
"globals": "^15.8.0",
"nx": "19.4.2",
"tslib": "^2.6.3",
"turbo": "^2.0.6",
"typedoc": "^0.26.3",
"typedoc-plugin-markdown": "^4.1.2",
"typedoc-plugin-merge-modules": "^6.0.0",
Expand Down
32 changes: 0 additions & 32 deletions turbo.json

This file was deleted.

Loading

0 comments on commit b696584

Please sign in to comment.