feat: adding linter for commits
This commit is contained in:
887
node_modules/@commitlint/cli/CHANGELOG.md
generated
vendored
Normal file
887
node_modules/@commitlint/cli/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,887 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* simplify config resolution ([#2398](https://github.com/conventional-changelog/commitlint/issues/2398)) ([8a8384f](https://github.com/conventional-changelog/commitlint/commit/8a8384f3c18954447cb633e76a573e1db71a1440)), closes [#327](https://github.com/conventional-changelog/commitlint/issues/327)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [13.2.1](https://github.com/conventional-changelog/commitlint/compare/v13.2.0...v13.2.1) (2021-10-09)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove hard coded comment char with linting `COMMIT_EDIT_MSG` ([#2618](https://github.com/conventional-changelog/commitlint/issues/2618)) ([5badf6d](https://github.com/conventional-changelog/commitlint/commit/5badf6dc08116ed3557e6c780e55764b4f07ca67)), closes [#2351](https://github.com/conventional-changelog/commitlint/issues/2351)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
|
||||
|
||||
|
||||
* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* minimum node version is 12
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency fs-extra to v10 ([#2575](https://github.com/conventional-changelog/commitlint/issues/2575)) ([d47d2b5](https://github.com/conventional-changelog/commitlint/commit/d47d2b595b980adadd4fb8ff198c1914caeff18f))
|
||||
* update dependency yargs to v17 ([#2574](https://github.com/conventional-changelog/commitlint/issues/2574)) ([81c38dd](https://github.com/conventional-changelog/commitlint/commit/81c38ddf15f239b525f673b26b2ee6606f2ee8f6))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency execa to v5 ([#2341](https://github.com/conventional-changelog/commitlint/issues/2341)) ([f349df9](https://github.com/conventional-changelog/commitlint/commit/f349df90f08096a9bcad46b5e55b411aac327a24))
|
||||
* update dependency yargs to v16 ([204f36d](https://github.com/conventional-changelog/commitlint/commit/204f36d0a522afaf3a88739b401aea15ffa0b891))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cli:** implement print-config cli flag ([#2391](https://github.com/conventional-changelog/commitlint/issues/2391)) ([8626883](https://github.com/conventional-changelog/commitlint/commit/86268833946dea9dcf1c15459456cd4427d17835))
|
||||
* **load:** allow specifying helpUrl via config ([#2180](https://github.com/conventional-changelog/commitlint/issues/2180)) ([d6795a3](https://github.com/conventional-changelog/commitlint/commit/d6795a3c4633ba6efd7a0fcff48339dc291cd832))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove default value from edit option [#2065](https://github.com/conventional-changelog/commitlint/issues/2065) ([3d4116d](https://github.com/conventional-changelog/commitlint/commit/3d4116d044a2f5149a9c9c1d9fa35abf5e232479))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency execa to v4 ([#1936](https://github.com/conventional-changelog/commitlint/issues/1936)) ([8efb441](https://github.com/conventional-changelog/commitlint/commit/8efb44193058d286f7325327a6d33936b273ec91))
|
||||
* update dependency fs-extra to v9 ([#1018](https://github.com/conventional-changelog/commitlint/issues/1018)) ([2df49fa](https://github.com/conventional-changelog/commitlint/commit/2df49fac907993ae78199a1012e918b0e2ff5621))
|
||||
* update dependency get-stdin to v8 ([#1938](https://github.com/conventional-changelog/commitlint/issues/1938)) ([f94a5c8](https://github.com/conventional-changelog/commitlint/commit/f94a5c82861523aa1cf407ffe062f99ecbbfb4e4))
|
||||
|
||||
|
||||
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* remove node 8 from circle-ci checks
|
||||
|
||||
also remove node 13 because we do not support experimental versions
|
||||
|
||||
* docs: update node v10 to latest LTS 10 version
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency chalk to v4 ([#1275](https://github.com/conventional-changelog/commitlint/issues/1275)) ([a5d8fa1](https://github.com/conventional-changelog/commitlint/commit/a5d8fa118e8221361f14f5fd2b21d7aaad008a27))
|
||||
* update dependency regenerator-runtime to v0.13.5 ([#1017](https://github.com/conventional-changelog/commitlint/issues/1017)) ([9c4fdf1](https://github.com/conventional-changelog/commitlint/commit/9c4fdf1b5f42677422532dad655af9aed9b43881))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing @babel/runtime dep [#1738](https://github.com/conventional-changelog/commitlint/issues/1738) ([#1754](https://github.com/conventional-changelog/commitlint/issues/1754)) ([09afcd6](https://github.com/conventional-changelog/commitlint/commit/09afcd647a2c1d00538cf1c970e3790d936111f8))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** add missing regenerator-runtime to dependencies ([#919](https://github.com/conventional-changelog/commitlint/issues/919)) ([ee5eac9](https://github.com/conventional-changelog/commitlint/commit/ee5eac98fa97ba5ba17030c8d2705aee5c7f3a3a))
|
||||
* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.5](https://github.com/conventional-changelog/commitlint/compare/v8.3.4...v8.3.5) (2020-01-15)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.1](https://github.com/conventional-changelog/commitlint/compare/v8.3.0...v8.3.1) (2019-10-16)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cli:** add helpurl flag ([#789](https://github.com/conventional-changelog/commitlint/issues/789)) ([75cef4e](https://github.com/conventional-changelog/commitlint/commit/75cef4e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* pass defaultIgnores from configuration in @commitlint/cli ([#771](https://github.com/conventional-changelog/commitlint/issues/771)) ([a259014](https://github.com/conventional-changelog/commitlint/commit/a259014))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* pass ignores from configuration in @commitlint/cli ([#668](https://github.com/conventional-changelog/commitlint/issues/668)) ([da99aaa](https://github.com/conventional-changelog/commitlint/commit/da99aaa))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.6.1](https://github.com/conventional-changelog/commitlint/compare/v7.6.0...v7.6.1) (2019-05-09)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* avoid excessive help text [#606](https://github.com/conventional-changelog/commitlint/issues/606) ([#637](https://github.com/conventional-changelog/commitlint/issues/637)) ([8f3c3b1](https://github.com/conventional-changelog/commitlint/commit/8f3c3b1))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* adds support for plugins ([#228](https://github.com/conventional-changelog/commitlint/issues/228)) ([#588](https://github.com/conventional-changelog/commitlint/issues/588)) ([cea4564](https://github.com/conventional-changelog/commitlint/commit/cea4564))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** replace old links with new organisation links ([#578](https://github.com/conventional-changelog/commitlint/issues/578)) ([4075903](https://github.com/conventional-changelog/commitlint/commit/4075903))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.5.1](https://github.com/conventional-changelog/commitlint/compare/v7.5.0...v7.5.1) (2019-02-09)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.5.0"></a>
|
||||
# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** avoid linebreak in empty input ([#523](https://github.com/conventional-changelog/commitlint/issues/523)) ([3141882](https://github.com/conventional-changelog/commitlint/commit/3141882))
|
||||
* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
|
||||
* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760))
|
||||
* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
|
||||
* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.4.0"></a>
|
||||
# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="7.3.2"></a>
|
||||
## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="7.3.1"></a>
|
||||
## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="7.3.0"></a>
|
||||
# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add fallback with husky git params to deprecation handling ([#498](https://github.com/conventional-changelog/commitlint/issues/498)) ([5a34b8c](https://github.com/conventional-changelog/commitlint/commit/5a34b8c))
|
||||
* avoid truncated output on macOS ([#503](https://github.com/conventional-changelog/commitlint/issues/503)) ([3192368](https://github.com/conventional-changelog/commitlint/commit/3192368))
|
||||
* respect String.protoype.repeat API contract ([f27e7ac](https://github.com/conventional-changelog/commitlint/commit/f27e7ac))
|
||||
* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
|
||||
* use correct label for failing empty subjects ([#481](https://github.com/conventional-changelog/commitlint/issues/481)) ([2e7e34d](https://github.com/conventional-changelog/commitlint/commit/2e7e34d)), closes [#476](https://github.com/conventional-changelog/commitlint/issues/476)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
|
||||
* warn on empty config ([#491](https://github.com/conventional-changelog/commitlint/issues/491)) ([b6bd36e](https://github.com/conventional-changelog/commitlint/commit/b6bd36e)), closes [#107](https://github.com/conventional-changelog/commitlint/issues/107) [#107](https://github.com/conventional-changelog/commitlint/issues/107)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.2.1"></a>
|
||||
## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.2.0"></a>
|
||||
# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **cli:** add format option for report output ([1ecf097](https://github.com/conventional-changelog/commitlint/commit/1ecf097))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.1.2"></a>
|
||||
## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="7.1.0"></a>
|
||||
# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.2.0"></a>
|
||||
# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="6.1.1"></a>
|
||||
## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.1.0"></a>
|
||||
# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add "--config" option ([#261](https://github.com/conventional-changelog/commitlint/issues/261)) ([2c03ec6](https://github.com/conventional-changelog/commitlint/commit/2c03ec6))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="6.0.5"></a>
|
||||
## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.0.4"></a>
|
||||
## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.0.3"></a>
|
||||
## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.0.2"></a>
|
||||
## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.0.1"></a>
|
||||
## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="6.0.0"></a>
|
||||
# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* correctly resolve parserOpts [#115](https://github.com/conventional-changelog/commitlint/issues/115) [#95](https://github.com/conventional-changelog/commitlint/issues/95) ([1353dd5](https://github.com/conventional-changelog/commitlint/commit/1353dd5))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="5.2.6"></a>
|
||||
## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="5.2.5"></a>
|
||||
## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="5.2.4"></a>
|
||||
## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="5.2.3"></a>
|
||||
## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/conventional-changelog/commitlint/commit/c62bd41)), closes [#103](https://github.com/conventional-changelog/commitlint/issues/103) [#175](https://github.com/conventional-changelog/commitlint/issues/175)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="5.2.0"></a>
|
||||
# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="5.1.1"></a>
|
||||
## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="5.1.0"></a>
|
||||
# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="5.0.1"></a>
|
||||
## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="4.3.0"></a>
|
||||
# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="4.2.2"></a>
|
||||
## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="4.2.1"></a>
|
||||
## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* nicer error messages ([#93](https://github.com/conventional-changelog/commitlint/issues/93)) ([dcfad61](https://github.com/conventional-changelog/commitlint/commit/dcfad61))
|
||||
* **core:** consider config outside of current git repo ([f7234b6](https://github.com/conventional-changelog/commitlint/commit/f7234b6))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="4.2.0"></a>
|
||||
# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* edit flag now accepts the path to the commit file ([c881433](https://github.com/conventional-changelog/commitlint/commit/c881433)), closes [#40](https://github.com/conventional-changelog/commitlint/issues/40)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="4.1.1"></a>
|
||||
## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="4.1.0"></a>
|
||||
# [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/cli
|
||||
|
||||
<a name="4.0.0"></a>
|
||||
# [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* enable alternative config formats ([#83](https://github.com/conventional-changelog/commitlint/issues/83)) ([91968b8](https://github.com/conventional-changelog/commitlint/commit/91968b8)), closes [#73](https://github.com/conventional-changelog/commitlint/issues/73)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* discontinue support of conventional-changelog-lintrc
|
||||
|
||||
* test: make git setup reliable
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.2.0"></a>
|
||||
# 3.2.0 (2017-09-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add preset parser ([5cd2335](https://github.com/conventional-changelog/commitlint/commit/5cd2335))
|
||||
|
||||
|
||||
|
||||
<a name="3.1.3"></a>
|
||||
## 3.1.3 (2017-08-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62)
|
||||
|
||||
|
||||
|
||||
<a name="3.1.2"></a>
|
||||
## 3.1.2 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.1.1"></a>
|
||||
## 3.1.1 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.4"></a>
|
||||
## 3.0.4 (2017-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
|
||||
|
||||
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
## 3.0.3 (2017-07-16)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.1.3"></a>
|
||||
## 3.1.3 (2017-08-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62)
|
||||
|
||||
|
||||
|
||||
<a name="3.1.2"></a>
|
||||
## 3.1.2 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.1.1"></a>
|
||||
## 3.1.1 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.4"></a>
|
||||
## 3.0.4 (2017-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
|
||||
|
||||
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
## 3.0.3 (2017-07-16)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.1.2"></a>
|
||||
## 3.1.2 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.1.1"></a>
|
||||
## 3.1.1 (2017-08-07)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.4"></a>
|
||||
## 3.0.4 (2017-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
|
||||
|
||||
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
## 3.0.3 (2017-07-16)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.4"></a>
|
||||
## 3.0.4 (2017-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26))
|
||||
|
||||
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
## 3.0.3 (2017-07-16)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
## 3.0.3 (2017-07-16)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
## 3.0.2 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.1"></a>
|
||||
## 3.0.1 (2017-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff))
|
||||
* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.1"></a>
|
||||
## 3.0.1 (2017-07-11)
|
||||
|
||||
|
||||
|
||||
<a name="3.0.0"></a>
|
||||
# 3.0.0 (2017-07-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8))
|
||||
* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="3.0.0"></a>
|
||||
# 3.0.0 (2017-07-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8))
|
||||
* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a))
|
16
node_modules/@commitlint/cli/README.md
generated
vendored
Normal file
16
node_modules/@commitlint/cli/README.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
> Lint commit messages
|
||||
|
||||
<p align="center">
|
||||
<img width="750" src="https://conventional-changelog.github.io/commitlint/assets/commitlint.svg">
|
||||
</p>
|
||||
|
||||
# @commitlint/cli
|
||||
|
||||
## Getting started
|
||||
|
||||
```
|
||||
npm install --save-dev @commitlint/cli @commitlint/config-angular
|
||||
echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
|
||||
```
|
||||
|
||||
Consult [docs/cli](https://conventional-changelog.github.io/commitlint/#/reference-cli) for comprehensive documentation.
|
2
node_modules/@commitlint/cli/cli.js
generated
vendored
Executable file
2
node_modules/@commitlint/cli/cli.js
generated
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require('./lib/cli.js');
|
3
node_modules/@commitlint/cli/index.js
generated
vendored
Normal file
3
node_modules/@commitlint/cli/index.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = path.join(__dirname, 'cli.js');
|
6
node_modules/@commitlint/cli/lib/cli-error.d.ts
generated
vendored
Normal file
6
node_modules/@commitlint/cli/lib/cli-error.d.ts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare class CliError extends Error {
|
||||
__proto__: ErrorConstructor;
|
||||
type: string;
|
||||
constructor(message: string, type: string);
|
||||
}
|
||||
//# sourceMappingURL=cli-error.d.ts.map
|
1
node_modules/@commitlint/cli/lib/cli-error.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/cli-error.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-error.d.ts","sourceRoot":"","sources":["../src/cli-error.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAS,SAAQ,KAAK;IAClC,SAAS,mBAAS;IAEX,IAAI,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAOzC"}
|
13
node_modules/@commitlint/cli/lib/cli-error.js
generated
vendored
Normal file
13
node_modules/@commitlint/cli/lib/cli-error.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CliError = void 0;
|
||||
class CliError extends Error {
|
||||
constructor(message, type) {
|
||||
super(message);
|
||||
this.__proto__ = Error;
|
||||
this.type = type;
|
||||
Object.setPrototypeOf(this, CliError.prototype);
|
||||
}
|
||||
}
|
||||
exports.CliError = CliError;
|
||||
//# sourceMappingURL=cli-error.js.map
|
1
node_modules/@commitlint/cli/lib/cli-error.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/cli-error.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli-error.js","sourceRoot":"","sources":["../src/cli-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAS,SAAQ,KAAK;IAKlC,YAAY,OAAe,EAAE,IAAY;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;QALhB,cAAS,GAAG,KAAK,CAAC;QAOjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;CACD;AAZD,4BAYC"}
|
2
node_modules/@commitlint/cli/lib/cli.d.ts
generated
vendored
Normal file
2
node_modules/@commitlint/cli/lib/cli.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=cli.d.ts.map
|
1
node_modules/@commitlint/cli/lib/cli.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/cli.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
340
node_modules/@commitlint/cli/lib/cli.js
generated
vendored
Normal file
340
node_modules/@commitlint/cli/lib/cli.js
generated
vendored
Normal file
@ -0,0 +1,340 @@
|
||||
"use strict";
|
||||
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||
var m = o[Symbol.asyncIterator], i;
|
||||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const load_1 = __importDefault(require("@commitlint/load"));
|
||||
const lint_1 = __importDefault(require("@commitlint/lint"));
|
||||
const read_1 = __importDefault(require("@commitlint/read"));
|
||||
const isFunction_1 = __importDefault(require("lodash/isFunction"));
|
||||
const resolve_from_1 = __importDefault(require("resolve-from"));
|
||||
const resolve_global_1 = __importDefault(require("resolve-global"));
|
||||
const yargs_1 = __importDefault(require("yargs"));
|
||||
const util_1 = __importDefault(require("util"));
|
||||
const cli_error_1 = require("./cli-error");
|
||||
const pkg = require('../package');
|
||||
const cli = yargs_1.default
|
||||
.options({
|
||||
color: {
|
||||
alias: 'c',
|
||||
default: true,
|
||||
description: 'toggle colored output',
|
||||
type: 'boolean',
|
||||
},
|
||||
config: {
|
||||
alias: 'g',
|
||||
description: 'path to the config file',
|
||||
type: 'string',
|
||||
},
|
||||
'print-config': {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'print resolved config',
|
||||
},
|
||||
cwd: {
|
||||
alias: 'd',
|
||||
default: process.cwd(),
|
||||
defaultDescription: '(Working Directory)',
|
||||
description: 'directory to execute in',
|
||||
type: 'string',
|
||||
},
|
||||
edit: {
|
||||
alias: 'e',
|
||||
description: 'read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG',
|
||||
type: 'string',
|
||||
},
|
||||
env: {
|
||||
alias: 'E',
|
||||
description: 'check message in the file at path given by environment variable value',
|
||||
type: 'string',
|
||||
},
|
||||
extends: {
|
||||
alias: 'x',
|
||||
description: 'array of shareable configurations to extend',
|
||||
type: 'array',
|
||||
},
|
||||
'help-url': {
|
||||
alias: 'H',
|
||||
type: 'string',
|
||||
description: 'help url in error message',
|
||||
},
|
||||
from: {
|
||||
alias: 'f',
|
||||
description: 'lower end of the commit range to lint; applies if edit=false',
|
||||
type: 'string',
|
||||
},
|
||||
format: {
|
||||
alias: 'o',
|
||||
description: 'output format of the results',
|
||||
type: 'string',
|
||||
},
|
||||
'parser-preset': {
|
||||
alias: 'p',
|
||||
description: 'configuration preset to use for conventional-commits-parser',
|
||||
type: 'string',
|
||||
},
|
||||
quiet: {
|
||||
alias: 'q',
|
||||
default: false,
|
||||
description: 'toggle console output',
|
||||
type: 'boolean',
|
||||
},
|
||||
to: {
|
||||
alias: 't',
|
||||
description: 'upper end of the commit range to lint; applies if edit=false',
|
||||
type: 'string',
|
||||
},
|
||||
verbose: {
|
||||
alias: 'V',
|
||||
type: 'boolean',
|
||||
description: 'enable verbose output for reports without problems',
|
||||
},
|
||||
})
|
||||
.version('version', 'display version information', `${pkg.name}@${pkg.version}`)
|
||||
.alias('v', 'version')
|
||||
.help('help')
|
||||
.alias('h', 'help')
|
||||
.usage(`${pkg.name}@${pkg.version} - ${pkg.description}\n`)
|
||||
.usage(`[input] reads from stdin if --edit, --env, --from and --to are omitted`)
|
||||
.strict();
|
||||
main(cli.argv).catch((err) => {
|
||||
setTimeout(() => {
|
||||
if (err.type === pkg.name) {
|
||||
process.exit(1);
|
||||
}
|
||||
throw err;
|
||||
}, 0);
|
||||
});
|
||||
async function stdin() {
|
||||
var e_1, _a;
|
||||
let result = '';
|
||||
if (process.stdin.isTTY) {
|
||||
return result;
|
||||
}
|
||||
process.stdin.setEncoding('utf8');
|
||||
try {
|
||||
for (var _b = __asyncValues(process.stdin), _c; _c = await _b.next(), !_c.done;) {
|
||||
const chunk = _c.value;
|
||||
result += chunk;
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (_c && !_c.done && (_a = _b.return)) await _a.call(_b);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
return result;
|
||||
}
|
||||
async function resolveArgs(args) {
|
||||
return typeof args.then === 'function' ? await args : args;
|
||||
}
|
||||
async function main(args) {
|
||||
var _a;
|
||||
const options = await resolveArgs(args);
|
||||
if (typeof options.edit === 'undefined') {
|
||||
options.edit = false;
|
||||
}
|
||||
const raw = options._;
|
||||
const flags = normalizeFlags(options);
|
||||
if (flags['print-config']) {
|
||||
const loaded = await (0, load_1.default)(getSeed(flags), {
|
||||
cwd: flags.cwd,
|
||||
file: flags.config,
|
||||
});
|
||||
console.log(util_1.default.inspect(loaded, false, null, options.color));
|
||||
return;
|
||||
}
|
||||
const fromStdin = checkFromStdin(raw, flags);
|
||||
const input = await (fromStdin
|
||||
? stdin()
|
||||
: (0, read_1.default)({
|
||||
to: flags.to,
|
||||
from: flags.from,
|
||||
edit: flags.edit,
|
||||
cwd: flags.cwd,
|
||||
}));
|
||||
const messages = (Array.isArray(input) ? input : [input])
|
||||
.filter((message) => typeof message === 'string')
|
||||
.filter((message) => message.trim() !== '')
|
||||
.filter(Boolean);
|
||||
if (messages.length === 0 && !checkFromRepository(flags)) {
|
||||
const err = new cli_error_1.CliError('[input] is required: supply via stdin, or --env or --edit or --from and --to', pkg.name);
|
||||
yargs_1.default.showHelp('log');
|
||||
console.log(err.message);
|
||||
throw err;
|
||||
}
|
||||
const loaded = await (0, load_1.default)(getSeed(flags), {
|
||||
cwd: flags.cwd,
|
||||
file: flags.config,
|
||||
});
|
||||
const parserOpts = selectParserOpts(loaded.parserPreset);
|
||||
const opts = {
|
||||
parserOpts: {},
|
||||
plugins: {},
|
||||
ignores: [],
|
||||
defaultIgnores: true,
|
||||
};
|
||||
if (parserOpts) {
|
||||
opts.parserOpts = parserOpts;
|
||||
}
|
||||
if (loaded.plugins) {
|
||||
opts.plugins = loaded.plugins;
|
||||
}
|
||||
if (loaded.ignores) {
|
||||
opts.ignores = loaded.ignores;
|
||||
}
|
||||
if (loaded.defaultIgnores === false) {
|
||||
opts.defaultIgnores = false;
|
||||
}
|
||||
const format = loadFormatter(loaded, flags);
|
||||
// Strip comments if reading from `.git/COMMIT_EDIT_MSG` using the
|
||||
// commentChar from the parser preset falling back to a `#` if that is not
|
||||
// set
|
||||
if (flags.edit && typeof opts.parserOpts.commentChar !== 'string') {
|
||||
opts.parserOpts.commentChar = '#';
|
||||
}
|
||||
const results = await Promise.all(messages.map((message) => (0, lint_1.default)(message, loaded.rules, opts)));
|
||||
if (Object.keys(loaded.rules).length === 0) {
|
||||
let input = '';
|
||||
if (results.length !== 0) {
|
||||
input = results[0].input;
|
||||
}
|
||||
results.splice(0, results.length, {
|
||||
valid: false,
|
||||
errors: [
|
||||
{
|
||||
level: 2,
|
||||
valid: false,
|
||||
name: 'empty-rules',
|
||||
message: [
|
||||
'Please add rules to your `commitlint.config.js`',
|
||||
' - Getting started guide: https://git.io/fhHij',
|
||||
' - Example config: https://git.io/fhHip',
|
||||
].join('\n'),
|
||||
},
|
||||
],
|
||||
warnings: [],
|
||||
input,
|
||||
});
|
||||
}
|
||||
const report = results.reduce((info, result) => {
|
||||
info.valid = result.valid ? info.valid : false;
|
||||
info.errorCount += result.errors.length;
|
||||
info.warningCount += result.warnings.length;
|
||||
info.results.push(result);
|
||||
return info;
|
||||
}, {
|
||||
valid: true,
|
||||
errorCount: 0,
|
||||
warningCount: 0,
|
||||
results: [],
|
||||
});
|
||||
const helpUrl = ((_a = flags['help-url']) === null || _a === void 0 ? void 0 : _a.trim()) || loaded.helpUrl;
|
||||
const output = format(report, {
|
||||
color: flags.color,
|
||||
verbose: flags.verbose,
|
||||
helpUrl,
|
||||
});
|
||||
if (!flags.quiet && output !== '') {
|
||||
console.log(output);
|
||||
}
|
||||
if (!report.valid) {
|
||||
throw new cli_error_1.CliError(output, pkg.name);
|
||||
}
|
||||
}
|
||||
function checkFromStdin(input, flags) {
|
||||
return input.length === 0 && !checkFromRepository(flags);
|
||||
}
|
||||
function checkFromRepository(flags) {
|
||||
return checkFromHistory(flags) || checkFromEdit(flags);
|
||||
}
|
||||
function checkFromEdit(flags) {
|
||||
return Boolean(flags.edit) || Boolean(flags.env);
|
||||
}
|
||||
function checkFromHistory(flags) {
|
||||
return typeof flags.from === 'string' || typeof flags.to === 'string';
|
||||
}
|
||||
function normalizeFlags(flags) {
|
||||
const edit = getEditValue(flags);
|
||||
return Object.assign(Object.assign({}, flags), { edit });
|
||||
}
|
||||
function getEditValue(flags) {
|
||||
if (flags.env) {
|
||||
if (!(flags.env in process.env)) {
|
||||
throw new Error(`Received '${flags.env}' as value for -E | --env, but environment variable '${flags.env}' is not available globally`);
|
||||
}
|
||||
return process.env[flags.env];
|
||||
}
|
||||
const { edit } = flags;
|
||||
// If the edit flag is set but empty (i.e '-e') we default
|
||||
// to .git/COMMIT_EDITMSG
|
||||
if (edit === '') {
|
||||
return true;
|
||||
}
|
||||
if (typeof edit === 'boolean') {
|
||||
return edit;
|
||||
}
|
||||
// The recommended method to specify -e with husky was `commitlint -e $HUSKY_GIT_PARAMS`
|
||||
// This does not work properly with win32 systems, where env variable declarations
|
||||
// use a different syntax
|
||||
// See https://github.com/conventional-changelog/commitlint/issues/103 for details
|
||||
// This has been superceded by the `-E GIT_PARAMS` / `-E HUSKY_GIT_PARAMS`
|
||||
const isGitParams = edit === '$GIT_PARAMS' || edit === '%GIT_PARAMS%';
|
||||
const isHuskyParams = edit === '$HUSKY_GIT_PARAMS' || edit === '%HUSKY_GIT_PARAMS%';
|
||||
if (isGitParams || isHuskyParams) {
|
||||
console.warn(`Using environment variable syntax (${edit}) in -e |\
|
||||
--edit is deprecated. Use '{-E|--env} HUSKY_GIT_PARAMS instead'`);
|
||||
if (isGitParams && 'GIT_PARAMS' in process.env) {
|
||||
return process.env.GIT_PARAMS;
|
||||
}
|
||||
if ('HUSKY_GIT_PARAMS' in process.env) {
|
||||
return process.env.HUSKY_GIT_PARAMS;
|
||||
}
|
||||
throw new Error(`Received ${edit} as value for -e | --edit, but GIT_PARAMS or HUSKY_GIT_PARAMS are not available globally.`);
|
||||
}
|
||||
return edit;
|
||||
}
|
||||
function getSeed(flags) {
|
||||
const n = (flags.extends || []).filter((i) => typeof i === 'string');
|
||||
return n.length > 0
|
||||
? { extends: n, parserPreset: flags['parser-preset'] }
|
||||
: { parserPreset: flags['parser-preset'] };
|
||||
}
|
||||
function selectParserOpts(parserPreset) {
|
||||
if (typeof parserPreset !== 'object') {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof parserPreset.parserOpts !== 'object') {
|
||||
return undefined;
|
||||
}
|
||||
return parserPreset.parserOpts;
|
||||
}
|
||||
function loadFormatter(config, flags) {
|
||||
const moduleName = flags.format || config.formatter || '@commitlint/format';
|
||||
const modulePath = resolve_from_1.default.silent(__dirname, moduleName) ||
|
||||
resolve_from_1.default.silent(flags.cwd, moduleName) ||
|
||||
resolve_global_1.default.silent(moduleName);
|
||||
if (modulePath) {
|
||||
const moduleInstance = require(modulePath);
|
||||
if ((0, isFunction_1.default)(moduleInstance.default)) {
|
||||
return moduleInstance.default;
|
||||
}
|
||||
return moduleInstance;
|
||||
}
|
||||
throw new Error(`Using format ${moduleName}, but cannot find the module.`);
|
||||
}
|
||||
// Catch unhandled rejections globally
|
||||
process.on('unhandledRejection', (reason, promise) => {
|
||||
console.log('Unhandled Rejection at: Promise ', promise, ' reason: ', reason);
|
||||
throw reason;
|
||||
});
|
||||
//# sourceMappingURL=cli.js.map
|
1
node_modules/@commitlint/cli/lib/cli.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/cli.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
25
node_modules/@commitlint/cli/lib/types.d.ts
generated
vendored
Normal file
25
node_modules/@commitlint/cli/lib/types.d.ts
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
export interface CliFlags {
|
||||
color: boolean;
|
||||
config?: string;
|
||||
cwd: string;
|
||||
edit?: string | boolean;
|
||||
env?: string;
|
||||
extends?: (string | number)[];
|
||||
help?: boolean;
|
||||
'help-url'?: string;
|
||||
from?: string;
|
||||
format?: string;
|
||||
'parser-preset'?: string;
|
||||
quiet: boolean;
|
||||
to?: string;
|
||||
version?: boolean;
|
||||
verbose?: boolean;
|
||||
'print-config'?: boolean;
|
||||
_: (string | number)[];
|
||||
$0: string;
|
||||
}
|
||||
export interface Seed {
|
||||
extends?: string[];
|
||||
parserPreset?: string;
|
||||
}
|
||||
//# sourceMappingURL=types.d.ts.map
|
1
node_modules/@commitlint/cli/lib/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/types.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,IAAI;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
3
node_modules/@commitlint/cli/lib/types.js
generated
vendored
Normal file
3
node_modules/@commitlint/cli/lib/types.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=types.js.map
|
1
node_modules/@commitlint/cli/lib/types.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/cli/lib/types.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
21
node_modules/@commitlint/cli/license.md
generated
vendored
Normal file
21
node_modules/@commitlint/cli/license.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 - present Mario Nebl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
59
node_modules/@commitlint/cli/package.json
generated
vendored
Normal file
59
node_modules/@commitlint/cli/package.json
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "@commitlint/cli",
|
||||
"version": "15.0.0",
|
||||
"description": "Lint your commit messages",
|
||||
"files": [
|
||||
"index.js",
|
||||
"cli.js",
|
||||
"lib"
|
||||
],
|
||||
"bin": {
|
||||
"commitlint": "./cli.js"
|
||||
},
|
||||
"scripts": {
|
||||
"deps": "dep-check",
|
||||
"pkg": "pkg-check"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=v12"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/commitlint.git",
|
||||
"directory": "@commitlint/cli"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/conventional-changelog/commitlint/issues"
|
||||
},
|
||||
"homepage": "https://commitlint.js.org/",
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"commitlint",
|
||||
"cli"
|
||||
],
|
||||
"author": {
|
||||
"name": "Mario Nebl",
|
||||
"email": "hello@herebecode.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@commitlint/test": "^15.0.0",
|
||||
"@commitlint/utils": "^15.0.0",
|
||||
"@types/node": "12.20.37",
|
||||
"@types/yargs": "^17.0.0",
|
||||
"execa": "^5.0.0",
|
||||
"fs-extra": "^10.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/format": "^15.0.0",
|
||||
"@commitlint/lint": "^15.0.0",
|
||||
"@commitlint/load": "^15.0.0",
|
||||
"@commitlint/read": "^15.0.0",
|
||||
"@commitlint/types": "^15.0.0",
|
||||
"lodash": "^4.17.19",
|
||||
"resolve-from": "5.0.0",
|
||||
"resolve-global": "1.0.0",
|
||||
"yargs": "^17.0.0"
|
||||
},
|
||||
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca"
|
||||
}
|
Reference in New Issue
Block a user