0.0.1 • Published 2 years ago

teste-utils v0.0.1

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

test-utils

The starter is built on top of Vite 3.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.

Features

  • Hybrid support - CommonJS and ESM modules
  • Typings bundle
  • ESLint - scripts linter
  • Prettier - formatter
  • Jest - test framework
  • Husky + lint-staged - pre-commit git hook set up for formatting

Usage

The starter contains the following scripts:

  • dev - starts dev server
  • build - generates the following bundles: CommonJS (.cjs) and ESM (.mjs). The name of bundle is automatically taked from package.json name property
  • test - starts jest and runs all tests
  • test:coverage - starts jest and run all tests with code coverage report
  • lint:scripts - lint .ts files with eslint
  • format:scripts - format .ts, .html and .json files with prettier
  • format - format all with prettier and stylelint
  • prepare - script for setting up husky pre-commit hook