@kks-web/module-template
v0.0.3
Published
π Your module start template.
Downloads
3
Readme
Module Template
π 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.