-
Notifications
You must be signed in to change notification settings - Fork 552
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
Make .cz.json
part of package.json
#9
Comments
Hi there! You've hit on a really good point and I apologize for this not being in the docs Already, but you can actually already do this in your package.json under the cz key. The 3files that the config loader uses are (in order): package.json, .czrc, and .cz.json. These are defined here: https://github.com/commitizen/cz-cli/blob/master/src/configLoader.js when I get back from vacation I'll cut a new docs release. |
Amazing, thank you! Will give this a shot soon in my projects! I'll leave this open, so it can be closed once the docs landed ;) |
Cool. Just one correction. The package.json key is czConfig. |
I actually demonstrate this in my egghead lessons :-) because |
@jimthedev I wrote up some quick docs for this issue but am getting a |
Did you Fork the repo? You should Fork it, then push it to your fork and On Sun, Oct 4, 2015, 11:06 AM A. Craze notifications@github.com wrote:
|
Thanks @accraze!!! Merged! Also thanks to @kentcdodds for merge and rebase which let me merge from my phone! |
Can you use bookmarklets on your phone? How? On Sun, Oct 4, 2015, 1:22 PM Jim Cummins notifications@github.com wrote:
|
You have to be in Desktop mode. To get there you scroll to the very bottom
|
You sure you're not just talking about github's normal merge button, not my On Sun, Oct 4, 2015 at 1:33 PM Jim Cummins notifications@github.com wrote:
|
You can select the bookmarklet from your bookmarks while on the page. It
|
Sorry to bump this, but is there a reason that it's got it's own object, |
+1. I don't think there's a reason @killswitch except perhaps ignorance (there's so much to know!) I vote that the next release looks for config there first, and then falls back on |
@killswitch That is a good idea. I think the main reason is that the config loader originally came from jscs and thus followed their perhaps naive convention. The good news is we can easily add it and migrate to it being the default. Things needed for this to happen:
Seem like a good plan? |
Perfect. You guys are awesome. :) |
@killswitch Thanks for keeping us honest. 👍 |
No problem @jimthedev. Thank you guys for a great module. I'm implementing it on all my projects thanks to @kentcdodds video on egghead.io |
Good to hear. Cheers!
|
This project looks very promising, thank your for this!
What shies me away as a maintainer is that I have to add another dotfile to my repository.
As the
.cz.json
is mostly one line, and also json, it would be nice if commitizen could just look up a "cz" field thepackage.json
.What do you think?
(Sorry if I missed the a previous discussion on this, couldn't find one.)
The text was updated successfully, but these errors were encountered: