Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate hydrogen-react into the hydrogen monorepo #605

Merged
merged 188 commits into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from 179 commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
758dce9
Initial commit from Create Turborepo
frehner Sep 27, 2022
1c33524
Save progress on migration
frehner Sep 28, 2022
494e620
Get storefront api schema and graphql generation working
frehner Sep 28, 2022
aad3091
Update deps, add changeset, fix types with new version
frehner Sep 28, 2022
da7fb02
Add turbo ci checks
frehner Sep 28, 2022
70bbf6c
create the 2022-7 branch
frehner Sep 29, 2022
de0d40b
Change naming, update docs, move readme and contributing
frehner Sep 29, 2022
df400c2
Config alex and get checks passing
frehner Sep 29, 2022
352fdc1
Add cla github action
frehner Sep 29, 2022
5e04cb5
Update actions versions, and run checks before build
frehner Sep 29, 2022
12613eb
Fix branch references to main
frehner Sep 29, 2022
0ff3bb3
test to see if alex is breaking ci stuff (#1)
frehner Sep 29, 2022
ccce9f9
add publish config
frehner Sep 29, 2022
38ec2af
Fix readmes (#2)
frehner Sep 30, 2022
9e3aab2
Add CoC and update package description
frehner Sep 30, 2022
042b07a
Fix docs
frehner Sep 30, 2022
f11fe15
Simplify the logic for external video urls (#3)
frehner Oct 4, 2022
2c5d34d
Remove unnecessary tsconfig items (#4)
frehner Oct 4, 2022
5ec9c3d
Update README.md
rennyG Oct 6, 2022
3e807d0
Fix issues with formatting and filename
frehner Oct 6, 2022
7e106f4
update dependencies (#5)
frehner Oct 11, 2022
ffd44dd
README updates for content type and pkg name (#6)
rennyG Oct 14, 2022
a3bda06
Update README (#7)
elisenyang Oct 17, 2022
a36e228
CI action for publishing the next version automatically (#8)
frehner Oct 17, 2022
3c54a21
Publish next2 (#9)
frehner Oct 17, 2022
41caf55
Try manually doing the publish now (#10)
frehner Oct 17, 2022
f4a0aa5
Go into dir so script can find package.json (#11)
frehner Oct 17, 2022
1e3ce50
Try this configs
frehner Oct 17, 2022
7fb60a6
Change ts moduleresolution (#13)
frehner Oct 18, 2022
b9c3940
Feat/cart provider (#12)
lordofthecactus Oct 20, 2022
71fa977
udpate readmes (#18)
elisenyang Oct 20, 2022
51c4896
Fix issue with file output not being correct (#16)
frehner Oct 20, 2022
0b95868
fix publishing?
frehner Oct 20, 2022
44bd568
cleanup script
frehner Oct 20, 2022
72a7e80
update naming for workflow
frehner Oct 20, 2022
a40228a
remove from npmrc and add to script
frehner Oct 20, 2022
a189e32
show an error when next publish doesn't work
frehner Oct 20, 2022
eb1f780
fix cd script
frehner Oct 20, 2022
9c25a6c
Make the URLs a little more permanent. (#19)
frehner Oct 20, 2022
702df8f
Fix TS typings on moduleResolution: node (#20)
frehner Oct 21, 2022
117ad0e
[ci] release 2022-7 (#15)
github-actions[bot] Oct 21, 2022
00ba187
Update to 2022-10
frehner Oct 24, 2022
de1d160
Update package.json version
frehner Oct 24, 2022
72f8a5c
Fix output bundles, maybe. (#22)
frehner Oct 24, 2022
ee2d59c
Convert project to CJS with ESM files ending in .mjs (#23)
frehner Oct 24, 2022
256f5b7
move script to .mjs
frehner Oct 24, 2022
5229051
And update reference to mjs script
frehner Oct 24, 2022
71b78b0
Initial release of 2022-10 (#24)
frehner Oct 24, 2022
a4507ec
[ci] release 2022-10 (#25)
github-actions[bot] Oct 25, 2022
2250b0d
externalize the deps (#29)
frehner Oct 25, 2022
3eab955
Revert package updates as it causes issues still in nextjs (#31)
frehner Oct 25, 2022
1ccbd1c
metafieldParser() (#45)
frehner Oct 27, 2022
a34f44d
Create CartCost (#46)
lordofthecactus Oct 28, 2022
df7320b
Adding NextJS as an e2e testing point / app (#49)
frehner Nov 7, 2022
3055303
Update issue templates
elisenyang Nov 8, 2022
5b3f529
Update issue templates
elisenyang Nov 8, 2022
140c89a
format fixing :)
frehner Nov 8, 2022
f7a3932
Update the types for MediaFile to allow className (#57)
frehner Nov 9, 2022
8005144
Add <AddToCartButton /> component (#58)
cartogram Nov 9, 2022
fc01865
Move base button (#59)
cartogram Nov 10, 2022
d31be71
Cart checkout button (#60)
cartogram Nov 10, 2022
6c9d0f7
use basebutton on checkoutbutton (#61)
cartogram Nov 10, 2022
f1cb723
Buy now button (#62)
cartogram Nov 10, 2022
3add3be
include xstate in builds (#64)
frehner Nov 11, 2022
80c454e
[ci] release 2022-10 (#47)
github-actions[bot] Nov 11, 2022
676eb75
Add node-specific builds using Vite's --ssr flag (#66)
frehner Nov 14, 2022
2822dee
Fix additional issues with node builds (#68)
frehner Nov 14, 2022
0683765
Cart line provider (#48)
cartogram Nov 15, 2022
ccfbbbd
Add additional functions to ShopifyProvider (#71)
frehner Nov 16, 2022
94fdddd
Add our scalars to the package for other developers (#69)
frehner Nov 16, 2022
2dc6ac4
Add a new utility helper for getting the myshopify domain for the sit…
blittle Nov 16, 2022
a6c2b91
[ci] release 2022-10 (#67)
github-actions[bot] Nov 16, 2022
90b5ccf
Update all deps except Vitest and ModelViewer (#74)
frehner Nov 16, 2022
ad4aca4
Update MediaFile types (#76)
frehner Nov 17, 2022
84705d0
Add stackblitz links and info to issue template (#72)
frehner Nov 18, 2022
669809a
Update ShopifyProvider to have storeDomain match (#78)
frehner Nov 21, 2022
6a3a0b3
`CartLinePrice` component (#50)
lordofthecactus Nov 22, 2022
996a197
[ci] release 2022-10 (#77)
github-actions[bot] Nov 22, 2022
a776e01
Update the types for <Money/> (#80)
frehner Nov 23, 2022
f1ffd57
Show development warnings only once (#85)
frandiox Nov 30, 2022
b1989c9
Fix main / module fields in package.json (#87)
frehner Dec 1, 2022
e0b154a
update workflow files to not used deprecated apis (#88)
frehner Dec 2, 2022
6fa0f49
Saving progress (#90)
frehner Dec 2, 2022
6bfff92
[ci] release 2022-10 (#81)
github-actions[bot] Dec 2, 2022
c45d147
remove file that prevents publishing
frehner Dec 2, 2022
de1429e
Fix/cart optimistic (#93)
lordofthecactus Dec 14, 2022
f570f72
add graphql comments, remove duplicated query, add new field names (#94)
frehner Dec 14, 2022
203abf9
Fixes issues with require() calls in non-node envs (#99)
frehner Dec 17, 2022
d2e5d4e
[ci] release 2022-10 (#96)
github-actions[bot] Dec 19, 2022
3d3d123
Add final changelog (#109)
frehner Jan 6, 2023
2163c6c
[ci] release 2022-10 (#110)
github-actions[bot] Jan 6, 2023
c1359eb
Final for reals, but with readme updates now (#112)
frehner Jan 6, 2023
f0614cd
[ci] release 2022-10 (#113)
github-actions[bot] Jan 7, 2023
da3387a
Start work on 2023-01
frehner Jan 9, 2023
ea3e88e
Update instances in code of 2022-10
frehner Jan 9, 2023
8ee1ffb
Update the schema and types
frehner Jan 9, 2023
9bff83c
Update to shopifyDomain to only provide exactly what is passed in
frehner Jan 9, 2023
541cac7
Deprecated the old metafield parser and updated it to the new way
frehner Jan 9, 2023
cfd8626
Update package.json version
frehner Jan 9, 2023
ebab9ba
Update readmes
frehner Jan 11, 2023
6783a31
Get flattenConnection return types better. (#118)
frehner Jan 12, 2023
5c16c78
Readme cleanup a bit
frehner Jan 12, 2023
ea3959b
Update all possible deps
frehner Jan 12, 2023
de6362b
[React Storefront Kit]: Rename product, `npm` package, and GitHub rep…
mcvinci Jan 17, 2023
9e022a4
Documentation setup (#101)
frehner Jan 17, 2023
49fd663
Get publishing back on
frehner Jan 17, 2023
15d5616
update changelog name
frehner Jan 17, 2023
3555603
Remove migration text
frehner Jan 17, 2023
8b463ac
[ci] release 2023-01 (#123)
github-actions[bot] Jan 17, 2023
a6e373a
Small changelog updates
frehner Jan 17, 2023
2ea046f
add additional note to contributing
frehner Jan 17, 2023
16b6b81
Shopify analytics (#108)
wizardlyhel Jan 18, 2023
79126b4
[ci] release 2023-01 (#124)
github-actions[bot] Jan 18, 2023
58f5c66
Update README.md
elisenyang Jan 18, 2023
12b3239
Update README.md
elisenyang Jan 18, 2023
736cc41
Fix bug in storefront client. (#125)
frehner Jan 18, 2023
f47933b
[ci] release 2023-01 (#126)
github-actions[bot] Jan 18, 2023
5c5c6b6
Update docs and cleanup references (#127)
frehner Jan 19, 2023
e4124cf
update(packages): Updated Generate-docs package to solve errors from …
Jan 23, 2023
739cc1a
Updating the docs links to work (#131)
frehner Jan 23, 2023
65d5bb2
Adding docs for AddToCart and BuyNow buttons (#132)
frehner Jan 24, 2023
5748052
Update README.md
elisenyang Jan 24, 2023
6184517
Adds CartLinePrice and CartCost components to index.ts (#134)
frehner Jan 24, 2023
18c9bb1
Update README.md
elisenyang Jan 26, 2023
2849b93
Adding docs for cartlineprovider (#141)
frehner Jan 26, 2023
6fc7abf
getting cartprovider docs up (#142)
frehner Jan 27, 2023
2231836
Graphql ts docs (#143)
frehner Jan 27, 2023
af84387
Add docs for flatten connection (#144)
frehner Jan 27, 2023
84f439d
Enforce alphabetical exports only in index.ts (#145)
frehner Jan 27, 2023
804365f
Add parse-metafield docs (#149)
frehner Jan 30, 2023
8d8ab13
Adding analytics docs (#138)
frehner Jan 30, 2023
99392f9
Update the SFAPI docs to use satisfies (#151)
frehner Jan 31, 2023
7a27dfa
Add useMoney docs (#152)
frehner Jan 31, 2023
ec6abbb
Update README.md
elisenyang Jan 31, 2023
2e7c3af
update reference landing page (#146)
Jan 31, 2023
d35dc8b
update landing page (#153)
elisenyang Feb 1, 2023
f959cc8
Fix some documentation issues (#154)
frehner Feb 1, 2023
afa2524
Cleanup some docs and how they're presented (#155)
frehner Feb 1, 2023
3309706
Update ShopifyProvider with flattened props (#156)
frehner Feb 2, 2023
40438a0
Renaming it again to hydrogen-react (#157)
frehner Feb 2, 2023
f8b4774
[ci] release 2023-01 (#135)
github-actions[bot] Feb 2, 2023
3ab603c
remove duplicated info
frehner Feb 2, 2023
b8757bd
Update the umd global variable name (#159)
frehner Feb 2, 2023
eb1656f
Tweak docs (#161)
wizardlyhel Feb 3, 2023
c8c9aa3
Make better button docs (#164)
frehner Feb 3, 2023
344c4ed
Tweak docs 2 (#163)
wizardlyhel Feb 3, 2023
e9d32d4
Update the docs for any Money-related components (#165)
frehner Feb 3, 2023
185d165
Last bit of small cleanup (#166)
frehner Feb 3, 2023
07971b3
Fix flattenConnection doc (#168)
wizardlyhel Feb 3, 2023
78118e0
Landing page fixes (#167)
johndcollett Feb 3, 2023
15f1499
fix links to storefront schema (#169)
frehner Feb 3, 2023
9d39d7b
landing page typo (#170)
johndcollett Feb 6, 2023
b6e54bd
Update README.md
elisenyang Feb 7, 2023
6225d33
Deprecate CartLinePrice (#173)
frehner Feb 7, 2023
b8efad0
Fix some docs (#175)
wizardlyhel Feb 9, 2023
ee2d134
Lint updates (#174)
frehner Feb 9, 2023
2bb8c81
Migrate cartlinequantityadjustbutton (#180)
frehner Feb 14, 2023
8a75ef6
[ci] release 2023-01 (#160)
github-actions[bot] Feb 14, 2023
8e0752f
Updating the readmes to use the official docs more (#182)
frehner Feb 15, 2023
9f025d3
Fix two small docs issues (#183)
frehner Feb 15, 2023
35b1986
Fix UMD builds by defining process.env.NODE_ENV (#188)
frehner Feb 16, 2023
37d036f
Fix bug in storefront-client checking on the server (#195)
frehner Feb 23, 2023
67da795
Fix issue with props on cartlinequantityadjustbutton (#196)
frehner Feb 23, 2023
0152f3d
Update all the deps besides model-viewer (#199)
frehner Feb 23, 2023
8302b55
Npm migration (#201)
frehner Feb 27, 2023
51b73d1
[ci] release 2023-01 (#197)
github-actions[bot] Feb 27, 2023
42ace72
prep for migration and renaming to hydrogen-react
frehner Feb 27, 2023
1a0dc0c
integrate
frehner Feb 27, 2023
7ca6891
step 1: migrated hydrogen-react source code
frehner Feb 27, 2023
293495d
Get the dev command working from monorepo root
frehner Feb 27, 2023
cde3165
Merge branch '2023-01' into integrate-hydrogen-react
frehner Feb 28, 2023
607ddf1
dev scripts working with reloads
frehner Feb 28, 2023
9bf5461
CI checks are passing locally for the most part
frehner Feb 28, 2023
6db28b5
Merge branch '2023-01' into integrate-hydrogen-react
frehner Feb 28, 2023
8ed057f
Get ci:checks script working
frehner Feb 28, 2023
8d5a3f4
Update docs and readme for new repo location
frehner Mar 1, 2023
dd240a5
Update issue templates to better include hydrogen-react
frehner Mar 1, 2023
295eab1
Update Hydrogen readme to make room for multiple packages
frehner Mar 1, 2023
03dcc0b
Add a versioning section
frehner Mar 1, 2023
7ef939e
update entry.server.tsx based on new remix template
lordofthecactus Mar 2, 2023
6da7cf3
Revert "update entry.server.tsx based on new remix template"
lordofthecactus Mar 2, 2023
ba12e34
Update README.md
frehner Mar 2, 2023
e0a1dfc
PR feedback
frehner Mar 2, 2023
8f71141
remove npm version
frehner Mar 3, 2023
6d7ca12
Merge branch '2023-01' into integrate-hydrogen-react
frehner Mar 3, 2023
d85ba01
triggering a revalidation maybe?
frehner Mar 3, 2023
6c65426
Revert "triggering a revalidation maybe?"
frehner Mar 3, 2023
246c29d
try with turbo platform workaround?
frehner Mar 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
build
node_modules
bin
*.d.ts
*.d.ts
dist
coverage
packages/hydrogen-react/codegen.ts
packages/hydrogen-react/vite.config.ts
packages/hydrogen-react/vitest.setup.ts
15 changes: 14 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@ body:
label: What is the location of your example repository?
validations:
required: false
- type: dropdown
attributes:
label: Which package or tool is having this issue?
description: Which package or tool is having this issue?
options:
- Hydrogen
- CLI
- hydrogen-react
- Oxygen
- Storefront API
- Other / I don't know
validations:
required: true
- type: input
attributes:
label: What version of Hydrogen are you using?
label: What version of that package or tool are you using?
validations:
required: true
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ contact_links:
use the Discussions for this instead of the issues tab 🙂.
- name: 💬 Hydrogen Discord Channel
url: https://discord.gg/shopifydevs
about: Interact with other people using Hydrogen
about: Interact with other people using Hydrogen.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Fixes #0000 <!-- link to issue if one exists -->
- [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [ ] I've added a [changeset](CONTRIBUTING.md#changesets) if this PR contains user-facing or noteworthy changes
- [ ] I've added [tests](CONTRIBUTING.md#testing) to cover my changes
- [ ] I've added or updated the documentation

<!--
THANK YOU for your pull request! Members from the Hydrogen team will review these changes and provide feedback as soon as they are available.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: 📥 Install dependencies
run: npm ci

- name: 🔬 Lint
- name: 🔬 Check Formatting
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the prettier job, so the name needed to be updated.

run: npm run format:check

typecheck:
Expand Down
134 changes: 134 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,137 @@ node_modules
.turbo
.cache
**/dist
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
frehner marked this conversation as resolved.
Show resolved Hide resolved
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
frehner marked this conversation as resolved.
Show resolved Hide resolved
.env.test
!**/playground/**/.env

# parcel-bundler cache (https://parceljs.org/)
.cache
frehner marked this conversation as resolved.
Show resolved Hide resolved
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# VSCode launch configs
.vscode/
!examples/*/.vscode/
!templates/*/.vscode/

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# User localdev package
packages/localdev

.DS_Store

temp
snow-devil
artifacts

yarn.lock
!/yarn.lock
2 changes: 1 addition & 1 deletion .graphqlrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file should be part of the demo-store template, but the GraphQL VSCode plugin doesn't actually look at folders when searching for this file, so it has to live at the root.
# There is a duplicated file in templates/demo-store/ , and it's kept there so that if someone were to spin up the demo-store on their own then it would be included and "just work"
schema: node_modules/@shopify/hydrogen-react/storefront.schema.json
schema: packages/hydrogen-react/storefront.schema.json
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
build
packages/cli/oclif.manifest.json
dist
packages/hydrogen-react/storefront.schema.json
coverage
74 changes: 35 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<p align="center">
<a href="https://hydrogen.shopify.dev"><img src="./.github/images/hydrogen-logo.svg" alt="Hydrogen Logo"/></a>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@shopify/hydrogen"><img src="https://img.shields.io/npm/v/@shopify/hydrogen.svg?sanitize=true" alt="Version"></a>
<a href="https://github.com/Shopify/hydrogen/blob/main/LICENSE.md"><img src="https://img.shields.io/npm/l/@shopify/hydrogen.svg?sanitize=true" alt="License"></a>
<a href="https://npmcharts.com/compare/@shopify/hydrogen?minimal=true"><img src="https://img.shields.io/npm/dm/@shopify/hydrogen.svg?sanitize=true" alt="Downloads"></a>
</p>
<div style="text-align: center;">

[![MIT License](https://img.shields.io/github/license/shopify/hydrogen)](LICENSE.md)
[![npm downloads](https://img.shields.io/npm/dm/@shopify/hydrogen.svg?sanitize=true)](https://npmcharts.com/compare/@shopify/hydrogen?minimal=true)

</div>
<div align="center">

📚 [Docs](https://shopify.dev/custom-storefronts/hydrogen) | 🗣 [Discord](https://discord.gg/Hefq6w5c5d) | 💬 [Discussions](https://github.com/Shopify/hydrogen/discussions) | 📝 [Changelog](./packages/hydrogen/CHANGELOG.md)
Expand All @@ -17,49 +17,51 @@ Hydrogen is a set of tools, utilities, and best-in-class examples for building a

Hydrogen legacy v1, which is not built on Remix, is available here: https://github.com/Shopify/hydrogen-v1

Get started with Hydrogen with the instructions below ⬇️

## Getting Started
## Getting started with Hydrogen

**Requirements:**

- Node.js version 16.14.0 or higher
- `npm`, `yarn` or `pnpm`
- `npm` version 8.3.1 (or your package manager of choice, such as `yarn` or `pnpm`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this specific version of npm? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an addition by @gfscott ; thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not add npm version, unless there was a requirement for a certain version


1. Install the latest version of Hydrogen:

**Installation:**
```bash
npm create @shopify/hydrogen@latest
```

```bash
# Using `npm`
npm create @shopify/hydrogen@latest
1. Run the local development server:

# Using `yarn`
yarn create @shopify/hydrogen@latest
```bash
npm install
npm run dev
```

# Using `pnpm`
pnpm create @shopify/hydrogen@latest
```
1. Open your new Hydrogen app running at http://localhost:3000.

**Running locally:**
See the complete [Hydrogen docs](https://shopify.dev/custom-storefronts/hydrogen).

1. Start a development server
## Packages in this repo

```bash
# Using `npm`
npm install
npm run dev
Hydrogen is organized as a [monorepo](https://monorepo.tools/), which includes multiple packages that can be used together.

# Using `yarn`
yarn install
yarn dev
| Package | Latest version | Description | Readme |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [`@shopify/hydrogen`](/packages/hydrogen/) | [![Latest badge](https://img.shields.io/npm/v/@shopify/hydrogen/latest.svg)](https://www.npmjs.com/package/@shopify/hydrogen) | Opinionated tools, utilities, and best-in-class examples for building a commerce application with Remix. | [Readme](/packages/hydrogen#readme) |
| [`@shopify/hydrogen-react`](/packages/hydrogen-react/) | [![Latest badge](https://img.shields.io/npm/v/@shopify/hydrogen-react/latest.svg)](https://www.npmjs.com/package/@shopify/hydrogen-react) | Unopionated and performant library of Shopify-specific commerce components, hooks, and utilities. | [Readme](/packages/hydrogen-react#readme) |
| [`@shopify/cli-hydrogen`](/packages/cli/) | [![Latest badge](https://img.shields.io/npm/v/@shopify/cli-hydrogen/latest.svg)](https://www.npmjs.com/package/@shopify/cli-hydrogen) | Hydrogen extension for [Shopify CLI](https://shopify.dev/docs/custom-storefronts/hydrogen/cli). | [Readme](/packages/cli#readme) |
| [`@shopify/create-hydrogen`](/packages/create-hydrogen/) | [![Latest badge](https://img.shields.io/npm/v/@shopify/create-hydrogen/latest.svg)](https://www.npmjs.com/package/@shopify/create-hydrogen) | Generate a new Hydrogen project from the command line. | [Readme](/packages/create-hydrogen#readme) |
| [`@shopify/remix-oxygen`](/packages/remix-oxygen/) | [![Latest badge](https://img.shields.io/npm/v/@shopify/remix-oxygen/latest.svg)](https://www.npmjs.com/package/@shopify/remix-oxygen) | Remix adapter enabling Hydrogen to run on the [Oxygen](https://shopify.dev/custom-storefronts/oxygen) runtime. | [Readme](/packages/remix-oxygen#readme) |

# Using `pnpm`
pnpm install
pnpm dev
```
## Versioning

2. Visit the development environment running at http://localhost:3000.
Hydrogen and hydrogen-react is tied to specific versions of the [Shopify Storefront API](https://shopify.dev/api/storefront), which follows [calver](https://calver.org/).
frehner marked this conversation as resolved.
Show resolved Hide resolved

Learn more about [getting started with Hydrogen](https://shopify.dev/custom-storefronts/hydrogen).
For example, if you're using Storefront API version `2023-01`, then Hydrogen and hydrogen-react versions `2022.1.x` are fully compatible.

If the Storefront API version update includes breaking changes, then Hydrogen and hydrogen-react may also include breaking changes. Because the API version is updated every three months, breaking changes could occur every three months.

Learn more about API [release schedules](https://shopify.dev/api/usage/versioning#release-schedule) at Shopify.

## Contributing to Hydrogen

Expand All @@ -68,9 +70,3 @@ Learn more about [getting started with Hydrogen](https://shopify.dev/custom-stor
## Other handy links

[Learn more about Hydrogen](https://shopify.dev/hydrogen).

👷‍♀️ Add `npm` packages to your project:

- [`@shopify/hydrogen`](https://www.npmjs.com/package/@shopify/hydrogen)
- [`@shopify/cli-hydrogen`](https://www.npmjs.com/package/@shopify/cli-hydrogen)
- [`@shopify/remix-oxygen`](https://www.npmjs.com/package/@shopify/remix-oxygen)
Loading