1.3.5 • Published 3 years ago
a-minimal-ts v1.3.5
a-minimal-ts
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 numbers
- wrapInArray- generic function
 
- Typescript
- Code Quality- Check code formatting with prettier
- eslintcoding style validation- jsdocand- tsdocrules enforcement
 
 
- Check code formatting with 
- jestunit tests
- huskygit hooks - ensure that git commits are of high quality
- commitlint- ensure that commit subjects comply with conventional commits specifications
- pnpmpackage manager
- NodeJS Continuos Integration Github workflows- Prettier and lint
- Unit Tests
- Auto Version bump
 
Prerequisites
NodeJS
Install NodeJS 16 or above, either directly or with nvm
Getting started
Usage
npm
npm i a-minimal-tsyarn
yarn add a-minimal-tspnpm
pnpm add a-minimal-tsLocal development
PNPM installation
Install the pnpm NodeJS package manager
npm install pnpm -gInstall
Run the command:
pnpm installTests
Running jest unit tests
Run the command:
pnpm testVersioning and Release
Done by github workflow actions