CLI Starter Kit
How to get started with cli-starter-kit
git init
git pull git@github.com:thesunny/cli-starter-kit.git
code . package.json
IMPORTANT! Modify "package.json"
Edit these lines in package.json
to fit your needs
{
"name": "name-of-your-package",
"version": "0.1.0",
"description": "Description of your package",
"bin": {
"name-of-command": "./.dist/index.js"
},
"dependencies": {
}
}
How to update
yarn update:kit
git pull git@github.com:thesunny/cli-starter-kit.git
How to publish
This will bump the version.
yarn prepublish
Resources
Starter kit for creating NPM packages with executable scripts.
A guide to creating a NodeJS command-line package
Write a simple node executable with typescript and vscode