Skip to content

Commit

Permalink
chore: ugprade nx
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Apr 3, 2024
1 parent c10929f commit e42216c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 266 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ tests/cli/.env
############################
# Strapi
############################
examples/**/types/generated
examples/**/types/generated
.nx/cache
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ coverage
test-apps
dist
build
.strapi
.strapi
/.nx/cache
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"version": "5.0.0-beta.1",
"packages": ["packages/*", "examples/*"],
"npmClient": "yarn",
"useNx": true
"npmClient": "yarn"
}
22 changes: 9 additions & 13 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*"],
"production": [
Expand All @@ -23,13 +22,16 @@
"targetDefaults": {
"build": {
"inputs": ["production", "^production"],
"dependsOn": ["^build"]
"dependsOn": ["^build"],
"cache": true
},
"test:unit": {
"inputs": ["default", "{workspaceRoot}/jest-preset.unit.js"]
"inputs": ["default", "{workspaceRoot}/jest-preset.unit.js"],
"cache": true
},
"test:front": {
"inputs": ["default", "{workspaceRoot}/jest-preset.front.js"]
"inputs": ["default", "{workspaceRoot}/jest-preset.front.js"],
"cache": true
},
"lint": {
"inputs": [
Expand All @@ -39,15 +41,9 @@
"{projectRoot}/.eslintignore",
"{projectRoot}/tsconfig.eslint.json",
"{workspaceRoot}/packages/utils/eslint-config-custom/**/*"
]
],
"cache": true
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test:unit", "test:front"]
}
}
}
"useInferencePlugins": false
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"lerna": "8.1.2",
"lint-staged": "13.3.0",
"lodash": "4.17.21",
"nx": "16.8.1",
"nx": "18.2.2",
"plop": "2.7.6",
"prettier": "3.2.5",
"qs": "6.11.1",
Expand Down
Loading

0 comments on commit e42216c

Please sign in to comment.