-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update Nx 19 & other dependencies
Signed-off-by: Vojtech Masek <[email protected]>
- Loading branch information
Showing
15 changed files
with
8,881 additions
and
7,816 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ Thumbs.db | |
**/.code-pushup | ||
|
||
# Nx workspace cache | ||
.nx/cache | ||
.nx |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage | ||
/.nx/cache | ||
/.nx | ||
__snapshots__ |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
import config from '@commitlint/config-conventional'; | ||
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'; | ||
import { getProjects } from '@nx/devkit'; | ||
import { FsTree } from 'nx/src/generators/tree'; | ||
|
||
const projects = getProjects(new FsTree(process.cwd(), false)); | ||
const scopes = [ | ||
...[...projects] | ||
.filter( | ||
([, { projectType }]) => | ||
projectType === 'library' || projectType === 'application', | ||
) | ||
.map(([name]) => name), | ||
'tools', | ||
'workflows', | ||
'testing', | ||
].sort(); | ||
|
||
const configuration: UserConfig = { | ||
extends: ['@commitlint/config-conventional'], | ||
plugins: ['commitlint-plugin-tense'], | ||
rules: { | ||
'scope-enum': [RuleConfigSeverity.Error, 'always', scopes], | ||
'type-enum': () => { | ||
const defaultTypes = config.rules['type-enum'][2]; | ||
const types = [ | ||
...defaultTypes, | ||
'release', // custom type for release commits | ||
]; | ||
return [RuleConfigSeverity.Error, 'always', types]; | ||
}, | ||
'tense/subject-tense': [ | ||
RuleConfigSeverity.Error, | ||
'always', | ||
{ firstOnly: true, allowedTenses: ['present-imperative'] }, | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = configuration; |
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
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
Oops, something went wrong.