0.17.0 • Published 2 years ago

baldrick-dev-ts v0.17.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Baldrick-dev-ts

npm Build
status npm bundle size

npm type definitions node-current NPM

CLI for the package development of Typescript library in ESM format.

The main motivation is to reduce the amount of dev dependencies that needs to be installed and configured individually.

  • Typescript the strongly typed alternative to Javascript.

  • Reduced configuration the CLI should be ready go without further configuration.

  • ESLint under the hood for linting.

  • Jest under the hood for testing (very experimental)

  • ES2021 or later.

Usage

Statically analyzes the default source folder to quickly find problems:

baldrick lint check

Fix problems in the default source folder:

baldrick lint fix

Run unit tests:

baldrick test check

Update snapshots for unit test:

baldrick test fix

Acknowledgements

baldrick-dev-ts was initially created as a fork of the brilliant tsdx project. Eventually, the code has been massively refactored to match the new requirements, and very little remain of the tsdx starting point, except our gratitude to this initial project.

Documentation and links

Installation

This package is ESM only.

yarn global add baldrick-dev-ts
baldrick --help

Or alternatively run it:

npx baldrick-dev-ts --help

If you want to tun the latest version from github. Mostly useful for dev:

git clone git@github.com:flarebyte/baldrick-dev-ts.git
yarn global add `pwd`