@shopify/cli-hydrogen 5.1.2 → 5.2.0
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 +26 -17
- package/dist/commands/hydrogen/init.js +3 -0
- package/dist/commands/hydrogen/init.test.js +2 -0
- package/dist/commands/hydrogen/preview.js +4 -3
- 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/root.tsx +24 -1
- 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 +1 -2
- 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 +2 -2
- package/dist/generator-templates/starter/remix.config.js +1 -0
- package/dist/generator-templates/starter/storefrontapi.generated.d.ts +9 -9
- 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/find-port.js +9 -0
- package/dist/lib/flags.js +3 -2
- package/dist/lib/format-code.js +3 -0
- 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/replacers.js +7 -4
- package/dist/lib/setups/i18n/replacers.js +7 -5
- package/dist/lib/setups/routes/generate.js +4 -1
- package/dist/lib/template-downloader.js +4 -0
- package/dist/lib/transpile-ts.js +1 -0
- package/dist/lib/virtual-routes.js +4 -1
- package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +26 -4
- package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +40 -10
- package/dist/virtual-routes/components/IconBanner.jsx +286 -44
- package/dist/virtual-routes/components/IconDiscord.jsx +17 -1
- package/dist/virtual-routes/components/IconError.jsx +55 -17
- package/dist/virtual-routes/components/IconGithub.jsx +19 -1
- package/dist/virtual-routes/components/IconTwitter.jsx +17 -1
- package/dist/virtual-routes/components/Layout.jsx +1 -1
- package/dist/virtual-routes/routes/index.jsx +110 -94
- package/dist/virtual-routes/virtual-root.jsx +7 -15
- package/oclif.manifest.json +1 -1
- package/package.json +7 -6
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
const IconGithub = (props) =>
|
|
1
|
+
const IconGithub = (props) => /* @__PURE__ */ React.createElement(
|
|
2
|
+
"svg",
|
|
3
|
+
{
|
|
4
|
+
width: 20,
|
|
5
|
+
height: 20,
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
...props
|
|
9
|
+
},
|
|
10
|
+
/* @__PURE__ */ React.createElement(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
clipRule: "evenodd",
|
|
15
|
+
d: "M9.997 0C4.473 0 0 4.588 0 10.253c0 4.537 2.862 8.369 6.835 9.727.5.09.687-.218.687-.487 0-.243-.012-1.05-.012-1.91-2.512.475-3.161-.627-3.361-1.204-.113-.295-.6-1.205-1.025-1.448-.35-.192-.85-.667-.013-.68.788-.012 1.35.744 1.537 1.052.9 1.55 2.337 1.114 2.912.845.087-.666.35-1.115.637-1.371-2.224-.256-4.548-1.14-4.548-5.062 0-1.115.387-2.038 1.024-2.756-.1-.256-.45-1.307.1-2.717 0 0 .838-.269 2.75 1.051.8-.23 1.649-.346 2.499-.346.85 0 1.699.115 2.499.346 1.912-1.333 2.749-1.05 2.749-1.05.55 1.409.2 2.46.1 2.716.637.718 1.025 1.628 1.025 2.756 0 3.934-2.337 4.806-4.561 5.062.362.32.674.936.674 1.897 0 1.371-.012 2.473-.012 2.82 0 .268.187.589.687.486a10.036 10.036 0 0 0 4.93-3.74 10.45 10.45 0 0 0 1.88-5.987C19.993 4.588 15.52 0 9.997 0Z",
|
|
16
|
+
fill: "#5C5F62"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
2
20
|
export {
|
|
3
21
|
IconGithub
|
|
4
22
|
};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
const IconTwitter = (props) =>
|
|
1
|
+
const IconTwitter = (props) => /* @__PURE__ */ React.createElement(
|
|
2
|
+
"svg",
|
|
3
|
+
{
|
|
4
|
+
width: 23,
|
|
5
|
+
height: 20,
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
...props
|
|
9
|
+
},
|
|
10
|
+
/* @__PURE__ */ React.createElement(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M20.53 4.979c.014.217.014.434.014.653C20.544 12.305 15.824 20 7.193 20v-.004C4.643 20 2.146 19.214 0 17.732c.37.048.743.072 1.117.073 2.113.002 4.165-.76 5.828-2.166-2.008-.04-3.77-1.45-4.384-3.506a4.356 4.356 0 0 0 2.118-.087C2.49 11.57.915 9.5.915 7.096v-.064a4.414 4.414 0 0 0 2.13.632C.983 6.18.348 3.229 1.593.92c2.382 3.155 5.897 5.073 9.67 5.276-.378-1.754.139-3.592 1.358-4.825 1.89-1.912 4.862-1.814 6.639.22A9.023 9.023 0 0 0 22.24.364c-.35 1.17-1.084 2.162-2.063 2.793a8.822 8.822 0 0 0 2.694-.795A9.97 9.97 0 0 1 20.53 4.98Z",
|
|
14
|
+
fill: "#5C5F62"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
);
|
|
2
18
|
export {
|
|
3
19
|
IconTwitter
|
|
4
20
|
};
|
|
@@ -38,7 +38,7 @@ async function loader({
|
|
|
38
38
|
}
|
|
39
39
|
const HYDROGEN_SHOP_ID = "gid://shopify/Shop/55145660472";
|
|
40
40
|
function ErrorBoundary() {
|
|
41
|
-
return
|
|
41
|
+
return /* @__PURE__ */ React.createElement(ErrorPage, null);
|
|
42
42
|
}
|
|
43
43
|
function Index() {
|
|
44
44
|
const {
|
|
@@ -49,110 +49,126 @@ function Index() {
|
|
|
49
49
|
const configDone = shopId !== HYDROGEN_SHOP_ID && !isMockShop;
|
|
50
50
|
if (isMockShop || !shopName)
|
|
51
51
|
shopName = "Hydrogen";
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<IconBanner />
|
|
62
|
-
<h2>{configDone ? "Create your first route" : "Configure storefront token"}</h2>
|
|
63
|
-
</div>
|
|
64
|
-
{configDone ? <p>
|
|
65
|
-
{"You\u2019re seeing this because you don\u2019t have a home route in your project yet. "}
|
|
66
|
-
<br />
|
|
67
|
-
{"Run "}
|
|
68
|
-
<code>h2 generate route home</code>
|
|
69
|
-
{" to create your home route. Learn more about"}
|
|
70
|
-
{` `}
|
|
71
|
-
<CreateRoutesLink />
|
|
72
|
-
</p> : <p>
|
|
73
|
-
{"You\u2019re seeing this because you have not yet configured your storefront token. "}
|
|
74
|
-
<br />
|
|
75
|
-
<br />
|
|
76
|
-
{" To link your store,"}
|
|
77
|
-
{` `}
|
|
78
|
-
{"run "}
|
|
79
|
-
<code>{"h2 link && h2 env pull"}</code>
|
|
80
|
-
{". Then, run"}
|
|
81
|
-
{" "}
|
|
82
|
-
<code>h2 generate route home</code>
|
|
83
|
-
{" to create your first route."}
|
|
84
|
-
<br />
|
|
85
|
-
{"Learn more about"}
|
|
86
|
-
{` `}
|
|
87
|
-
<a target="_blank" rel="norefferer noopener" href="https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables">editing environment variables</a>
|
|
88
|
-
{` `}
|
|
89
|
-
{"and"}
|
|
90
|
-
{` `}
|
|
91
|
-
<CreateRoutesLink />
|
|
92
|
-
{"."}
|
|
93
|
-
</p>}
|
|
94
|
-
</section>
|
|
95
|
-
<ResourcesLinks />
|
|
96
|
-
</Layout></>;
|
|
52
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Layout, { shopName }, configDone ? /* @__PURE__ */ React.createElement(HydrogenLogoBaseColor, null) : /* @__PURE__ */ React.createElement(HydrogenLogoBaseBW, null), /* @__PURE__ */ React.createElement("h1", null, "Hello, ", shopName), /* @__PURE__ */ React.createElement("p", null, "Welcome to your new custom storefront"), /* @__PURE__ */ React.createElement("section", { className: "Banner" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(IconBanner, null), /* @__PURE__ */ React.createElement("h2", null, configDone ? "Create your first route" : "Configure storefront token")), configDone ? /* @__PURE__ */ React.createElement("p", null, "You\u2019re seeing this because you don\u2019t have a home route in your project yet. ", /* @__PURE__ */ React.createElement("br", null), "Run ", /* @__PURE__ */ React.createElement("code", null, "h2 generate route home"), " to create your home route. Learn more about", ` `, /* @__PURE__ */ React.createElement(CreateRoutesLink, null)) : /* @__PURE__ */ React.createElement("p", null, "You\u2019re seeing this because you have not yet configured your storefront token. ", /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("br", null), " To link your store,", ` `, "run ", /* @__PURE__ */ React.createElement("code", null, "h2 link && h2 env pull"), ". Then, run", " ", /* @__PURE__ */ React.createElement("code", null, "h2 generate route home"), " to create your first route.", /* @__PURE__ */ React.createElement("br", null), "Learn more about", ` `, /* @__PURE__ */ React.createElement(
|
|
53
|
+
"a",
|
|
54
|
+
{
|
|
55
|
+
target: "_blank",
|
|
56
|
+
rel: "norefferer noopener",
|
|
57
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables"
|
|
58
|
+
},
|
|
59
|
+
"editing environment variables"
|
|
60
|
+
), ` `, "and", ` `, /* @__PURE__ */ React.createElement(CreateRoutesLink, null), ".")), /* @__PURE__ */ React.createElement(ResourcesLinks, null)));
|
|
97
61
|
}
|
|
98
62
|
function CreateRoutesLink() {
|
|
99
|
-
return
|
|
63
|
+
return /* @__PURE__ */ React.createElement(
|
|
64
|
+
"a",
|
|
65
|
+
{
|
|
66
|
+
target: "_blank",
|
|
67
|
+
rel: "norefferer noopener",
|
|
68
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/building/begin-development#step-4-create-a-route"
|
|
69
|
+
},
|
|
70
|
+
"creating routes"
|
|
71
|
+
);
|
|
100
72
|
}
|
|
101
73
|
function ErrorPage() {
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<p>
|
|
112
|
-
{"Check your domain and API token in your "}
|
|
113
|
-
<code>.env</code>
|
|
114
|
-
{" file. Learn more about"}
|
|
115
|
-
{` `}
|
|
116
|
-
<a target="_blank" rel="norefferer noopener" href="https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables">editing environment variables</a>
|
|
117
|
-
{"."}
|
|
118
|
-
</p>
|
|
119
|
-
</section>
|
|
120
|
-
<ResourcesLinks />
|
|
121
|
-
</Layout></>;
|
|
74
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Layout, { shopName: "Hydrogen" }, /* @__PURE__ */ React.createElement(HydrogenLogoBaseBW, null), /* @__PURE__ */ React.createElement("h1", null, "Hello, Hydrogen"), /* @__PURE__ */ React.createElement("p", null, "Welcome to your new custom storefront"), /* @__PURE__ */ React.createElement("section", { className: "Banner ErrorBanner" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(IconError, null), /* @__PURE__ */ React.createElement("h2", null, "There\u2019s a problem with your storefront")), /* @__PURE__ */ React.createElement("p", null, "Check your domain and API token in your ", /* @__PURE__ */ React.createElement("code", null, ".env"), " file. Learn more about", ` `, /* @__PURE__ */ React.createElement(
|
|
75
|
+
"a",
|
|
76
|
+
{
|
|
77
|
+
target: "_blank",
|
|
78
|
+
rel: "norefferer noopener",
|
|
79
|
+
href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables"
|
|
80
|
+
},
|
|
81
|
+
"editing environment variables"
|
|
82
|
+
), ".")), /* @__PURE__ */ React.createElement(ResourcesLinks, null)));
|
|
122
83
|
}
|
|
123
84
|
function ResourcesLinks() {
|
|
124
|
-
return
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
85
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("section", { className: "Links" }, /* @__PURE__ */ React.createElement("h2", null, "Start building"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
86
|
+
"a",
|
|
87
|
+
{
|
|
88
|
+
target: "_blank",
|
|
89
|
+
rel: "norefferer noopener",
|
|
90
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/collection-page"
|
|
91
|
+
},
|
|
92
|
+
"Collection template"
|
|
93
|
+
)), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
94
|
+
"a",
|
|
95
|
+
{
|
|
96
|
+
target: "_blank",
|
|
97
|
+
rel: "norefferer noopener",
|
|
98
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/product-details-page"
|
|
99
|
+
},
|
|
100
|
+
"Product template"
|
|
101
|
+
)), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
102
|
+
"a",
|
|
103
|
+
{
|
|
104
|
+
target: "_blank",
|
|
105
|
+
rel: "norefferer noopener",
|
|
106
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/building/cart"
|
|
107
|
+
},
|
|
108
|
+
"Cart"
|
|
109
|
+
))), /* @__PURE__ */ React.createElement("h2", null, "Resources"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
110
|
+
"a",
|
|
111
|
+
{
|
|
112
|
+
target: "_blank",
|
|
113
|
+
rel: "norefferer noopener",
|
|
114
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen"
|
|
115
|
+
},
|
|
116
|
+
"Hydrogen docs"
|
|
117
|
+
)), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
118
|
+
"a",
|
|
119
|
+
{
|
|
120
|
+
target: "_blank",
|
|
121
|
+
rel: "norefferer noopener",
|
|
122
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/project-structure"
|
|
123
|
+
},
|
|
124
|
+
"Remix and project structure"
|
|
125
|
+
)), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement(
|
|
126
|
+
"a",
|
|
127
|
+
{
|
|
128
|
+
target: "_blank",
|
|
129
|
+
rel: "norefferer noopener",
|
|
130
|
+
href: "https://shopify.dev/custom-storefronts/hydrogen/data-fetching/fetch-data"
|
|
131
|
+
},
|
|
132
|
+
"Data queries and fetching"
|
|
133
|
+
)))));
|
|
138
134
|
}
|
|
139
135
|
function Layout({
|
|
140
136
|
shopName,
|
|
141
137
|
children
|
|
142
138
|
}) {
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
139
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("header", null, /* @__PURE__ */ React.createElement("h1", null, shopName?.toUpperCase()), /* @__PURE__ */ React.createElement("p", null, "\xA0Dev Mode\xA0"), /* @__PURE__ */ React.createElement("nav", null, /* @__PURE__ */ React.createElement(
|
|
140
|
+
"a",
|
|
141
|
+
{
|
|
142
|
+
target: "_blank",
|
|
143
|
+
rel: "norefferer noopener",
|
|
144
|
+
href: "https://discord.com/invite/shopifydevs"
|
|
145
|
+
},
|
|
146
|
+
/* @__PURE__ */ React.createElement(IconDiscord, null)
|
|
147
|
+
), /* @__PURE__ */ React.createElement(
|
|
148
|
+
"a",
|
|
149
|
+
{
|
|
150
|
+
target: "_blank",
|
|
151
|
+
rel: "norefferer noopener",
|
|
152
|
+
href: "https://github.com/Shopify/hydrogen"
|
|
153
|
+
},
|
|
154
|
+
/* @__PURE__ */ React.createElement(IconGithub, null)
|
|
155
|
+
), /* @__PURE__ */ React.createElement(
|
|
156
|
+
"a",
|
|
157
|
+
{
|
|
158
|
+
target: "_blank",
|
|
159
|
+
rel: "norefferer noopener",
|
|
160
|
+
href: "https://twitter.com/shopifydevs?lang=en"
|
|
161
|
+
},
|
|
162
|
+
/* @__PURE__ */ React.createElement(IconTwitter, null)
|
|
163
|
+
))), /* @__PURE__ */ React.createElement("main", null, children), /* @__PURE__ */ React.createElement("footer", null, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
164
|
+
"a",
|
|
165
|
+
{
|
|
166
|
+
href: "https://shopify.com",
|
|
167
|
+
target: "_blank",
|
|
168
|
+
rel: "noreferrer noopener"
|
|
169
|
+
},
|
|
170
|
+
"Powered by Shopify"
|
|
171
|
+
))));
|
|
156
172
|
}
|
|
157
173
|
const LAYOUT_QUERY = `#graphql
|
|
158
174
|
query layout {
|
|
@@ -15,21 +15,13 @@ const links = () => {
|
|
|
15
15
|
];
|
|
16
16
|
};
|
|
17
17
|
function App() {
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<Links />
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<Layout><Outlet /></Layout>
|
|
29
|
-
<ScrollRestoration />
|
|
30
|
-
<Scripts />
|
|
31
|
-
</body>
|
|
32
|
-
</html>;
|
|
18
|
+
return /* @__PURE__ */ React.createElement("html", { lang: "en" }, /* @__PURE__ */ React.createElement("head", null, /* @__PURE__ */ React.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ React.createElement("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }), /* @__PURE__ */ React.createElement("title", null, "Hydrogen"), /* @__PURE__ */ React.createElement(
|
|
19
|
+
"meta",
|
|
20
|
+
{
|
|
21
|
+
name: "description",
|
|
22
|
+
content: "A custom storefront powered by Hydrogen"
|
|
23
|
+
}
|
|
24
|
+
), /* @__PURE__ */ React.createElement(Meta, null), /* @__PURE__ */ React.createElement(Links, null)), /* @__PURE__ */ React.createElement("body", null, /* @__PURE__ */ React.createElement(Layout, null, /* @__PURE__ */ React.createElement(Outlet, null)), /* @__PURE__ */ React.createElement(ScrollRestoration, null), /* @__PURE__ */ React.createElement(Scripts, null)));
|
|
33
25
|
}
|
|
34
26
|
export {
|
|
35
27
|
App as default,
|
package/oclif.manifest.json
CHANGED
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.
|
|
7
|
+
"version": "5.2.0",
|
|
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,21 +28,22 @@
|
|
|
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.2",
|
|
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.1",
|
|
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",
|