A TypeScript npm package skeleton/starter project with microbundle, AVA and XO
microbundle-ts-pkg: A TypeScript npm package skeleton/starter project with microbundle, node:test and prettier
Comes with:
node:test
runner for testing (see ./tests)node:test
usage)npm install
installs all required dependencies.npm run build
to build from TypeScript to common JavaScript distribution formats.npm test
to run all tests.npm run test
run tests against built output with Node.js’ native node:test
module. Important: runs against build output so run npm run build
beforehand.npm run build
run build from TypeScript to UMD, CJS, ESM with microbundlenpm run watch
runs build in watch mode with microbundlenpm run lint
will ensure all of the files are prettier-formattednpm run format
will run prettier formatting option on all the examples files (and tests).npm run release
, run clean, production build and release with np
.This package is maintained by Hugo from Code with Hugo and Alpine.js Weekly.
Special thanks to:
Code is licensed under the MIT License.