From 00d1e08ec5ec69395d4d41b64f7fa3e3ea1ec324 Mon Sep 17 00:00:00 2001 From: Kirstie Whitaker Date: Thu, 18 Oct 2018 16:59:10 +0100 Subject: [PATCH] docs: add note about using npx cli command (#114) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **What**: Add a couple of sentences about running the from the command line with `npx` - they're almost verbetim the "heads up" that @kentcdodds suggested in https://github.com/jfmengels/all-contributors-cli/issues/92#issuecomment-391766876.. **Why**: I was having difficulty understanding how to run the commands and I found this text in issue #92 super helpful - I figured it would be for others too 😄 **How**: Updated text in README **Checklist**: - [x] Documentation - [ ] Tests -- NA - [x] Ready to be merged - [ ] Added myself to contributors table -- ironically I'm not sure how to do this 🤣 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 58ecdad..6756db7 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ npm run contributors:generate ## Usage +A quick note: We recommend that you install `all-contributors-cli` as a dependency in your project. +If you do that then you can run the `all-contributors` binary from within your `package.json` scripts, or you can run it in your terminal with `npx all-contributors`. +Below we'll just show `all-contributors` to keep things simple, but if you're having any difficulties, then give the `npx all-contributors-cli` route a try :smiley_cat: + ### Generating the contributors list Please add following placeholders in [`files`](#configuration) to specify the generation area first.