@hszrdm/create-commerce 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -191,7 +191,7 @@ async function collectSettings(projectName, flags) {
|
|
|
191
191
|
cookieSecret: secret(48),
|
|
192
192
|
integrationEncryptionKey: secret(48),
|
|
193
193
|
shippingWebhookSecret: secret(48),
|
|
194
|
-
coreVersion: clean(flags["core-version"] || "1.0.
|
|
194
|
+
coreVersion: clean(flags["core-version"] || "1.0.2"),
|
|
195
195
|
}
|
|
196
196
|
} finally {
|
|
197
197
|
rl?.close()
|
|
@@ -321,6 +321,7 @@ function configureBackend(root, settings) {
|
|
|
321
321
|
STORE_DEFAULT_CURRENCY: settings.currency,
|
|
322
322
|
STORE_DEFAULT_COUNTRY: settings.country,
|
|
323
323
|
VITE_ADMIN_BRAND_NAME: `${settings.storeName} – HSZRDM Commerce`,
|
|
324
|
+
PLUGIN_ADMIN_BRAND_NAME: `${settings.storeName} – HSZRDM Commerce`,
|
|
324
325
|
ORDER_EMAIL: settings.orderEmail,
|
|
325
326
|
SUPPORT_EMAIL: settings.supportEmail,
|
|
326
327
|
BILLING_EMAIL: settings.billingEmail,
|
|
@@ -581,5 +582,5 @@ function bool(value) {
|
|
|
581
582
|
}
|
|
582
583
|
|
|
583
584
|
function printHelp() {
|
|
584
|
-
console.log(`HSZRDM Commerce project generator\n\nHasználat:\n npx @hszrdm/create-commerce <project-name> [opciók]\n\nFő opciók:\n --name <név>\n --slug <slug>\n --locale hu-HU\n --country HU\n --currency HUF\n --backend-url http://localhost:9000\n --storefront-url http://localhost:3000\n --admin-email <email>\n --admin-password <password>\n --database-url postgres://...\n --redis-url redis://...\n --postgres-port <port>\n --redis-port <port>\n --core-version 1.0.
|
|
585
|
+
console.log(`HSZRDM Commerce project generator\n\nHasználat:\n npx @hszrdm/create-commerce <project-name> [opciók]\n\nFő opciók:\n --name <név>\n --slug <slug>\n --locale hu-HU\n --country HU\n --currency HUF\n --backend-url http://localhost:9000\n --storefront-url http://localhost:3000\n --admin-email <email>\n --admin-password <password>\n --database-url postgres://...\n --redis-url redis://...\n --postgres-port <port>\n --redis-port <port>\n --core-version 1.0.2\n --non-interactive\n --force\n\nInfrastruktúra:\n Ha --database-url és --redis-url meg van adva, a generátor Dockert nem használ.\n Ha nincsenek megadva, Docker Compose a fallback.\n\nFejlesztői kapcsolók:\n --skip-install\n --skip-docker\n --skip-bootstrap\n --skip-verify\n --skip-git\n\nLokális Core package teszthez:\n HSZRDM_CORE_PACKAGE=/abs/path/to/packages/core npx @hszrdm/create-commerce test-shop\n`)
|
|
585
586
|
}
|
|
@@ -52,7 +52,11 @@ STORE_SLUG=example-store
|
|
|
52
52
|
STORE_LOCALE=hu-HU
|
|
53
53
|
STORE_DEFAULT_CURRENCY=HUF
|
|
54
54
|
STORE_DEFAULT_COUNTRY=HU
|
|
55
|
+
# Direct/reference admin customization fallback.
|
|
55
56
|
VITE_ADMIN_BRAND_NAME=HSZRDM Commerce
|
|
57
|
+
# @hszrdm/core is a Medusa plugin, so plugin admin environment variables are
|
|
58
|
+
# provided by the host application with the PLUGIN_ prefix.
|
|
59
|
+
PLUGIN_ADMIN_BRAND_NAME=HSZRDM Commerce
|
|
56
60
|
|
|
57
61
|
ORDER_EMAIL=orders@example.com
|
|
58
62
|
SUPPORT_EMAIL=support@example.com
|
|
@@ -46,7 +46,7 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac
|
|
|
46
46
|
<main className="shell main">{children}</main>
|
|
47
47
|
<footer className="footer">
|
|
48
48
|
<div className="shell footer-inner">
|
|
49
|
-
<div><strong>{config.store.name}</strong><p className="muted small">
|
|
49
|
+
<div><strong>{config.store.name}</strong><p className="muted small">Powered by HSZRDM Commerce</p></div>
|
|
50
50
|
<nav className="footer-nav"><Link href="/legal">Jogi dokumentumok</Link><Link href="/account">Fiókom</Link><Link href={`/${config.seo.default_country_code}/products`}>Termékek</Link></nav>
|
|
51
51
|
</div>
|
|
52
52
|
</footer>
|