Template to kickstart creating a Node.js module using TypeScript and VSCode
Inspired by node-module-boilerplate
- Semantic Release
- [Issue Templates]
- [GitHub Actions]
- Codecov
- [VSCode Launch Configurations]
- TypeScript
- Husky
- Lint Staged
- Commitizen
- Jest
- ESLint
- Prettier
Replace FULL_NAME
, GITHUB_USER
, NODE_VERSION
and REPO_NAME
in the ./customize.sh
script with your own details to personalize your new package:
FULL_NAME="John Smith"
GITHUB_USER="johnsmith"
REPO_NAME="my-cool-package"
NODE_VERSION="18.17.1"
Add permission to edit chmod +x ./customize.sh
and rund it ./customize.sh
Add your npm token to your GitHub repository secrets as NPM_TOKEN
, GH_TOKEN
and CODECOV_TOKEN
Enable the Codecov GitHub App here.
Remove everything from here and above
My awesome module
npm install s-block
import { myPackage } from 's-block';
myPackage('hello');
//=> 'hello from my package'
Type: string
Lorem ipsum.
Type: object
Type: string
Default: rainbows
Lorem ipsum.