0.0.2 • Published 3 years 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.jsonname 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.tsfiles with eslintformat:scripts- format.ts,.htmland.jsonfiles 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
3 years ago