mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
ci: pr title lint job does not need to install all dependencies (#5124)
This commit is contained in:
33
tools/commitlint/.commitlintrc.json
Normal file
33
tools/commitlint/.commitlintrc.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-conventional"],
|
||||
"rules": {
|
||||
"scope-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"electron",
|
||||
"server",
|
||||
"core",
|
||||
"docs",
|
||||
"storybook",
|
||||
"component",
|
||||
"workspace",
|
||||
"env",
|
||||
"graphql",
|
||||
"cli",
|
||||
"hooks",
|
||||
"i18n",
|
||||
"native",
|
||||
"templates",
|
||||
"y-indexeddb",
|
||||
"y-provider",
|
||||
"debug",
|
||||
"storage",
|
||||
"infra",
|
||||
"plugin-cli",
|
||||
"sdk",
|
||||
"plugin"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
3
tools/commitlint/README.md
Normal file
3
tools/commitlint/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# commitlint
|
||||
|
||||
This package defines commitlint and it's dependencies, so that it can be used in a CI pipeline to minimize the installation time.
|
||||
10
tools/commitlint/package.json
Normal file
10
tools/commitlint/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@affine/commitlint-config",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^18.4.3",
|
||||
"@commitlint/config-conventional": "^18.4.3",
|
||||
"commitlint": "^18.4.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user