@kks-web/module-template
TypeScript icon, indicating that this package has built-in type declarations

0.0.3Β β€’Β PublicΒ β€’Β Published

Module Template

npm version npm downloads npm downloads npm bundle size PRs welcome

πŸš€ Your module start template that powered by TSDX.

Directory Structure

Here is the structure of the starter.

.
β”œβ”€β”€ src                # Write your code here
β”œβ”€β”€ example            # Try your code here (refer to ./example for more info)
β”œβ”€β”€ test               # Test your code here
β”œβ”€β”€ jest.config.ts     # Jest configuration
└── tsconfig.json      # TypeScript configuration

Script Commands

Some useful commands you might need.

yarn <script> Description
start Bundles the module with watch mode.
build Bundles the module to the dist folder (format: CommonJS and ES Module).
test Runs your tests using Jest.
test:cov Runs your tests with coverage report.
lint Runs Eslint with Prettier on .ts and .tsx files.
size Creates bundle size snapshots with size-limit.
size:analyze Creates bundle size snapshots with visualized analysis.
clean Removes both dist and testing coverage folder.
clean:build Removes dist folder.
clean:cov Removes testing coverage folder.

Need More Information?

For more information or configuration, please refer to TSDX document.

Readme

Keywords

none

Package Sidebar

Install

npm i @kks-web/module-template

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

7.83 kB

Total Files

11

Last publish

Collaborators

  • kksweb