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
eslint
coding style validationjsdoc
andtsdoc
rules enforcementprettier
integration- Validation of correct import order with
eslint-plugin-import
- Automatic code formatting with
husky
git hooks- Use
commitlint
to ensure that git commit messages comply with conventional commits standards - Validate the code quality of staged sources files upon commit with
lint-staged
- Use
jest
unit testspnpm
package 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-ts
yarn add a-minimal-ts
pnpm add a-minimal-ts
Install the pnpm
NodeJS package manager
npm install pnpm -g
Run the command:
pnpm install
Run the command:
pnpm test
Done by github workflow actions