@shopify/cli-hydrogen 5.1.2 → 5.2.1
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/dist/commands/hydrogen/build.js +4 -1
- package/dist/commands/hydrogen/dev.js +25 -17
- package/dist/commands/hydrogen/generate/route.test.js +0 -1
- package/dist/commands/hydrogen/init.js +6 -3
- package/dist/commands/hydrogen/init.test.js +2 -0
- package/dist/commands/hydrogen/preview.js +2 -2
- package/dist/commands/hydrogen/setup.js +3 -0
- package/dist/generator-templates/starter/app/components/Footer.tsx +1 -1
- package/dist/generator-templates/starter/app/components/Header.tsx +1 -1
- package/dist/generator-templates/starter/app/components/Search.tsx +3 -3
- package/dist/generator-templates/starter/app/entry.server.tsx +9 -1
- package/dist/generator-templates/starter/app/root.tsx +31 -5
- package/dist/generator-templates/starter/app/routes/$.tsx +4 -0
- package/dist/generator-templates/starter/app/routes/_index.tsx +6 -2
- package/dist/generator-templates/starter/app/routes/account.$.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +2 -7
- package/dist/generator-templates/starter/app/routes/account.profile.tsx +7 -2
- package/dist/generator-templates/starter/app/routes/account.tsx +4 -3
- package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +6 -2
- package/dist/generator-templates/starter/app/routes/account_.login.tsx +6 -2
- package/dist/generator-templates/starter/app/routes/account_.logout.tsx +2 -6
- package/dist/generator-templates/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/blogs.$blogHandle._index.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/blogs._index.tsx +2 -3
- package/dist/generator-templates/starter/app/routes/cart.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/pages.$handle.tsx +1 -2
- package/dist/generator-templates/starter/app/routes/policies.$handle.tsx +2 -3
- package/dist/generator-templates/starter/app/routes/products.$handle.tsx +23 -15
- package/dist/generator-templates/starter/app/routes/search.tsx +1 -2
- package/dist/generator-templates/starter/package.json +5 -5
- package/dist/generator-templates/starter/remix.config.js +1 -0
- package/dist/generator-templates/starter/storefrontapi.generated.d.ts +9 -9
- package/dist/generator-templates/starter/tsconfig.json +1 -0
- package/dist/lib/ast.js +9 -0
- package/dist/lib/check-version.test.js +1 -0
- package/dist/lib/codegen.js +17 -7
- package/dist/lib/environment-variables.js +15 -11
- package/dist/lib/file.js +1 -1
- package/dist/lib/find-port.js +9 -0
- package/dist/lib/flags.js +6 -5
- package/dist/lib/format-code.js +7 -4
- package/dist/lib/graphql/admin/client.js +18 -0
- package/dist/lib/graphql/admin/client.test.js +28 -3
- package/dist/lib/live-reload.js +62 -0
- package/dist/lib/log.js +6 -1
- package/dist/lib/mini-oxygen.js +28 -18
- package/dist/lib/missing-routes.js +17 -1
- package/dist/lib/onboarding/common.js +5 -0
- package/dist/lib/onboarding/local.js +21 -8
- package/dist/lib/remix-config.js +2 -0
- package/dist/lib/remix-version-check.test.js +1 -0
- package/dist/lib/setups/css/index.js +4 -2
- package/dist/lib/setups/css/replacers.js +7 -4
- package/dist/lib/setups/i18n/replacers.js +7 -5
- package/dist/lib/setups/routes/generate.js +15 -29
- package/dist/lib/setups/routes/generate.test.js +1 -3
- package/dist/lib/template-downloader.js +4 -0
- package/dist/lib/transpile-ts.js +5 -3
- package/dist/lib/virtual-routes.js +4 -1
- package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +29 -4
- package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +44 -10
- package/dist/virtual-routes/components/IconBanner.jsx +289 -44
- package/dist/virtual-routes/components/IconDiscord.jsx +18 -1
- package/dist/virtual-routes/components/IconError.jsx +58 -17
- package/dist/virtual-routes/components/IconGithub.jsx +20 -1
- package/dist/virtual-routes/components/IconTwitter.jsx +18 -1
- package/dist/virtual-routes/components/Layout.jsx +2 -1
- package/dist/virtual-routes/routes/index.jsx +199 -94
- package/dist/virtual-routes/virtual-root.jsx +62 -16
- package/oclif.manifest.json +3 -3
- package/package.json +8 -7
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { useLoaderData } from "@remix-run/react";
|
|
2
3
|
import { HydrogenLogoBaseBW } from "../components/HydrogenLogoBaseBW.jsx";
|
|
3
4
|
import { HydrogenLogoBaseColor } from "../components/HydrogenLogoBaseColor.jsx";
|
|
@@ -38,7 +39,7 @@ async function loader({
|
|
|
38
39
|
}
|
|
39
40
|
const HYDROGEN_SHOP_ID = "gid://shopify/Shop/55145660472";
|
|
40
41
|
function ErrorBoundary() {
|
|
41
|
-
return
|
|
42
|
+
return /* @__PURE__ */ jsx(ErrorPage, {});
|
|
42
43
|
}
|
|
43
44
|
function Index() {
|
|
44
45
|
const {
|
|
@@ -49,110 +50,214 @@ function Index() {
|
|
|
49
50
|
const configDone = shopId !== HYDROGEN_SHOP_ID && !isMockShop;
|
|
50
51
|
if (isMockShop || !shopName)
|
|
51
52
|
shopName = "Hydrogen";
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
53
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName, children: [
|
|
54
|
+
configDone ? /* @__PURE__ */ jsx(HydrogenLogoBaseColor, {}) : /* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
|
|
55
|
+
/* @__PURE__ */ jsxs("h1", { children: [
|
|
56
|
+
"Hello, ",
|
|
57
|
+
shopName
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
|
|
60
|
+
/* @__PURE__ */ jsxs("section", { className: "Banner", children: [
|
|
61
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
62
|
+
/* @__PURE__ */ jsx(IconBanner, {}),
|
|
63
|
+
/* @__PURE__ */ jsx("h2", { children: configDone ? "Create your first route" : "Configure storefront token" })
|
|
64
|
+
] }),
|
|
65
|
+
configDone ? /* @__PURE__ */ jsxs("p", { children: [
|
|
66
|
+
"You\u2019re seeing this because you don\u2019t have a home route in your project yet. ",
|
|
67
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
68
|
+
"Run ",
|
|
69
|
+
/* @__PURE__ */ jsx("code", { children: "h2 generate route home" }),
|
|
70
|
+
" to create your home route. Learn more about",
|
|
71
|
+
` `,
|
|
72
|
+
/* @__PURE__ */ jsx(CreateRoutesLink, {})
|
|
73
|
+
] }) : /* @__PURE__ */ jsxs("p", { children: [
|
|
74
|
+
"You\u2019re seeing this because you have not yet configured your storefront token. ",
|
|
75
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
76
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
77
|
+
" To link your store,",
|
|
78
|
+
` `,
|
|
79
|
+
"run ",
|
|
80
|
+
/* @__PURE__ */ jsx("code", { children: "h2 link && h2 env pull" }),
|
|
81
|
+
". Then, run",
|
|
82
|
+
" ",
|
|
83
|
+
/* @__PURE__ */ jsx("code", { children: "h2 generate route home" }),
|
|
84
|
+
" to create your first route.",
|
|
85
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
86
|
+
"Learn more about",
|
|
87
|
+
` `,
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
"a",
|
|
90
|
+
{
|
|
91
|
+
target: "_blank",
|
|
92
|
+
rel: "norefferer noopener",
|
|
93
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
|
|
94
|
+
children: "editing environment variables"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
` `,
|
|
98
|
+
"and",
|
|
99
|
+
` `,
|
|
100
|
+
/* @__PURE__ */ jsx(CreateRoutesLink, {}),
|
|
101
|
+
"."
|
|
102
|
+
] })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ jsx(ResourcesLinks, {})
|
|
105
|
+
] }) });
|
|
97
106
|
}
|
|
98
107
|
function CreateRoutesLink() {
|
|
99
|
-
return
|
|
108
|
+
return /* @__PURE__ */ jsx(
|
|
109
|
+
"a",
|
|
110
|
+
{
|
|
111
|
+
target: "_blank",
|
|
112
|
+
rel: "norefferer noopener",
|
|
113
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/building/begin-development#step-4-create-a-route",
|
|
114
|
+
children: "creating routes"
|
|
115
|
+
}
|
|
116
|
+
);
|
|
100
117
|
}
|
|
101
118
|
function ErrorPage() {
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName: "Hydrogen", children: [
|
|
120
|
+
/* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
|
|
121
|
+
/* @__PURE__ */ jsx("h1", { children: "Hello, Hydrogen" }),
|
|
122
|
+
/* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
|
|
123
|
+
/* @__PURE__ */ jsxs("section", { className: "Banner ErrorBanner", children: [
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
125
|
+
/* @__PURE__ */ jsx(IconError, {}),
|
|
126
|
+
/* @__PURE__ */ jsx("h2", { children: "There\u2019s a problem with your storefront" })
|
|
127
|
+
] }),
|
|
128
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
129
|
+
"Check your domain and API token in your ",
|
|
130
|
+
/* @__PURE__ */ jsx("code", { children: ".env" }),
|
|
131
|
+
" file. Learn more about",
|
|
132
|
+
` `,
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
"a",
|
|
135
|
+
{
|
|
136
|
+
target: "_blank",
|
|
137
|
+
rel: "norefferer noopener",
|
|
138
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
|
|
139
|
+
children: "editing environment variables"
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
"."
|
|
143
|
+
] })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ jsx(ResourcesLinks, {})
|
|
146
|
+
] }) });
|
|
122
147
|
}
|
|
123
148
|
function ResourcesLinks() {
|
|
124
|
-
return
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
149
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("section", { className: "Links", children: [
|
|
150
|
+
/* @__PURE__ */ jsx("h2", { children: "Start building" }),
|
|
151
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
152
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
153
|
+
"a",
|
|
154
|
+
{
|
|
155
|
+
target: "_blank",
|
|
156
|
+
rel: "norefferer noopener",
|
|
157
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/collection-page",
|
|
158
|
+
children: "Collection template"
|
|
159
|
+
}
|
|
160
|
+
) }),
|
|
161
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
162
|
+
"a",
|
|
163
|
+
{
|
|
164
|
+
target: "_blank",
|
|
165
|
+
rel: "norefferer noopener",
|
|
166
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/product-details-page",
|
|
167
|
+
children: "Product template"
|
|
168
|
+
}
|
|
169
|
+
) }),
|
|
170
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
171
|
+
"a",
|
|
172
|
+
{
|
|
173
|
+
target: "_blank",
|
|
174
|
+
rel: "norefferer noopener",
|
|
175
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/cart",
|
|
176
|
+
children: "Cart"
|
|
177
|
+
}
|
|
178
|
+
) })
|
|
179
|
+
] }),
|
|
180
|
+
/* @__PURE__ */ jsx("h2", { children: "Resources" }),
|
|
181
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
182
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
183
|
+
"a",
|
|
184
|
+
{
|
|
185
|
+
target: "_blank",
|
|
186
|
+
rel: "norefferer noopener",
|
|
187
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen",
|
|
188
|
+
children: "Hydrogen docs"
|
|
189
|
+
}
|
|
190
|
+
) }),
|
|
191
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
192
|
+
"a",
|
|
193
|
+
{
|
|
194
|
+
target: "_blank",
|
|
195
|
+
rel: "norefferer noopener",
|
|
196
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/project-structure",
|
|
197
|
+
children: "Remix and project structure"
|
|
198
|
+
}
|
|
199
|
+
) }),
|
|
200
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
201
|
+
"a",
|
|
202
|
+
{
|
|
203
|
+
target: "_blank",
|
|
204
|
+
rel: "norefferer noopener",
|
|
205
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/data-fetching/fetch-data",
|
|
206
|
+
children: "Data queries and fetching"
|
|
207
|
+
}
|
|
208
|
+
) })
|
|
209
|
+
] })
|
|
210
|
+
] }) });
|
|
138
211
|
}
|
|
139
212
|
function Layout({
|
|
140
213
|
shopName,
|
|
141
214
|
children
|
|
142
215
|
}) {
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
216
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
217
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
218
|
+
/* @__PURE__ */ jsx("h1", { children: shopName?.toUpperCase() }),
|
|
219
|
+
/* @__PURE__ */ jsx("p", { children: "\xA0Dev Mode\xA0" }),
|
|
220
|
+
/* @__PURE__ */ jsxs("nav", { children: [
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
"a",
|
|
223
|
+
{
|
|
224
|
+
target: "_blank",
|
|
225
|
+
rel: "norefferer noopener",
|
|
226
|
+
href: "https://discord.com/invite/shopifydevs",
|
|
227
|
+
children: /* @__PURE__ */ jsx(IconDiscord, {})
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ jsx(
|
|
231
|
+
"a",
|
|
232
|
+
{
|
|
233
|
+
target: "_blank",
|
|
234
|
+
rel: "norefferer noopener",
|
|
235
|
+
href: "https://github.com/Shopify/hydrogen",
|
|
236
|
+
children: /* @__PURE__ */ jsx(IconGithub, {})
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ jsx(
|
|
240
|
+
"a",
|
|
241
|
+
{
|
|
242
|
+
target: "_blank",
|
|
243
|
+
rel: "norefferer noopener",
|
|
244
|
+
href: "https://twitter.com/shopifydevs?lang=en",
|
|
245
|
+
children: /* @__PURE__ */ jsx(IconTwitter, {})
|
|
246
|
+
}
|
|
247
|
+
)
|
|
248
|
+
] })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsx("main", { children }),
|
|
251
|
+
/* @__PURE__ */ jsx("footer", { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
252
|
+
"a",
|
|
253
|
+
{
|
|
254
|
+
href: "https://shopify.com",
|
|
255
|
+
target: "_blank",
|
|
256
|
+
rel: "noreferrer noopener",
|
|
257
|
+
children: "Powered by Shopify"
|
|
258
|
+
}
|
|
259
|
+
) }) })
|
|
260
|
+
] });
|
|
156
261
|
}
|
|
157
262
|
const LAYOUT_QUERY = `#graphql
|
|
158
263
|
query layout {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
import {
|
|
2
3
|
Links,
|
|
3
4
|
Meta,
|
|
4
5
|
Outlet,
|
|
5
6
|
Scripts,
|
|
6
|
-
ScrollRestoration
|
|
7
|
+
ScrollRestoration,
|
|
8
|
+
isRouteErrorResponse,
|
|
9
|
+
useRouteError
|
|
7
10
|
} from "@remix-run/react";
|
|
8
11
|
import styles from "./assets/styles.css";
|
|
9
12
|
import favicon from "./assets/favicon.svg";
|
|
@@ -15,23 +18,66 @@ const links = () => {
|
|
|
15
18
|
];
|
|
16
19
|
};
|
|
17
20
|
function App() {
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
|
|
22
|
+
/* @__PURE__ */ jsxs("head", { children: [
|
|
23
|
+
/* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
|
|
24
|
+
/* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
|
|
25
|
+
/* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"meta",
|
|
28
|
+
{
|
|
29
|
+
name: "description",
|
|
30
|
+
content: "A custom storefront powered by Hydrogen"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsx(Meta, {}),
|
|
34
|
+
/* @__PURE__ */ jsx(Links, {})
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsxs("body", { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
|
|
38
|
+
/* @__PURE__ */ jsx(ScrollRestoration, {}),
|
|
39
|
+
/* @__PURE__ */ jsx(Scripts, {})
|
|
40
|
+
] })
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
function ErrorBoundary() {
|
|
44
|
+
const error = useRouteError();
|
|
45
|
+
let errorMessage = "Unknown error";
|
|
46
|
+
let errorStatus = 500;
|
|
47
|
+
if (isRouteErrorResponse(error)) {
|
|
48
|
+
errorMessage = error?.data?.message ?? error.data;
|
|
49
|
+
errorStatus = error.status;
|
|
50
|
+
} else if (error instanceof Error) {
|
|
51
|
+
errorMessage = error.message;
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
|
|
54
|
+
/* @__PURE__ */ jsxs("head", { children: [
|
|
55
|
+
/* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
|
|
56
|
+
/* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
|
|
57
|
+
/* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
"meta",
|
|
60
|
+
{
|
|
61
|
+
name: "description",
|
|
62
|
+
content: "A custom storefront powered by Hydrogen"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ jsx(Meta, {}),
|
|
66
|
+
/* @__PURE__ */ jsx(Links, {})
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ jsxs("body", { children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
|
|
70
|
+
/* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
|
|
71
|
+
/* @__PURE__ */ jsx("h2", { children: errorStatus }),
|
|
72
|
+
errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
|
|
73
|
+
] }) }),
|
|
74
|
+
/* @__PURE__ */ jsx(ScrollRestoration, {}),
|
|
75
|
+
/* @__PURE__ */ jsx(Scripts, {})
|
|
76
|
+
] })
|
|
77
|
+
] });
|
|
33
78
|
}
|
|
34
79
|
export {
|
|
80
|
+
ErrorBoundary,
|
|
35
81
|
App as default,
|
|
36
82
|
links
|
|
37
83
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.1
|
|
2
|
+
"version": "5.2.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"hydrogen:build": {
|
|
5
5
|
"id": "hydrogen:build",
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"styling": {
|
|
267
267
|
"name": "styling",
|
|
268
268
|
"type": "option",
|
|
269
|
-
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
|
|
269
|
+
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
|
|
270
270
|
"multiple": false
|
|
271
271
|
},
|
|
272
272
|
"markets": {
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
"styling": {
|
|
440
440
|
"name": "styling",
|
|
441
441
|
"type": "option",
|
|
442
|
-
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
|
|
442
|
+
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
|
|
443
443
|
"multiple": false
|
|
444
444
|
},
|
|
445
445
|
"markets": {
|
package/package.json
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
|
-
"version": "5.1
|
|
7
|
+
"version": "5.2.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "
|
|
12
|
-
"dev": "tsup --watch
|
|
11
|
+
"build": "tsup && node scripts/build-check.mjs",
|
|
12
|
+
"dev": "tsup --watch",
|
|
13
13
|
"typecheck": "tsc --noEmit",
|
|
14
14
|
"generate:manifest": "node scripts/generate-manifest.mjs",
|
|
15
15
|
"test": "cross-env SHOPIFY_UNIT_TEST=1 vitest run --test-timeout=15000",
|
|
@@ -28,26 +28,27 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@remix-run/react": "1.19.1",
|
|
31
|
-
"@shopify/hydrogen-react": "^2023.7.
|
|
31
|
+
"@shopify/hydrogen-react": "^2023.7.3",
|
|
32
32
|
"@shopify/remix-oxygen": "^1.1.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ast-grep/napi": "
|
|
35
|
+
"@ast-grep/napi": "0.11.0",
|
|
36
36
|
"@graphql-codegen/cli": "3.3.1",
|
|
37
37
|
"@oclif/core": "2.8.11",
|
|
38
38
|
"@remix-run/dev": "1.19.1",
|
|
39
39
|
"@shopify/cli-kit": "3.48.0",
|
|
40
40
|
"@shopify/hydrogen-codegen": "^0.0.2",
|
|
41
|
-
"@shopify/mini-oxygen": "^1.
|
|
41
|
+
"@shopify/mini-oxygen": "^2.1.2",
|
|
42
42
|
"ansi-escapes": "^6.2.0",
|
|
43
43
|
"diff": "^5.1.0",
|
|
44
44
|
"fast-glob": "^3.2.12",
|
|
45
45
|
"fs-extra": "^11.1.0",
|
|
46
|
+
"get-port": "^7.0.0",
|
|
46
47
|
"gunzip-maybe": "^1.4.2",
|
|
47
48
|
"prettier": "^2.8.4",
|
|
48
49
|
"recursive-readdir": "^2.2.3",
|
|
49
50
|
"tar-fs": "^2.1.1",
|
|
50
|
-
"typescript": "^
|
|
51
|
+
"typescript": "^5.2.2"
|
|
51
52
|
},
|
|
52
53
|
"bin": "dist/create-app.js",
|
|
53
54
|
"exports": {
|