Skip to content

Commit 492d330

Browse files
byCedricmarionebl
authored andcommitted
fix(load): add support for factory-callback parser presets (#834)
* refactor(load): remove custom parser preset factory code * test(load): add tests with all types of conventional presets * fix(load): add support for factory-callback parser presets
1 parent db33fe7 commit 492d330

File tree

14 files changed

+119
-75
lines changed

14 files changed

+119
-75
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
parserPreset: 'conventional-changelog-angular'
3+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "parser-preset-angular",
3+
"version": "1.0.0",
4+
"devDependencies": {
5+
"conventional-changelog-angular": "5.0.5"
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
parserPreset: 'conventional-changelog-conventionalcommits'
3+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "parser-preset-conventionalcommits",
3+
"version": "1.0.0",
4+
"devDependencies": {
5+
"conventional-changelog-conventionalcommits": "4.2.1"
6+
}
7+
}

β€Ž@commitlint/load/fixtures/parser-preset-factory/commitlint.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

β€Ž@commitlint/load/fixtures/parser-preset-factory/conventional-changelog-factory.js

Lines changed: 0 additions & 10 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
parserPreset: 'conventional-changelog-atom'
3+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "@second-extend/recursive-parser-preset-conventional-atom",
3+
"version": "1.0.0",
4+
"devDependencies": {
5+
"conventional-changelog-atom": "2.0.3"
6+
}
7+
}

0 commit comments

Comments
Β (0)