A CLI tool to generate other CLI tools
npm install make-cli-tool---
- :boat: yargs
- :crayon: chalk - Colorize output
- :sushi: rollup - Bundler
- :arrow_up: np - A better npm publish
- :straight_ruler: ava - Super simple test framework
- :policeman: xo and tsc - Ensure code quality
- :no_entry_sign: :poop: lint-staged + :dog: husky - Ensure code quality on each git commit and push
- :trophy: badgen - Readme badges
- Workflow to test your CLI tool locally before publishing
---
```
npx make-cli-tool
_Usage with npx ensures that you are always using the latest version_
make-cli-tool will do the following:
- Create a new folder called
- Copy all template files to that folder
- Install the dependencies
- Make an initial commit
If you intend to publish this to npm, then you should check the availability of your name with npm-name-cli:
`sh`
npx npm-name-cli
``
npx make-cli-tool my-tool
---
- Add a license: https://help.github.com/en/github/building-a-strong-community/adding-a-license-to-a-repository
- Update the repository field in package.json:
`json`
"repository": {
"type": "git",
"url": "git+https://github.com/sajmoni/make-cli-tool.git"
},
_This is required for np to be able to publish a changelog_
- Set your repository URL
- Update the keywords section in package.json, this helps people find your package on npm.
- Add or remove badges: https://badgen.net/
---
If you need more advanced documentation, including a blog and translations, one good option is docosaurus.
https://help.github.com/en/github/building-a-strong-community/about-issue-and-pull-request-templates
---
node >= 16`