-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement configuration through package.json (#75)
cz-conventional-changelog can now have its values (specifically all the defaults and maxLineWidth) through the config.commitizen key in the package.json file. The scope now automatically becomes lowercase (as is required for conventional changelogs) and is prompted on the same line (as it is always short and doesn't need an additional line). The subject question now indicates the total number of characters that are allowed based upon the maxLineWidth configuration (or 100 as it is now by default), the length of the type, and scope. Validation prevents entering more than the allowed number of characters with feedback of the number of characters entered. Subject will always have a lowercase first letter and strip any trailing dots (as is required by the conventional changelog standard). 'commitizen' and 'semantic-release' have been updated to the most recent versions (because of current vunderabilites) and the .travisci file has been updated to reflect newer node versions.
- Loading branch information
Showing
9 changed files
with
12,806 additions
and
62 deletions.
There are no files selected for viewing
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 @@ | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 80 | ||
trim_trailing_whitespace = true |
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,5 @@ | ||
{ | ||
"printWidth": 80, | ||
"endOfLine": "lf", | ||
"singleQuote": true | ||
} |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
sudo: false | ||
language: node_js | ||
cache: | ||
directories: | ||
- node_modules | ||
notifications: | ||
email: false | ||
|
||
node_js: | ||
- '4' | ||
before_install: | ||
- npm i -g npm@^2.0.0 | ||
before_script: | ||
- npm prune | ||
after_success: | ||
- npm run semantic-release | ||
- 10 | ||
- 8 | ||
- 6 | ||
- 4 | ||
|
||
jobs: | ||
include: | ||
- stage: release | ||
node_js: lts/* | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: | ||
- npm semantic-release | ||
|
||
branches: | ||
only: | ||
- master |
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.