What is the best way for open-source plugin development repo organization? For example, when I develop a plugin, it requires a Medusa instances for testing and debugging. How should I organize my repositories to quickstart development environment and showcases?
I see 2 options:
1. With two repos
# 1st - plugin repo
/ # your published medusa-plugin
└─ package.json
# 2nd - examples repo
/
├─ medusa-store/ # Medusa Admin
├─ medusa-store-storefront/ # Medusa storefront
└─ medusa-plugin/ # git submodule reference
The 1st repo - for the medusa-plugin itself, and the 2nd (monorepo) - for medusa-store, medusa-store-storefront, and medusa-plugin (as a git submodule referencing the 1st repo, for local development with yalc)
2. With only one repo (monorepo)
In that case, the folders structure could look like the 2nd repo of the first approach, but with some tooling applied for managing monorepos (eg. lerna or similar) and publishing the plugin package to NPM.
What are your thoughts?