-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migration to nrwl and lerna 7, update dependencies and node ve…
…rsion to 16 (#18) * ci: dependencies upgrade, add nx, new lerna version - Change node version to 16.20.x - Upgrade lerna to the newest version - Add nx to project - Upgrade angular and nextjs versions - Update node setup on CI * ci: puppeteer and jest upgrade - Update puppeteer version - Refactor puppeteer files to match type changes - Update jest version - Remove done callback functions from async/await tests * ci: upgrade fastify versions - Upgrade fastify versions * ci: replace HoA commit-lint with commitlint - Remove @house-of-angular/commit-lint package - Add commitlint package - Setup commitlint configs - Install puppeteer during CI process - Upgrade eslint version
- Loading branch information
1 parent
a1c50c1
commit af7f397
Showing
18 changed files
with
25,896 additions
and
12,503 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
const Configuration = { | ||
/* | ||
* Resolve and load @commitlint/config-conventional from node_modules. | ||
* Referenced packages must be installed | ||
*/ | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
* Resolve and load conventional-changelog-atom from node_modules. | ||
* Referenced packages must be installed | ||
*/ | ||
// parserPreset: 'conventional-changelog-atom', | ||
/* | ||
* Resolve and load @commitlint/format from node_modules. | ||
* Referenced package must be installed | ||
*/ | ||
formatter: '@commitlint/format', | ||
/* | ||
* Any rules defined here will override rules from @commitlint/config-conventional | ||
*/ | ||
rules: { | ||
'body-leading-blank': [2, 'always'], | ||
'footer-leading-blank': [2, 'always'], | ||
'header-max-length': [2, 'always', 72], | ||
'body-max-line-length': [2, 'always', 72], | ||
'footer-max-line-length': [2, 'always', 72], | ||
'scope-case': [2, 'always', 'lower-case'], | ||
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
['build', 'chore', 'ci', 'docs', 'deps', 'feat', 'fix', 'perf', 'refactor', 'style', 'test'] | ||
], | ||
'scope-enum': [2, 'always', ['pdf-generator', 'release', 'streaming']] | ||
}, | ||
/* | ||
* Functions that return true if commitlint should ignore the given message. | ||
*/ | ||
ignores: [(commit) => commit === ''], | ||
/* | ||
* Whether commitlint uses the default ignore rules. | ||
*/ | ||
defaultIgnores: true, | ||
/* | ||
* Custom URL to show upon failure | ||
*/ | ||
helpUrl: | ||
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint', | ||
/* | ||
* Custom prompt configs | ||
*/ | ||
prompt: { | ||
messages: {}, | ||
questions: { | ||
type: { | ||
description: 'please input type:', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = Configuration; | ||
|
||
// module.exports = {extends: ['@commitlint/config-conventional']}; |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": [ | ||
"build", | ||
"lint", | ||
"test", | ||
"preversion", | ||
"prepare" | ||
] | ||
} | ||
} | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": [ | ||
"^build" | ||
], | ||
"outputs": [ | ||
"{projectRoot}/build" | ||
] | ||
}, | ||
"lint": { | ||
"dependsOn": [ | ||
"^lint" | ||
] | ||
}, | ||
"test": { | ||
"dependsOn": [ | ||
"^test" | ||
] | ||
}, | ||
"preversion": { | ||
"dependsOn": [ | ||
"^preversion" | ||
] | ||
}, | ||
"prepare": { | ||
"dependsOn": [ | ||
"^prepare" | ||
] | ||
} | ||
}, | ||
"$schema": "./node_modules/nx/schemas/nx-schema.json", | ||
"namedInputs": { | ||
"default": [ | ||
"{projectRoot}/**/*", | ||
"sharedGlobals" | ||
], | ||
"sharedGlobals": [], | ||
"production": [ | ||
"default" | ||
] | ||
} | ||
} |
Oops, something went wrong.