RESOLVES FRMW-2862 **What** This PR enable the `create-medusa-app` CLI to accept a new `--plugin` option to scaffold a plugin. This is complementary to all the plugin commands being created/adjusted separately to that pr. Also, this pr brings a little refactoring around resource scaffolding, the idea was to contain the refactoring to a little area and not expend it to the entire create-medusa-app package to not disrupt and expand the scope for which the purpose was to introduce the plugin scaffolding capabilities **Addition** - medusa project will get their package.json name changed to the project name - Remove build step from medusa project creation **Plugin flow** - in the plugin - `npx create-medsa-app --plugin` - `yarn dev` - in the project - `yalc add plugin-name` - `yarn dev` Any changes on the plugin will publish, push in the local registry which will fire the hot reload of the app and include the new changes from the plugin
create-medusa-app
Documentation | Website
An open source composable commerce engine built for developers.
Overview
Using this NPX command, you can setup a Medusa backend and admin along with a PostgreSQL database in simple steps.
Usage
Run the following command in your terminal:
npx create-medusa-app@latest
Then, answer the prompted questions to setup your PostgreSQL database and Medusa project. Once the setup is done, the Medusa admin dashboard will open in your default browser.
Options
| Option | Description | Default value |
|---|---|---|
--repo-url <url> |
Create Medusa project from a different repository URL | https://github.com/medusajs/medusa-starter-default |
--seed |
Using this option seeds the database with demo data | false |