-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config-nx-scopes): support latest nx version (#3728)
* fix(commitlint-config-nx-scopes): support nx version 17 updated peer dependencies to support nx version 17 * refactor(commitlint-config-nx-scopes): follow package name convention renamed packages in fixtures to follow the subsequent name convention
- Loading branch information
1 parent
dcc0424
commit 22e6f74
Showing
8 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"affected": { | ||
"defaultBase": "main" | ||
}, | ||
"cli": { | ||
"defaultCollection": "@nx/react" | ||
}, | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx-cloud", | ||
"options": { | ||
"cacheableOperations": [ | ||
"build", | ||
"lint", | ||
"test", | ||
"e2e" | ||
] | ||
} | ||
} | ||
}, | ||
"generators": { | ||
"@nx/react": { | ||
"application": { | ||
"style": "css", | ||
"linter": "eslint", | ||
"babel": true | ||
}, | ||
"component": { | ||
"style": "css" | ||
}, | ||
"library": { | ||
"style": "css", | ||
"linter": "eslint" | ||
} | ||
} | ||
}, | ||
"defaultProject": "g" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "g", | ||
"version": "1.0.0" | ||
} |
29 changes: 29 additions & 0 deletions
29
@commitlint/config-nx-scopes/fixtures/nx17/nx/g/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"root": "nx/g", | ||
"sourceRoot": "nx/g/src", | ||
"projectType": "library", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/linter:eslint", | ||
"outputs": [ | ||
"{options.outputFile}" | ||
], | ||
"options": { | ||
"lintFilePatterns": [ | ||
"nx/g/**/*.ts" | ||
] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"outputs": [ | ||
"coverage/nx/g" | ||
], | ||
"options": { | ||
"jestConfig": "nx/g/jest.config.js", | ||
"passWithNoTests": true | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "h", | ||
"version": "1.0.0" | ||
} |
29 changes: 29 additions & 0 deletions
29
@commitlint/config-nx-scopes/fixtures/nx17/nx/h/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"root": "nx/h", | ||
"sourceRoot": "nx/h/src", | ||
"projectType": "library", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/linter:eslint", | ||
"outputs": [ | ||
"{options.outputFile}" | ||
], | ||
"options": { | ||
"lintFilePatterns": [ | ||
"nx/h/**/*.ts" | ||
] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"outputs": [ | ||
"coverage/nx/h" | ||
], | ||
"options": { | ||
"jestConfig": "nx/h/jest.config.js", | ||
"passWithNoTests": true | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "basic", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"nx": "^17.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters