-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
14 changed files
with
119 additions
and
75 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
@commitlint/load/fixtures/parser-preset-angular/commitlint.config.js
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,3 @@ | ||
module.exports = { | ||
parserPreset: 'conventional-changelog-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "parser-preset-angular", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"conventional-changelog-angular": "5.0.5" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
@commitlint/load/fixtures/parser-preset-conventionalcommits/commitlint.config.js
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,3 @@ | ||
module.exports = { | ||
parserPreset: 'conventional-changelog-conventionalcommits' | ||
}; |
7 changes: 7 additions & 0 deletions
7
@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json
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,7 @@ | ||
{ | ||
"name": "parser-preset-conventionalcommits", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"conventional-changelog-conventionalcommits": "4.2.1" | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
@commitlint/load/fixtures/parser-preset-factory/commitlint.config.js
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
@commitlint/load/fixtures/parser-preset-factory/conventional-changelog-factory.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ixtures/recursive-parser-preset-conventional-atom/first-extended/second-extended/index.js
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,3 @@ | ||
module.exports = { | ||
parserPreset: 'conventional-changelog-atom' | ||
}; |
7 changes: 7 additions & 0 deletions
7
...res/recursive-parser-preset-conventional-atom/first-extended/second-extended/package.json
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,7 @@ | ||
{ | ||
"name": "@second-extend/recursive-parser-preset-conventional-atom", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"conventional-changelog-atom": "2.0.3" | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
...ve-parser-preset-factory/first-extended/second-extended/conventional-changelog-factory.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...int/load/fixtures/recursive-parser-preset-factory/first-extended/second-extended/index.js
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