@graphcommerce/docs 5.1.0-canary.1 → 5.1.0-canary.11
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/CHANGELOG.md +33 -0
- package/contributing.md +11 -3
- package/magento/seo-migration.md +34 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.1.0-canary.11
|
|
4
|
+
|
|
5
|
+
## 5.1.0-canary.10
|
|
6
|
+
|
|
7
|
+
## 5.1.0-canary.9
|
|
8
|
+
|
|
9
|
+
## 5.1.0-canary.8
|
|
10
|
+
|
|
11
|
+
## 5.1.0-canary.7
|
|
12
|
+
|
|
13
|
+
## 5.1.0-canary.6
|
|
14
|
+
|
|
15
|
+
## 5.1.0-canary.5
|
|
16
|
+
|
|
17
|
+
## 5.1.0-canary.4
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`41fa631b1`](https://github.com/graphcommerce-org/graphcommerce/commit/41fa631b15721625e521772da01fd2c3a2ae82de) - Add a chapter about SEO migration ([@paales](https://github.com/paales))
|
|
22
|
+
|
|
23
|
+
## 5.1.0-canary.3
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
28
|
+
|
|
29
|
+
- Updated the @mui/material package
|
|
30
|
+
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
31
|
+
- Upgraded dependencies including type-fest and graphql-mesh
|
|
32
|
+
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
33
|
+
|
|
34
|
+
## 5.1.0-canary.2
|
|
35
|
+
|
|
3
36
|
## 5.1.0-canary.1
|
|
4
37
|
|
|
5
38
|
## 5.1.0-canary.0
|
package/contributing.md
CHANGED
|
@@ -59,6 +59,7 @@ File structure of GraphCommerce
|
|
|
59
59
|
GraphCommerce uses ESLint for linting and Prettier for code formatting. Install
|
|
60
60
|
the [recommended VS Code extensions](../docs/getting-started/vscode.md)
|
|
61
61
|
|
|
62
|
+
<!--
|
|
62
63
|
### Contributor License Agreement
|
|
63
64
|
|
|
64
65
|
Please make sure you have signed our Contributor License Agreement. We are not
|
|
@@ -66,6 +67,13 @@ asking you to assign copyright to us, but to give us the right to distribute
|
|
|
66
67
|
your code without restriction. We ask this of all contributors in order to
|
|
67
68
|
assure our users of the origin and continuing existence of the code. You only
|
|
68
69
|
need to sign the CLA once.
|
|
70
|
+
-->
|
|
71
|
+
|
|
72
|
+
### Creating a branch
|
|
73
|
+
|
|
74
|
+
1. Fork the repository and clone it locally.
|
|
75
|
+
2. Create a branch for your PR based on the `canary` branch. Use the following
|
|
76
|
+
naming convention: `feature/your-branch-name` or `fix/your-branch-name`
|
|
69
77
|
|
|
70
78
|
### Creating a pull request
|
|
71
79
|
|
|
@@ -73,14 +81,14 @@ need to sign the CLA once.
|
|
|
73
81
|
2. Add your changes
|
|
74
82
|
3. Add a changeset
|
|
75
83
|
|
|
76
|
-
- Run 'yarn changeset' and select
|
|
77
|
-
created.
|
|
84
|
+
- Run 'yarn changeset' and select 'patch' for bugfixes and 'minor' for new
|
|
85
|
+
features. Commit the changeset that is created.
|
|
78
86
|
|
|
79
87
|
<figure>
|
|
80
88
|
|
|
81
89
|

|
|
82
90
|
|
|
83
|
-
<figcaption>Select minor
|
|
91
|
+
<figcaption>Select 'patch' or 'minor' when running `yarn changeset`</figcaption>
|
|
84
92
|
</figure>
|
|
85
93
|
|
|
86
94
|
## Next steps
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# SEO Migration
|
|
2
|
+
|
|
3
|
+
GraphCommerce uses a different URL structure than default Magento to achieve
|
|
4
|
+
better performance.
|
|
5
|
+
|
|
6
|
+
## How are routes handled?
|
|
7
|
+
|
|
8
|
+
- Products have a different URL structure: `/p/[url]`. e.g.
|
|
9
|
+
`/p/my-product-url-key`.
|
|
10
|
+
- Categories use same URL structure: `/[...url]`. e.g. `/my/category/path`.
|
|
11
|
+
|
|
12
|
+
- GraphCommerce does not use any URL suffixes. e.g. `.html`.
|
|
13
|
+
|
|
14
|
+
## Why doesn't GraphCommerce support full URL rewrites?
|
|
15
|
+
|
|
16
|
+
GraphCommerce splits the loaded JavaScript into route specific bundles improves
|
|
17
|
+
performance. This means that the products and categories (and checkout) all have
|
|
18
|
+
their own JavaScript bundle.
|
|
19
|
+
|
|
20
|
+
To load the page the user is visiting as fast as possibble, we directly need to
|
|
21
|
+
know what type of route we are viewing (e.g. `/p/[url]` or `/[...url]`).
|
|
22
|
+
|
|
23
|
+
We don't believe this is a problem for SEO. Most of the big platforms use
|
|
24
|
+
similar structure to do this. (amazon.com, apple.com, wallmart.com, target.com,
|
|
25
|
+
otto.de, etc.)
|
|
26
|
+
|
|
27
|
+
## How do I migrate my SEO URLs?
|
|
28
|
+
|
|
29
|
+
A permanent redirect for product URLs to the `/p/[url]` is made automatically.
|
|
30
|
+
|
|
31
|
+
A permanent redirect for product and category paths ending in the configured
|
|
32
|
+
suffix (e.g. `.html`) is made automatically.
|
|
33
|
+
|
|
34
|
+
Categories use the same URL structure as Magento, no redirection there.
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "5.1.0-canary.
|
|
5
|
+
"version": "5.1.0-canary.11",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "5.1.0-canary.11"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|