@shopify/create-hydrogen 5.0.0 → 5.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/dist/assets/hydrogen/starter/.graphqlrc.ts +27 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +16 -0
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/assets/hydrogen/virtual-routes/components/{PageLayout.jsx → Layout.jsx} +2 -2
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +7 -6
- package/dist/{chunk-N7HFZHSO.js → chunk-N57NIGCW.js} +373 -373
- package/dist/create-app.js +180 -179
- package/dist/{error-handler-GEQXZJ25.js → error-handler-7QYA5NK4.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/hydrogen/starter/.graphqlrc.yml +0 -12
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type {IGraphQLConfig} from 'graphql-config';
|
|
2
|
+
import {getSchema} from '@shopify/hydrogen-codegen';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* GraphQL Config
|
|
6
|
+
* @see https://the-guild.dev/graphql/config/docs/user/usage
|
|
7
|
+
* @type {IGraphQLConfig}
|
|
8
|
+
*/
|
|
9
|
+
export default {
|
|
10
|
+
projects: {
|
|
11
|
+
default: {
|
|
12
|
+
schema: getSchema('storefront'),
|
|
13
|
+
documents: [
|
|
14
|
+
'./*.{ts,tsx,js,jsx}',
|
|
15
|
+
'./app/**/*.{ts,tsx,js,jsx}',
|
|
16
|
+
'!./app/graphql/**/*.{ts,tsx,js,jsx}',
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
customer: {
|
|
21
|
+
schema: getSchema('customer-account'),
|
|
22
|
+
documents: ['./app/graphql/customer-account/*.{ts,tsx,js,jsx}'],
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
// Add your own GraphQL projects here for CMS, Shopify Admin API, etc.
|
|
26
|
+
},
|
|
27
|
+
} as IGraphQLConfig;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# skeleton
|
|
2
2
|
|
|
3
|
+
## 2024.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`150854ed`](https://github.com/Shopify/hydrogen/commit/150854ed1352245eef180cc6b2bceb41dd8cc898)]:
|
|
8
|
+
- @shopify/hydrogen@2024.7.2
|
|
9
|
+
|
|
10
|
+
## 2024.7.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Changed the GraphQL config file format to be TS/JS instead of YAML. ([#2311](https://github.com/Shopify/hydrogen/pull/2311)) by [@frandiox](https://github.com/frandiox)
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`18ea233c`](https://github.com/Shopify/hydrogen/commit/18ea233cd327bf3001ec9b107ad66b05c9c78584), [`8b2322d7`](https://github.com/Shopify/hydrogen/commit/8b2322d783078298cd5d20ec5f3b1faf99b7895b)]:
|
|
17
|
+
- @shopify/cli-hydrogen@8.3.0
|
|
18
|
+
|
|
3
19
|
## 2024.7.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2024.7.
|
|
5
|
+
"version": "2024.7.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@remix-run/react": "^2.10.1",
|
|
18
18
|
"@remix-run/server-runtime": "^2.10.1",
|
|
19
|
-
"@shopify/hydrogen": "2024.7.
|
|
19
|
+
"@shopify/hydrogen": "2024.7.2",
|
|
20
20
|
"@shopify/remix-oxygen": "^2.0.5",
|
|
21
21
|
"graphql": "^16.6.0",
|
|
22
22
|
"graphql-tag": "^2.12.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@graphql-codegen/cli": "5.0.2",
|
|
29
29
|
"@remix-run/dev": "^2.10.1",
|
|
30
30
|
"@remix-run/eslint-config": "^2.10.1",
|
|
31
|
-
"@shopify/cli": "^3.
|
|
31
|
+
"@shopify/cli": "^3.64.0",
|
|
32
32
|
"@shopify/hydrogen-codegen": "^0.3.1",
|
|
33
33
|
"@shopify/mini-oxygen": "^3.0.4",
|
|
34
34
|
"@shopify/oxygen-workers-types": "^4.1.2",
|
|
@@ -2,13 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import {
|
|
3
3
|
Links,
|
|
4
4
|
Meta,
|
|
5
|
+
Outlet,
|
|
5
6
|
Scripts,
|
|
6
7
|
ScrollRestoration,
|
|
7
8
|
isRouteErrorResponse,
|
|
8
9
|
useRouteError
|
|
9
10
|
} from "@remix-run/react";
|
|
10
11
|
import favicon from "./assets/favicon.svg";
|
|
11
|
-
import {
|
|
12
|
+
import { Layout } from "./components/Layout.jsx";
|
|
12
13
|
import { useNonce } from "@shopify/hydrogen";
|
|
13
14
|
import styles from "./assets/styles.css?url";
|
|
14
15
|
const links = () => {
|
|
@@ -17,7 +18,7 @@ const links = () => {
|
|
|
17
18
|
{ rel: "icon", type: "image/svg+xml", href: favicon }
|
|
18
19
|
];
|
|
19
20
|
};
|
|
20
|
-
function
|
|
21
|
+
function App() {
|
|
21
22
|
const nonce = useNonce();
|
|
22
23
|
return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
|
|
23
24
|
/* @__PURE__ */ jsxs("head", { children: [
|
|
@@ -35,7 +36,7 @@ function Layout({ children }) {
|
|
|
35
36
|
/* @__PURE__ */ jsx(Links, {})
|
|
36
37
|
] }),
|
|
37
38
|
/* @__PURE__ */ jsxs("body", { children: [
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
+
/* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
|
|
39
40
|
/* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
|
|
40
41
|
/* @__PURE__ */ jsx(Scripts, { nonce })
|
|
41
42
|
] })
|
|
@@ -51,14 +52,14 @@ function ErrorBoundary() {
|
|
|
51
52
|
} else if (error instanceof Error) {
|
|
52
53
|
errorMessage = error.message;
|
|
53
54
|
}
|
|
54
|
-
return /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
|
|
55
|
+
return /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
|
|
55
56
|
/* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
|
|
56
57
|
/* @__PURE__ */ jsx("h2", { children: errorStatus }),
|
|
57
58
|
errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
|
|
58
|
-
] });
|
|
59
|
+
] }) });
|
|
59
60
|
}
|
|
60
61
|
export {
|
|
61
62
|
ErrorBoundary,
|
|
62
|
-
|
|
63
|
+
App as default,
|
|
63
64
|
links
|
|
64
65
|
};
|