This project provides a starting point for a npm module written in typescript
It will handle the following
- Testing with Jest
- Building with tsc
- Publishing via Github Actions
- Linting with ESLint
- Formatting with Prettier
.d.ts
file generation
.github
This folder contains the release workflow, it will build test and then release the code to NPM based on the version passed in the action parameter
src
Contains all source files, to start there is just a basic index file
src/test
The test directory contains test sources
You will need to update the following entries in package.json
"name": "update-package-name",
"author": "UPDATE-you@email.com",
"license": "UPDATE",
"keywords": [
"UPDATE"
],
You will then need to add an environment variable named NPM_TOKEN
to your github repository secrets
Enjoy!