Skip to content

A Repository Template for TypeScript Command Line Applications / Tools

License

Notifications You must be signed in to change notification settings

streetsidesoftware/template-typescript-cli-app

Repository files navigation

template-typescript-cli-app

A Repository Template for TypeScript Command Line Applications / Tools

This is a simple command line tool that lists files matching the provided globs.

Getting Started

  1. Install pnpm

  2. pnpm i

  3. pnpm test

  4. pnpm run app --help

    Usage: list-files [options] <files...>
    
    List Files
    
    Arguments:
      files                 Files to scan for injected content.
    
    Options:
      --no-must-find-files  No error if files are not found.
      --cwd <dir>           Current Directory
      --color               Force color.
      --no-color            Do not use color.
      -V, --version         output the version number
      -h, --help            display help for command
    
  5. pnpm run app "*"

    Example:

    Find Files:
     - LICENSE
     - README.md
     - bin.mjs
     - coverage
     - cspell.config.yaml
     - dist
     - package.json
     - pnpm-lock.yaml
     - release-please-config.json
     - scripts
     - src
     - static
     - tsconfig.json
     - vitest.config.ts
    done.
    

pnpm - this template uses pnpm.

See: https://pnpm.io/

vitest - this template uses ViTest for testing.

See: https://vitest.dev/

ES Modules

This tools is setup to use ES Modules.

GitHub Workflows

This template includes GitHub Workflows for:

  • testing
  • code coverage
  • lint
  • release please (for generating releases)
  • CodeQL

About

A Repository Template for TypeScript Command Line Applications / Tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •