Open joshuaellis opened 10 months ago
Posting here from discord per request from joshua.
This looks great!
One additional command that I would suggest is a db migration generation one. Enabling devs to generate knex migrations that will be picked up and executed at boot.
For me the last major pains for plugins are:
Any chance these are being addressed/looked into as well?
Thanks for the feedback @ComfortablyCoding.
the link
command should easy the ability for testing as you can use your local plugin as if it were installed in a strapi app, your set up could look like:
my-plugin/
├─ demo/
├─ src/
│ ├─ index.ts
├─ package.json
Where demo
is a local strapi app – alternatively if you're building a plugin for your strapi app you could link it anywhere on your pc – we'll be using yalc
to facilitate this. RE. automated testing, I agree, it's not easy to test strapi-fe at the moment externally unless you have a lot of deep knowledge. From the work we're doing in V5 a small ambition is to export some test
utils either from the admin-package or elsewhere so you have a testing harness e.g. a store built etc. Finally regarding the build, we're aware the source-maps don't exist and are not ideal, this is something else we want to address 😄
It'd be great to understand what you feel you're missing on this side so we can look into providing these exports. I think the naming conventions in the codebase at the moment are not very user friendly and i'd like to look at exporting more for users with clear names and guides.
Nice, hopefully that resolves some issues.
In terms of the extensibility of the code it was more for the admin panel than the design system I guess. Technically unrelated here.
In terms of the design system their are common UI interfaces missing from the design system but present else where. For example the components exported from the helper plugin.
Possibly already addressed by https://github.com/strapi/design-system/issues/1269.
Introduce a dedicated plugin CLI to assist developers in creating plugins for strapi the right way easily
You can read it here