An open API service indexing awesome lists of open source software.

https://github.com/kazuki-tam/shopify-quick-theme-mix

Starter kit which supports GitHub integration for Shopify theme developers.
https://github.com/kazuki-tam/shopify-quick-theme-mix

shopify shopify-theme

Last synced: 8 months ago
JSON representation

Starter kit which supports GitHub integration for Shopify theme developers.

Awesome Lists containing this project

README

          

# shopify-quick-theme-mix

shopify-quick-theme-mix is a template extended from [shopify-quick-theme](https://github.com/Kazuki-tam/shopify-quick-theme).

This starter kit supports Shopify GitHub integration.

[📖 Shopify GitHub integration](https://shopify.dev/themes/tools/github)
## Status

[![Release (latest by date)](https://img.shields.io/github/v/release/Kazuki-tam/shopify-quick-theme-mix)](https://github.com/Kazuki-tam/shopify-quick-theme-mix/releases/tag/v0.0.1)
[![Issues](https://img.shields.io/github/issues/Kazuki-tam/shopify-quick-theme-mix)](https://github.com/Kazuki-tam/shopify-quick-theme-mix/issues)
![Maintenance](https://img.shields.io/maintenance/yes/2025)
![Release date](https://img.shields.io/github/release-date/Kazuki-tam/shopify-quick-theme-mix)

## Features

- Abstracting Shopify CLI command
- Bundle TS files with Rspack
- Transpile SCSS to CSS
- Lint TS files with Biome
- Built-in test runner with Vitest and Playwright

## Requirements

- [Node v22 or higher](https://nodejs.org/en/)
- [Shopify CLI v3.78.2 or higher](https://shopify.dev/docs/api/shopify-cli/theme)

Note: Please refer to [Install Shopify CLI](https://shopify.dev/docs/api/shopify-cli) if you haven't installed Shopify CLI yet.

[📖 Upgrade or uninstall Shopify CLI](https://shopify.dev/docs/storefronts/themes/tools/cli#upgrade-shopify-cli)
## Main dependencies

- [Shopify CLI](https://shopify.dev/themes/tools/cli)
- [pnpm](https://pnpm.io/)
- [Rspack](https://www.rspack.dev/)
- [TypeScript](https://www.typescriptlang.org/)
- [Sass](https://sass-lang.com/)
- [Biome](https://biomejs.dev/)
- [Vitest](https://vitest.dev/)
- [Playwright](https://playwright.dev/)

## How to use

Clone this repository and install dependencies.

```bash
pnpm install
```

Create a .env file at the root directory, and then add your SHOPIFY_FLAG_STORE value at least. Replace the placeholder YOUR_STORE_NAME with your actual store name.

```
SHOPIFY_FLAG_STORE=YOUR_STORE_NAME
```

### Create a new theme

Use `newTheme` command to create a new theme from scratch. This command creates a copy of Dawn.

```bash
pnpm newTheme
```

[📖 Theme commands - init](https://shopify.dev/themes/tools/cli/theme-commands#init)

### Customize an existing theme

Use `pull:new` command to customize an existing theme.

```bash
pnpm pull:new
```

### Add CSS and JavaScript into your theme files

Add these tags in `` section.

```liquid
{{ 'custom-style.css' | asset_url | stylesheet_tag }}
```

```liquid

```

## Available Commands

Recommend you to check out these commands before you get started.

### Start command

Start your project in development mode.

```bash
pnpm dev
```

### Build command

Build your project for production.

```bash
pnpm release
```

Build your project for development.

```bash
pnpm build
```

Other support commands

### Pull command

Retrieve theme files from Shopify without deleting local files.

```bash
pnpm pull
```

### Push command

Upload your local theme files to Shopify without deleting remote files.

```bash
pnpm push
```

Push to your development theme. If you don't have a development theme, then one is created.

```bash
pnpm push:dev
```

Upload the theme to the theme library as a new unpublished theme.

```bash
pnpm push:upload
```

### Deploy command

Build your local files and upload them to Shopify as production.

```bash
pnpm deploy
```

Build your local files and upload them to Shopify as development.

```bash
pnpm deploy:dev
```

### Preview command
Returns links that let you preview the specified theme.

```bash
pnpm preview
```

### Cheat command

Open Shopify Cheat Sheet.

```bash
pnpm cheat
```

[Shopify Cheat Sheet](https://www.shopify.com/partners/shopify-cheat-sheet)

### Lint command

Lint this project code.

```bash
pnpm lint
```

Fix this project code.

```bash
pnpm lint:fix
```

### Test command
Run unit testing.

```bash
pnpm unit
```

```bash
pnpm unit:watch
```

Run End-to-end testing in a headless.

```bash
pnpm e2e
```

Run End-to-end testing with headed browser.

```bash
pnpm e2e:headed
```

Generate End-to-end test code.

```bash
pnpm e2e:codegen
```

### Share command
Uploads your theme as a new, unpublished theme in your theme library.

```bash
pnpm share
```

### Package command
Packages your local theme files into a ZIP file that can be uploaded to Shopify.

```bash
pnpm package
```

### PostInstall command

Install missing TypeScript typings.

```bash
pnpm postInstall
```

## End-to-end test
Please create an env file and run this command if you want to do an End-to-end test.

Install supported browsers.

```bash
pnpm e2e:install
```

## Recommended IDE

[Visual Studio Code](https://code.visualstudio.com/)

## Contributes

Pull requests are always welcome.

## Support
I'll be trying to keep this starter kit as up-to-date as possible.
I hope you buy me a coffee if this starter kit is helpful for you.


Buy Me A Coffee

## License

MIT