Shahed Nasser
5f90cd0650
feat(create-medusa-app): add support for pnpm and specifying package manager ( #14443 )
...
* feat(create-medusa-app): add support for pnpm and specifying package manager
* fixes
* add medusa command method
* add tests for package manager
* fix duplicate messages
* throw if chosen package manager is not available
* better package manager and version detector
* add debug message
* fix version detection
* fix for yarn v3
* fix migration command
* yarn v3 fix
* remove .yarn directory for non-yarn package managers
* run npm ci to validate npm installation
* fixes
* fixes
* remove corepack line
* remove if condition
2026-01-12 12:55:26 +02:00
Shahed Nasser
b300a93345
fix(create-medusa-app): fix version option not working with Next.js storefront ( #14462 )
...
1. Fix error when passing `--version` and installing Next.js storefront. The error is because the UI package doesn't follow the same versioning as other Medusa packages, so this will skip updating the version of the UI package.
2. Other: added error logging for installation errors
2026-01-06 14:40:54 +00:00
Adrien de Peretti
37563987b8
chore(): Fix dependencies ( #13932 )
2025-11-02 17:46:46 +01:00
Adrien de Peretti
12a96a7c70
chore(): Move peer deps into a single package and re export from framework ( #13439 )
...
* chore(): Move peer deps into a single package and re export from framework
* WIP
* update core packages
* update cli and deps
* update medusa
* update exports path
* remove analyze
* update modules deps
* finalise changes
* fix yarn
* fix import
* Refactor peer dependencies into a single package
Consolidate peer dependencies into one package and re-export from the framework.
* update changeset
* Update .changeset/brown-cows-sleep.md
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* rm deps
* fix deps
* increase timeout
* upgrade version
* update versions
* update versions
* fixes
* update lock
* fix missing import
* fix missing import
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-09-22 18:36:22 +02:00
Oli Juhl
909fc4c127
fix(create-medusa-app): Don't allow dot in project name ( #13042 )
2025-07-25 17:44:06 +02:00
Adrien de Peretti
779ed018b9
feat(create-medusa-app): Allow to create project with specific medusa version ( #12882 )
...
* feat(create-medusa-app): Allow to create project with specific medusa version
* feat(create-medusa-app): Allow to create project with specific medusa version
* feat(create-medusa-app): Allow to create project with specific medusa version
* naming
* Create smart-singers-dress.md
2025-07-03 15:58:18 +02:00
Shahed Nasser
2e861a9449
fix(create-medusa-app): ensure the same package manager is used consistently ( #12714 )
...
* fix(create-medusa-app): ensure the same package manager is used consistently
* fix verbose not working as expected
* improvements
* remove legacy peer deps
* format
2025-06-16 14:07:35 +03:00
Shahed Nasser
774702153f
fix(create-medusa-app): remove "Created admin user" message ( #12707 )
2025-06-11 13:53:07 +03:00
Shahed Nasser
f74586e772
fix(create-medusa-app): updates to text and prompts ( #12360 )
2025-05-06 14:23:54 +03:00
RONY GEDEON YEBADOKPO
a16eaad6c9
fix(create-medusa-app): --db-url keep asking db credentials ( #11037 )
...
* fix create-medusa-app db-url error
* removed empty lines
* changeset
2025-01-29 15:30:18 +02:00
Shahed Nasser
cd758067d4
fix(create-medusa-app): fix database name from input not used in setup ( #11071 )
2025-01-21 12:35:46 +02:00
Adrien de Peretti
c895ed8013
feat: Scaffold plugin in create-medusa-app ( #10908 )
...
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
2025-01-13 14:18:42 +00:00
Shahed Nasser
632600ee11
fix(create-medusa-app): add default storefront url to auth CORS ( #10853 )
...
* fix(create-medusa-app): add default storefront url to auth CORS
* add docs cors to store / admin
2025-01-07 11:01:37 +02:00
Shahed Nasser
152a94e1e1
feat(create-medusa-app): improve by adding depth to clone commands ( #10812 )
...
Improve command by passing `--depth 1` to decrease download size + improve for slow speed.
Closes TRI-742
2025-01-05 13:24:57 +00:00
Shahed Nasser
1e6d56bc18
feat(create-medusa-app): allow passing project name on command line ( #10755 )
...
Allow passing the project name on the command line:
```bash
npx create-medusa-app@latest my-project
```
2024-12-29 09:41:15 +00:00
Shahed Nasser
92bbd7953b
chore: update links to v2 docs in source code and comments ( #9732 )
2024-10-24 15:18:38 +03:00
Oli Juhl
f1b2d22db7
chore: Remove v2 branches from starters ( #9721 )
...
* chore: Remove v2 branches from starters
* revert imports
2024-10-22 20:00:13 +02:00
Harminder Virk
68560787e5
breaking: rename package names to be consistent and under @medusajs scope ( #9580 )
2024-10-16 22:28:09 +05:30
Shahed Nasser
86f744cf3b
fix(create-medusa-app): use db:migrate to run migrations ( #9565 )
2024-10-14 15:54:05 +00:00
Harminder Virk
48e00169d2
breaking: move shared HTTP utils to the framework ( #9402 )
...
Fixes: FRMW-2728, FRMW-2729
After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.
- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-03 09:42:00 +00:00
Stevche Radevski
bffb36cd11
fix: Use the default admin port in create medusa app env definition ( #9439 )
2024-10-03 09:53:57 +02:00
Shahed Nasser
cb5c228a36
fix(create-medusa-app): remove warnings on installation ( #9405 )
2024-10-02 13:27:13 +03:00
Shahed Nasser
5390c8a845
fix(create-medusa-app): fix publishable api key not saving in .env.local ( #9328 )
2024-09-26 16:43:40 +03:00
Adrien de Peretti
ae320ac73f
fix: base tsconfig ( #9309 )
...
* fix: base tsconfig
* WIP
* wi[]
* update integration typescript version
* update lock file
* fix deps
* fix medusa tests runner
2024-09-25 16:31:57 +02:00
Shahed Nasser
ac30a989f4
feat(create-medusa-app): add publishable API key environment variable to Next.js storefront ( #9029 )
...
When installing with Next.js starter, retrieve the publishable API key seeded and add it to the environment variable in the `.env.local` or `.env.template` file
2024-09-06 09:43:55 +00:00
Shahed Nasser
408ed2ee45
feat(create-medusa-app): set database name to project name ( #8727 )
...
* add check and prompt for db name
* change var format
* remove log
* remove log
2024-08-23 14:17:37 +03:00
Harminder Virk
5f310c0a00
breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix ( #8672 )
2024-08-20 17:05:19 +05:30
Shahed Nasser
f14f398685
feat(create-medusa-app): prompt for database name with credentials ( #8552 )
...
* feat(create-medusa-app): prompt for database name with credentials
* refactor
2024-08-12 11:52:21 +03:00
Shahed Nasser
98f42e8995
feat(create-medusa-app, medusa): check Node.js version before installation. ( #8452 )
...
Check before installation with `create-medusa-app` and `medusa new` whether the current node version is >= 20. If not, exit with an error.
2024-08-06 07:15:17 +00:00
Shahed Nasser
ac21f35b2c
fix(create-medusa-app): run links sync during setup ( #8215 )
...
Run `links sync` command along with running migrations
2024-07-22 10:09:33 +00:00
Shahed Nasser
d2c89e7071
fix(create-medusa-app): remove glob-related warnings ( #7985 )
...
On every new installation of `create-medusa-app`, you get a warning related to `glob`'s version.
Since we don't need `glob` anymore (it was used to remove boilerplate files), I've removed it along with its usage. This includes removing the `--no-boilerplate` option.
2024-07-08 08:24:10 +00:00
Shahed Nasser
8fde57263f
fix(create-medusa-app): remove preview links ( #7884 )
...
Remove temporary doc links set in `STORE_CORS` and `ADMIN_CORS`
2024-07-01 12:16:12 +00:00
Shahed Nasser
fa0c7dfbb5
fix(create-medusa-app): set the database host and port explicitely ( #7637 )
...
* pass host and port explicitely
* set AUTH_CORS in env
2024-06-06 18:26:06 +03:00
Shahed Nasser
27b64c23f0
feat(create-medusa-app): support more environment variables + fixes ( #7533 )
2024-05-29 21:25:31 +02:00
Shahed Nasser
639758ffec
chore(create-medusa-app): remove .github directory ( #7473 )
...
As we're adding some actions to the starter, it doesn't make sense to keep them in the cloned projects with `create-medusa-app`. This PR removes the `.github` directory from the project after cloning it
2024-05-27 12:43:49 +00:00
Shahed Nasser
9cbe0085d0
feat(create-medusa-app): remove admin email prompt ( #7417 )
...
* feat(create-medusa-app): remove admin email prompt
* change to constant
2024-05-23 12:23:45 +03:00
Shahed Nasser
24a2ab754a
fix(create-medusa-app): fix seed step to use seed script in package.json ( #7397 )
...
Fix the seed step to use the `seed` script defined in `package.json` to avoid issues if the file is renamed or path is changed
2024-05-22 11:41:45 +00:00
Shahed Nasser
e443a7be3f
feat(create-medusa-app): install v2 by default ( #7381 )
...
- Remove `v2` option and install V2 starter branch by default.
- Use new `exec` command to seed data
- Install v2 branch of next.js starter if the option is provided.
- Change the opened browser to `localhost:9000/app`.
- Added a bunch of todos for onboarding flows once we have that
2024-05-21 19:45:43 +00:00
Shahed Nasser
e7a3528367
fix(create-medusa-app): don't open browser to admin if v2 option is passed ( #7253 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-05-06 18:35:32 +02:00
Adrien de Peretti
bbccd6481d
chore(): start moving some packages to the core directory ( #7215 )
2024-05-03 13:37:41 +02:00