Skip to content

Commit

Permalink
Merge pull request #1 from PostHog/setup
Browse files Browse the repository at this point in the history
setup downsampling plugin
  • Loading branch information
mariusandra committed May 4, 2021
2 parents 66a501d + d4f1697 commit 7660fd6
Show file tree
Hide file tree
Showing 9 changed files with 261 additions and 6,121 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/ci.yml

This file was deleted.

18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# PostHog Plugin Advanced Kit: Hello World
# Downsampling Plugin

[![npm package](https://img.shields.io/npm/v/posthog-plugin-hello-world?style=flat-square)](https://www.npmjs.com/package/posthog-plugin-hello-world)
[![License: MIT](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)

This is an exemplary PostHog plugin. It adds property `"greeting"` to every event, with a configurable value (by default: `"Hello world!"`).

Use it as a base for your own plugins!

## Goodies included

- TypeScript for best reliability and development experience
- Jest for convenient testing
- Prettier and ESLint for code style and best practices – both handled by pre-commit hooks
- 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`)

Want to simply get started, without the above bloat? [PostHog Plugin Starter Kit](https://github.com/PostHog/posthog-plugin-starter-kit) should be just the right fit for you – only the essentials needed to get off the ground.
Reduces the number of events going into PostHog

## Installation

Expand Down
13 changes: 0 additions & 13 deletions jest.config.js

This file was deleted.

Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7660fd6

Please sign in to comment.