https://github.com/barrel/barrel-shopify-test
https://github.com/barrel/barrel-shopify-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/barrel/barrel-shopify-test
- Owner: barrel
- Created: 2022-02-24T05:41:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T10:50:00.000Z (over 2 years ago)
- Last Synced: 2025-02-25T14:32:06.258Z (over 1 year ago)
- Language: Liquid
- Size: 1.2 MB
- Stars: 0
- Watchers: 4
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Getting Started
## Prerequisites
* [Node.js (latest LTS version)](https://nodejs.org/en/)
* [pnpm](https://pnpm.io/)
* [Shopify CLI](https://shopify.dev/themes/tools/cli)
## Directory Structure
```bash
└── project
├── assets
├── config
├── frontend
│ └── entrypoints
│ └── # only Vite entry files here
├── layout
├── locales
├── sections
├── snippets
└── templates
└── customers
```
Look at [vite-plugin-shopify](https://github.com/barrel/barrel-shopify/tree/main/packages/vite-plugin-shopify) to learn more.
## Setup
```bash
# Make sure to install the dependencies
pnpm install
```
## Development Server
```bash
# Start the vite server on http://localhost:5173
pnpm start
```
> **Note**: This server is not your theme server. It is the server that vite uses to process your assets, such as scripts or stylesheets. You still need to serve your theme using the Shopify CLI.
## Production
```bash
# Build your CSS and JavaScript assets for production
pnpm build
```
```bash
# Upload your local theme files to Shopify
pnpm deploy
```
Checkout the [Theme commands](https://shopify.dev/docs/api/shopify-cli/theme) for more information.