Giter Club home page Giter Club logo

template-typescript's Introduction

PostHog Template for the Next TypeScript Package

npm package License: MIT

Hey there! Starting a new JS/TS package?

Whether it's a library, a plugin, an integration, a CLI, or anything else in the world:

  • Write it in TypeScript for best reliability and development experience.
  • Use the battle-tested Yarn for dependency management.
  • Test quickly and easily with Jest (plus ts-jest for TypeScript support).
  • Adhere to PostHog Style™️ by formatting code with Prettier and ensuring best practices with ESLint – or actually, don't do it: let pre-commit hooks handle this for you.
  • Have GitHub Actions run all of the above when working on pull requests. Plus have them take care of publishing releases on npm and GitHub whenever the version is incremented.

Start out using this template and hit the ground quickly with all of the above from the get-go.

Get on with it

  1. Update fields name, description, keywords, respository, bugs and homepage in package.json.
  2. Make sure that you have Yarn installed and run yarn to install dependencies.
    Note: file yarn.lock will be created. Commit this.
  3. Write your package, starting with src/index.ts!

When publishing on GitHub, add an automation-type npm access token as GitHub secret NPM_TOKEN in order for auto-release to work.

Now, erase the notes above and fill this README with something actually relevant! Don't forget to update the npm badge too.

Questions?

We're here to help you with anything PostHog!

template-typescript's People

Contributors

twixes avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.