commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.61k stars 552 forks source link

try to load `cz-conventional-changelog` by default #341

Open tunnckoCore opened 7 years ago

tunnckoCore commented 7 years ago

Load it by default, without the need for config, which currently is

{
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  }
}

which i believe it should be handled by the cli. it is so trival and basic stuff. and hance, it is "path", i think it would make more sense to be preset and try to load this preset automagically.

What i suggest? It should try to load from local (cwd) node_modules, then try to load from global.

jimthedev commented 7 years ago

I understand your idea but ultimately we have people using many adapters, not just cz-conventional-changelog so we can't just assume they want to use this commit scheme. Instead we've integrated the ability to install a global for projects without a config. I'd be open to hearing about how we could make the commitizen init command more helpful but at the moment it adds this config for you so it really doesn't ask a lot of the user who is creating a repo. One command to get it going seems like a reasonable number of steps to get the power that it can afford.

jimthedev commented 7 years ago

Not saying we won't fix, but we'd need a PR that shows this functionality so that others could test it out for breaking changes.

tunnckoCore commented 7 years ago

they still will be able to set/use other adapters, im talking to be default if no config anywhere. think for it as just gulp instead gulp default, it just not make sense.