feat(medusa,dashboard,admin-sdk): Run admin dashboard from Medusa instance (#7330)

This commit is contained in:
Kasper Fabricius Kristensen
2024-05-15 19:52:09 +02:00
committed by GitHub
parent ec5415ea1a
commit 490586f566
82 changed files with 3946 additions and 788 deletions

View File

@@ -117,7 +117,7 @@ function buildLocalCommands(cli, isLocalProject) {
.option(`v2`, {
type: `boolean`,
describe: `Install Medusa with the V2 feature flag enabled. WARNING: Medusa V2 is still in development and shouldn't be used in production.`,
default: false
default: false,
}),
desc: `Create a new Medusa project.`,
handler: handlerP(newStarter),
@@ -238,6 +238,19 @@ function buildLocalCommands(cli, isLocalProject) {
})
),
})
.command({
command: `build`,
desc: `Build your project.`,
builder: (_) => _,
handler: handlerP(
getCommandHandler(`build`, (args, cmd) => {
process.env.NODE_ENV = process.env.NODE_ENV || `development`
cmd(args)
return new Promise((resolve) => {})
})
),
})
.command({
command: `start-cluster`,
desc: `Start development server in cluster mode (beta).`,