0.0.2 • Published 1 year ago

@avlabs/template-isomorphic-ts-library v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

template-isomorphic-ts-library

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

Usage

The starter contains the following scripts:

  • dev - starts dev server
  • build - generates the following bundles: CommonJS (.cjs) ESM (.mjs) and IIFE (.iife.js). The name of bundle is automatically taked from package.json name property
  • test - starts jest and runs all tests
  • test:watch - starts jest and runs all tests in watch mode
  • 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
  • uninstall-husky - script for removing husky from repository
0.0.2

1 year ago