0.0.2 • Published 1 year ago
@avlabs/template-isomorphic-ts-library v0.0.2
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 serverbuild
- generates the following bundles: CommonJS (.cjs
) ESM (.mjs
) and IIFE (.iife.js
). The name of bundle is automatically taked frompackage.json
name propertytest
- starts jest and runs all teststest:watch
- starts jest and runs all tests in watch modetest:coverage
- starts jest and run all tests with code coverage reportlint:scripts
- lint.ts
files with eslintformat:scripts
- format.ts
,.html
and.json
files with prettierformat
- format all with prettier and stylelintprepare
- script for setting up husky pre-commit hookuninstall-husky
- script for removing husky from repository
0.0.2
1 year ago