Accelerate your NPM package development with our TypeScript-NPM-Template. This meticulously crafted, ready-to-use template streamlines the creation of robust and scalable TypeScript-powered packages for the NPM ecosystem.
Whether you're a seasoned developer or just getting started, our TypeScript-NPM-Template provides a solid foundation, allowing you to focus on creating exceptional NPM packages without the hassle of configuring the setup from scratch.
Get started on your next project with confidence and efficiency using our TypeScript-NPM-Template.
npm install to install the required dependencies.Table of available scripts:
| Script | Description |
|---|---|
npm run test |
Runs the test suite. In this template, the test suite is configured with Vitetest. |
npm run test:watch |
Runs the test suite in watch mode. |
npm run build |
Compiles the TypeScript source code into JavaScript. |
npm run lint |
Runs the linter to check for code style and formatting issues. |
npm run lint:fix |
Runs the linter and fixes any code style and formatting issues. |
npm run lint:eslint |
Runs the linter to check for code style and formatting issues. |
npm run lint:prettier |
Runs the linter to check for code style and formatting issues. |
npm run type:check |
Checks the TypeScript types. |
npm run prettier |
Formats the codebase using Prettier. |
npm run ci |
Runs all the checks (tests, linting, formatting) & build in a single command. |
npm run release |
Releases a new version, make a pull request, and publish the package to NPM. Uses
Changesets
|
This template uses Changesets to maintain package version and release. To learn more about Changesets, check out the official documentation.
Generated using TypeDoc