Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from commitizen:master #20

Merged
merged 9 commits into from Apr 30, 2020
Merged
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -142,8 +142,7 @@ Update `.git/hooks/prepare-commit-msg` with the following code:

```
#!/bin/bash
exec < /dev/tty
node_modules/.bin/git-cz --hook
exec < /dev/tty && node_modules/.bin/git-cz --hook || true
```

##### Husky
Expand All @@ -152,7 +151,7 @@ For `husky` users, add the following configuration to the project's `package.jso
```
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
}
}
```
Expand Down Expand Up @@ -233,7 +232,7 @@ bootstrap({

{
"name": "company-commit",
"bin": "./my-cli.js"
"bin": "./my-cli.js",
"dependencies": {
"commitizen": "^2.7.6",
"cz-conventional-changelog": "^1.1.5",
Expand Down Expand Up @@ -263,6 +262,7 @@ We know that every project and build process has different requirements so we've
- [vscode-commitizen](https://github.com/KnisterPeter/vscode-commitizen)
- [cz-emoji](https://github.com/ngryman/cz-emoji)
- [cz-adapter-eslint](https://www.npmjs.com/package/cz-adapter-eslint)
- [commitiquette](https://github.com/martinmcwhorter/commitiquette)

To create an adapter, just fork one of these great adapters and modify it to suit your needs. We pass you an instance of [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/) but you can capture input using whatever means necessary. Just call the `commit` callback with a string and we'll be happy. Publish it to npm, and you'll be all set!

Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
parameters:
name: macOS
pool:
vmImage: 'macOS-10.13'
vmImage: 'macOS-latest'

- template: jobs/build.yml # Template reference
parameters:
Expand All @@ -20,5 +20,5 @@ jobs:
parameters:
name: Windows
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-latest'
sign: true # Extra step on Windows only
13 changes: 13 additions & 0 deletions babel.config.js
@@ -0,0 +1,13 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "10",
},
},
],
],
plugins: ["@babel/plugin-proposal-object-rest-spread", "istanbul"],
};