project-lib-typescript
v0.1.0
Published
![trunk](https://github.com/prisma-labs/project-lib-typescript/workflows/trunk/badge.svg)
Downloads
5
Readme
template-typescript-lib
Project template for TypeScript libraries
Features
- TypeScript
- Strict mode
- Target es2018 which Node as low as version 10 has good support for (kangax compat table)
- cache setup
- test/src config split
jest
setup withts-jest
and handy watch plugins for testingdripip
for release management- GitHub actions for:
- Automated trunk and PR testing across matrix of mac/linux/windows OSes and Node 10/12/14
- Automated preview releases on trunk commits
- OS Matrix
- Five issue templates: feature, bug, docs, question, other
- Renovate configuration
- npm scripts for development lifecycle
After starting a new project with this template
- Setup a repo secret called
NPM_TOKEN
containing an npm token for CI package publishing. - If your repo does not have GitHub discussions beta feature then adjust the question issue template to not mention them.
- Update your GitHub org's label-sync repo to include config for your new repo, assuming your org has such a thing. For example for Prisma Labs: prisma-labs/label-sync.
- Uncomment the trunk publishing in
.github/workflows/trunk.yml
- Search replace all instances of
prisma-labs/project-lib-typescript
to<your org>/<your repo>