0.0.1 • Published 4 years ago
microbundle-ts-ava v0.0.1
microbundle-ts-pkg: A TypeScript npm package skeleton/starter project with microbundle, AVA and XO
Comes with:
- SAMPLE_README.md and USE_CASES.md for documentation.
- AVA for testing (see ./tests)
- XO for linting/formatting
- microbundle for compiling TypeScript to UMD, ESM, CJS
Requirements
- Node 10
- Yarn 1.x or npm
Setup
- Clone the repository
- Run
yarnornpm installinstalls all required dependencies. - Run
yarn buildto build from TypeScript to common JavaScript distribution formats. - Run
yarn testto run all tests :D.
npm scripts
Equivalent
npm run <script>should also work
yarn testrun tests against built output with ava. Important: runs against build output so runyarn buildbeforehand.yarn buildrun build from TypeScript to UMD, CJS, ESM with microbundleyarn watchruns build in watch mode with microbundleyarn lintwill lint all of the files with xoyarn formatwill run lint with--fixoption on all the examples files (and tests).yarn release, run clean, production build and release withnp.
About
This package is maintained by Hugo from Code with Hugo and Alpine.js Weekly.
Acknowledgments
Special thanks to:
- The developers behind
LICENSE
Code is licensed under the MIT License.
0.0.1
4 years ago