feat(tools): Add commitizen and cz-freecodecamp (#15589)

This commit is contained in:
mrugesh mohapatra
2017-07-06 03:19:58 +05:30
committed by Berkeley Martinez
parent a9240a4249
commit c0e876142a
3 changed files with 9542 additions and 5 deletions

View File

@ -316,13 +316,22 @@ nothing to commit, working directory clean
add .` to add all unstaged files. Take care, though, because you can
accidentally add files you don't want added. Review your `git status` first.
6. Commit your edits: `git commit -m "Brief Description of Commit"`. Do not add the issue number in the commit message.
6. Commit your edits (follow any one of the below methods):
a. Using the inbuilt script (_recommended_):
- We have a [tool](https://commitizen.github.io/cz-cli/) that helps you to make standard commit messages. Simply execute `npm run commit` after you have added the necessary files as mentioned in the step earlier.
b. Using Commitizen CLI:
- If you are already using [commitizen](http://commitizen.github.io/cz-cli/), simply doing a `git cz` works as expected too!
7. Squash your commits, if there are more than one.
8. Push your commits to your GitHub Fork: `git push -u origin branch/name-here`
8. If you would want to add/remove changes to previous commit simply add the files as in Step 5 earlier,
and use `git commit --amend` or `git commit --amend --no-edit` (for keeping the same commit message).
9. Go to [Common Steps](#common-steps)
9. Push your commits to your GitHub Fork: `git push -u origin branch/name-here`
10. Go to [Common Steps](#common-steps)
##### Method 2: Editing via the GitHub Interface

9520
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,8 @@
"test-js-server": "tape -r babel-register \"server/**/*.test.js\" | tap-spec",
"test": "npm run test-js && npm run test-challenges",
"cover": "babel-node ./node_modules/.bin/babel-istanbul cover tape common/**/*.test.js",
"coveralls": "npm run cover && istanbul-coveralls"
"coveralls": "npm run cover && istanbul-coveralls",
"commit": "git-cz"
},
"license": "(BSD-3-Clause AND CC-BY-SA-4.0)",
"dependencies": {
@ -138,6 +139,8 @@
"babel-preset-stage-0": "^6.3.13",
"browser-sync": "^2.9.12",
"chunk-manifest-webpack-plugin": "0.1.0",
"commitizen": "^2.9.6",
"cz-freecodecamp": "^1.0.0",
"del": "^2.2.0",
"eslint": "^3.1.0",
"eslint-plugin-import": "^2.0.1",
@ -178,5 +181,10 @@
"webpack-stream": "^3.1.0",
"yargs": "^7.0.1"
},
"snyk": true
"snyk": true,
"config": {
"commitizen": {
"path": "./node_modules/cz-freecodecamp"
}
}
}