Boilerplate for quickly creating a Node.js CLI with TypeScript, Jest, and CI with Github Actions.
Click the "Use this template" button.
Alternatively, create a new directory and then run:
$ curl -fsSL https://github.com/sam-parsons/ts-node-cli-boilerplate/archive/main.tar.gz | tar -xz --strip-components=1
local development
// creates sym-link in global node_modules folder,
// pointing to the local repo
$ npm link
// we can now immediately invoke the package globally
$ your-package arg1 arg2
// run typescript compilation to update global command
$ npm run build
// -- OR --
// or run start script to watch file changes
$ npm start
as a remote dependency (after publishing package on NPM)
$ npm install --global your-package
$ your-package arg1 arg2