-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from garytyler/upgrade-hydrogen-remix-vite
Upgrade Hydrogen to 2024.4.7
- Loading branch information
Showing
157 changed files
with
18,740 additions
and
19,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules | |
.vscode | ||
.hydrogen | ||
.yarn | ||
storefrontapi.generated.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
schema: node_modules/@shopify/hydrogen-react/storefront.schema.json | ||
projects: | ||
default: | ||
schema: 'node_modules/@shopify/hydrogen/storefront.schema.json' | ||
documents: | ||
- '!*.d.ts' | ||
- '*.{ts,tsx,js,jsx}' | ||
- 'app/**/*.{ts,tsx,js,jsx}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
# Hydrogen template: Demo Store | ||
# LZX Frontend | ||
|
||
Hydrogen is Shopify’s stack for headless commerce. Hydrogen is designed to dovetail with [Remix](https://remix.run/), Shopify’s full stack web framework. This template contains a **full-featured setup** of components, queries and tooling to get started with Hydrogen. | ||
## Development | ||
|
||
[Check out Hydrogen docs](https://shopify.dev/custom-storefronts/hydrogen) | ||
[Get familiar with Remix](https://remix.run/docs/en/v1) | ||
### Requirements | ||
|
||
## What's included | ||
- Node >=18.19 (https://nodejs.org) | ||
- Yarn 4.5.3 (https://yarnpkg.com/) | ||
|
||
- Remix | ||
- Hydrogen | ||
- Oxygen | ||
- Shopify CLI | ||
- ESLint | ||
- Prettier | ||
- GraphQL generator | ||
- TypeScript and JavaScript flavors | ||
- Tailwind CSS (via PostCSS) | ||
- Full-featured setup of components and routes | ||
### Getting Started | ||
|
||
## Getting started | ||
Set required environment variables: | ||
|
||
**Requirements:** | ||
- `SESSION_SECRET` | ||
- `PUBLIC_STOREFRONT_API_TOKEN` | ||
- `PRIVATE_STOREFRONT_API_TOKEN` | ||
- `PUBLIC_STORE_DOMAIN` | ||
- `PUBLIC_STOREFRONT_ID` | ||
- `CLUSTER_NAME` | ||
- `DATA_API_BASE_URL` | ||
- `DATA_API_KEY` | ||
- `DATABASE_NAME` | ||
- `DATABASE_URL` | ||
|
||
- Node.js version 16.14.0 or higher | ||
Install dependencies: | ||
|
||
```bash | ||
npm create @shopify/hydrogen@latest -- --template demo-store | ||
``` | ||
yarn install | ||
``` | ||
|
||
Run development server: | ||
|
||
Remember to update `.env` with your shop's domain and Storefront API token! | ||
``` | ||
yarn run dev | ||
``` | ||
|
||
## Building for production | ||
Run development server on local network: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
yarn run dev --host | ||
``` | ||
|
||
## Local development | ||
Build and run preview server: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
yarn run preview | ||
``` |
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.