0.0.8 • Published 4 years ago

@danielfsousa/cli v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

monorepo-typescript-lib-starter

CI status codecov JavaScript Style Guide Commitizen friendly Typedoc reference

Starter kit for monorepo libraries in Typescript.

If you are building a small library and don't want a monorepo checkout: danielfsousa/typescript-lib-starter

Usage

Click on the Use this template button on github or clone the repository and remove the .git folder:

git clone https://github.com/danielfsousa/monorepo-typescript-lib-starter --depth 1
cd monorepo-typescript-lib-starter
rm -rf .git

Features

Scripts

Execute the scripts from the root directory to run for all packages or inside a package folder to run only for that project.

  • npm run bootstrap Syslink packages and binaries
  • npm run clean Remove generated code, typings and caches
  • npm run commit Commit using conventional commit style
  • npm run docs Generate and open documentation
  • npm run format Format code using prettier
  • npm run format:check Check if code is following the prettier style
  • npm run lint Lints code
  • npm run lint:fix Lints and tries to fix linting errors
  • npm run publish Bump packages versions based on the commits messages, edit the CHANGELOG file and publish a new release to npm and github
  • npm run test Run test suite and generate coverage report
  • npm run test:watch Run test suite in interactive watch mode
  • npm run watch Run build script in watch mode

Git hooks

  • pre-commit: Lints, check your code style and runs associated unit tests for every staged file
  • commit-msg: Check if your commit message follows the Conventional Commits specification before every commit (you can run npm run commit to help you create a good commit message)

Credits