Skip to content

A typescript template for building command line interfaces with commander.js

License

Notifications You must be signed in to change notification settings

danielfsousa/commander-cli-starter-ts

Repository files navigation

commander-cli-starter-ts

A typescript template for building command line interfaces with commander.js.

Requirements

  • Node.js 16

Quick Start

npm init @danielfsousa commander-cli-ts mycli

Usage

  1. Install dependencies
npm install
  1. Build
npm run build
  1. Run unit and integration tests
npm test
  1. Install CLI
npm install . -g
  1. Run CLI
mycli --help

Scripts

npm run build         # transpiles typescript files
npm run format        # formats code with prettier
npm run format:check  # checks formatting errors with prettier
npm run lint          # lints code with eslint
npm run lint:fix      # lints and fixes code with eslint
npm run start         # runs cli
npm run test          # runs unit and integration tests
npm run test:watch    # runs tests and watches for changes

About

A typescript template for building command line interfaces with commander.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published