PostHog Handbook Library / Engineering

266 words. Estimated reading time: 2 min.

Consistent scripts to rule them all

PostHog has 235 (at the time of writing) public repositories. Each of these repositories has a unique way to get the project up and running locally. To limit the friction of this we adapt GitHub's approach of scripts to rule them all. As they say:

Being able to get from git clone to an up-and-running project in a development environment is imperative for fast, reliable contributions.

Not every repository will need every script. Some repositories will need scripts custom to the environment (for example, make files). That's all fine. The goal is to have a baseline set of scripts that we can use to get a development environment up and a known location to look for those scripts.

Standard scripts at PostHog

When starting a new project, create a bin directory and include the following scripts (when relevant):

Warning: Some environments add bin to the .gitignore file by default because that's where they compile binaries to.

Example scripts are available in the PostHog/scripts repository.

Canonical URL: https://posthog.com/handbook/engineering/conventions/scripts

GitHub source: contents/handbook/engineering/conventions/scripts.md

Content hash: 67dae37fde892134