-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from jlegrone/feature/no-required-develop-branch
New aliases + documentation
- Loading branch information
Showing
9 changed files
with
481 additions
and
146 deletions.
There are no files selected for viewing
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
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,8 @@ | ||
{ | ||
"generator-semantic-module": { | ||
"packager": "yarn", | ||
"semantic-release": false, | ||
"commitizen-adapter": "cz-customizable", | ||
"commitlint-config": "@commitlint/config-angular" | ||
} | ||
} |
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,83 @@ | ||
/* eslint-env node */ | ||
|
||
const types = [ | ||
{ | ||
value: 'feat', | ||
name: 'feat: A new feature' | ||
}, | ||
{ | ||
value: 'fix', | ||
name: 'fix: A bug fix' | ||
}, | ||
{ | ||
value: 'docs', | ||
name: 'docs: Documentation only changes' | ||
}, | ||
{ | ||
value: 'style', | ||
name: `style: Changes that do not affect the meaning of the code | ||
(white-space, formatting, missing semi-colons, etc)` | ||
}, | ||
{ | ||
value: 'refactor', | ||
name: 'refactor: A code change that neither fixes a bug nor adds a feature' | ||
}, | ||
{ | ||
value: 'perf', | ||
name: 'perf: A code change that improves performance' | ||
}, | ||
{ | ||
value: 'test', | ||
name: 'test: Adding missing tests' | ||
}, | ||
{ | ||
value: 'chore', | ||
name: `chore: Changes to the build process or auxiliary tools | ||
and libraries such as documentation generation` | ||
}, | ||
{ | ||
value: 'revert', | ||
name: 'revert: Revert to a commit' | ||
} | ||
]; | ||
|
||
const scopes = [ | ||
'aliases', | ||
'branches', | ||
'contains', | ||
'up', | ||
'start', | ||
'hotfix', | ||
'wip', | ||
'undo', | ||
'amend', | ||
'fixup', | ||
'reword', | ||
'edit', | ||
'publish', | ||
'unpublish', | ||
'pushf', | ||
'cleanup', | ||
'cb', | ||
'log', | ||
'status', | ||
'branch-name', | ||
'develop-branch' | ||
].map(name => ({ name })); | ||
|
||
module.exports = { | ||
types, | ||
scopes, | ||
scopeOverrides: { | ||
chore: [ | ||
{ name: 'npm' } | ||
] | ||
}, | ||
allowCustomScopes: true, | ||
allowBreakingChanges: [ | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor' | ||
] | ||
}; |
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,21 @@ | ||
/* eslint-env node */ | ||
|
||
const { types, scopes, allowCustomScopes } = require('./commitizen.config'); | ||
|
||
const validTypes = types.map((type) => type.value); | ||
const validScopes = scopes.map((scope) => scope.name); | ||
const scopeValidationLevel = allowCustomScopes ? 1 : 2; | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
|
||
// Add your own rules. See http://marionebl.github.io/commitlint | ||
rules: { | ||
// Apply valid scopes and types | ||
'scope-enum': [scopeValidationLevel, 'always', validScopes], | ||
'type-enum': [2, 'always', validTypes], | ||
|
||
// Disable language rule | ||
lang: [0, 'always', 'eng'] | ||
} | ||
}; |
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.