Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 932 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 932 Bytes

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