Minimum scaffolding for a medusa plugin. The process suggested by the medusa docs – using medusa cli to create a new medusa project and then shrink it down to a plugin – seems cumbersome and error-prone. That's why this repository exists as a streamlined alternative basis for new plugins.
Check to the medusa docs for more detailed instructions on plugin development.
- Copy this repo
- Set the plugin's name in
package.json
- Add your services, routes, widgets, etc. in
src/
npm install
npm run build
npm link
npm link my-plugin-name
- Add entry to the
plugins
array inmedusa-config.json