You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an exemplary PostHog plugin. It adds property `"greeting"` to every event with a configurable value – `"Hello world!"` by default.
6
+
This is an exemplary PostHog plugin. It adds property `"greeting"` to every event, with a configurable value (by default: `"Hello world!"`).
7
7
8
-
A few goodies included with this plugin:
9
-
- TypeScript for best reliability and development experience,
10
-
- Jest for convenient testing,
11
-
- Prettier and ESLint for code style and best practices – both handled by pre-commit hooks,
12
-
- GitHub Actions set up to run code quality and functionality tests in pull requests, and also to publish a new npm release when the package version is incremented in `main` (the latter requires an automation type npm access token to be set with a repo secret `NPM_TOKEN`).
8
+
Feel free to use it as a base for your own plugins!
9
+
10
+
## Goodies included
11
+
12
+
- TypeScript for best reliability and development experience
13
+
- Jest for convenient testing
14
+
- Prettier and ESLint for code style and best practices – both handled by pre-commit hooks
15
+
- GitHub Actions set up to run code quality and functionality tests in pull requests, and also to publish a new npm release when the package version is incremented in `main` (the latter requires an automation type npm access token to be set with a repo secret `NPM_TOKEN`)
16
+
17
+
## Installation
18
+
19
+
1. Open PostHog.
20
+
1. Head to the Plugins page from the sidebar.
21
+
1. Either install Hello World from Available plugins, or install from URL using this repository's URL.
0 commit comments