A demo package with minimal Typescript functionality. This package can be used as a skeleton or template for quickly building new TypeScript packages, without wasting time on setup of boilerplate configurations and supporting tools.
Provides the following functionality:
- Module style (import/export)
- API
multiply- multiplies two numberswrapInArray- generic function
- Typescript
- Code Quality
- Automatic code formatting with
prettier eslintcoding style validationjsdocandtsdocrules enforcementprettierintegration- Validation of correct import order with
eslint-plugin-import
- Automatic code formatting with
huskygit hooks- Use
commitlintto ensure that git commit messages comply with conventional commits standards - Validate the code quality of staged sources files upon commit with
lint-staged
- Use
jestunit testspnpmpackage manager- NodeJS Continuos Integration Github workflows
- lint
- Unit Tests
- Auto Version bump
Install NodeJS 16 or above, either directly or with nvm
npm i a-minimal-tsyarn add a-minimal-tspnpm add a-minimal-tsInstall the pnpm NodeJS package manager
npm install pnpm -gRun the command:
pnpm installRun the command:
pnpm testDone by github workflow actions