-
Notifications
You must be signed in to change notification settings - Fork 5
Better starter kit #17
Comments
Well, not yet done since those starter kits don't work with the current version of posthog nor plugin server |
Ah right, though I think they are only missing |
Well, I could come up with a list of (subjective?) things to improve... but these are not something to spend time on now.
Again, let's not work on this now. There are bigger fish to fry. |
Generally agree ( |
With plugins becoming more and more mainstream, people tend to take whatever random starting point they can find and code a plugin on top of this. To remove confusion and help adoption of plugins, I propose it's finally time to clean up this starter kit situation (together with world class docs)... and consolidate on just one and simplified My wishes for this kit:
|
So, I just tried writing a new plugin, and this template still feels annoying. I followed the instructions in the tutorial ( PostHog/posthog.com#1467 ), and once I used the template, I ended up deleting lots of files that felt useless ( https://github.com/neilkakkar/posthog-github-followers-plugin/commits/main ) This included: the test file, package.json, yarn.lock. I didn't really need these to finish my plugin, since I'm testing it using "Install from URL" (everything is happening in the browser). I think the crux here is that: the template shouldn't be a plugin in itself, but just a starting point. This implies getting rid of everything extra in the plugin - tests, package.json, lockfiles, etc. I think we should split things out into: (1) Exemplary plugins to serve as reference. This would include a list of plugins and their specialty, showing how tests and package.json work. I'm planning to include a link to (1) from (2), so everything is easily available, and then all our technique improvements / upgrades actually go into existing plugins, instead of the template. Something like: And the template has instructions like: |
I think this can be closed now after PostHog/posthog-plugin-starter-kit#7 |
Currently the helloworldplugin is our "blank plugin starter kit".
This should be extended with:
The text was updated successfully, but these errors were encountered: