all-contributors-cli-inferred

0.1.0Β β€’Β PublicΒ β€’Β Published

All Contributors CLI Inferred

Wraps all-contributors-cli by creating the .all-contributorsrc file from inferred settings. πŸ’“

🀝 Code of Conduct: Kept πŸ§ͺ Coverage πŸ“ License: MIT πŸ“¦ npm version πŸ’ͺ TypeScript: Strict

Usage

npx all-contributors-cli-inferred

all-contributors-cli-inferred supports all the same options as all-contributors-cli. The only difference is that instead of requiring an .all-contributorsrc file, one will be inferred for you by reading from your README.md and package.json.

For example, to add a contribution your README.md table:

npx all-contributors-cli-inferred add ghost test

You can use this CLI as a drop-in replacement for all-contributors-cli. If you already had an .all-contributorsrc file, it won't be deleted.

How?

This CLI works by:

  1. Reading configuration from any existing .all-contributorsrc, package.json, and README.md files
  2. Writing a new .all-contributorsrc file with that configuration
  3. Forwarding all process arguments to all-contributors-cli
  4. If an .all-contributorsrc file didn't already exist, the newly created one is deleted

Why?

All Contributors is one of many great pieces of tooling available for repositories. Repositories that use many tools often end up with a dauntingly large number of configuration files -- over a dozen in many cases.

Many users find it exhausting and overwhelming to open a new repository with many config files. Reducing the number of config files in repositories can help make developing them more approachable.

πŸ’‘ Wish this was built into All Contributors? Lend a πŸ‘ to all-contributors/all-contributors#808 Make the .all-contributorsrc file optional (infer contributors from README.md)!

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks! πŸ’–

Contributors

πŸ’ This package was templated with create-typescript-app using the create engine.

Readme

Keywords

none

Package Sidebar

Install

npm i all-contributors-cli-inferred

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

11.9 kB

Total Files

10

Last publish

Collaborators

  • joshuakgoldberg