0.1.0 • Published 4 years ago

project-lib-typescript v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

template-typescript-lib

trunk

Project template for TypeScript libraries

Features

  1. TypeScript
    1. Strict mode
    2. Target es2018 which Node as low as version 10 has good support for (kangax compat table)
    3. cache setup
    4. test/src config split
  2. jest setup with ts-jest and handy watch plugins for testing
  3. dripip for release management
  4. GitHub actions for:
    1. Automated trunk and PR testing across matrix of mac/linux/windows OSes and Node 10/12/14
    2. Automated preview releases on trunk commits
    3. OS Matrix
  5. Five issue templates: feature, bug, docs, question, other
  6. Renovate configuration
  7. npm scripts for development lifecycle

After starting a new project with this template

  1. Setup a repo secret called NPM_TOKEN containing an npm token for CI package publishing.
  2. If your repo does not have GitHub discussions beta feature then adjust the question issue template to not mention them.
  3. 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.
  4. Uncomment the trunk publishing in .github/workflows/trunk.yml
  5. Search replace all instances of prisma-labs/project-lib-typescript to <your org>/<your repo>
0.1.0

4 years ago