Skip to content

Commit

Permalink
Launch the Shopify and Vite servers in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Montalvo committed Jun 3, 2023
1 parent d8b7820 commit 2f910f0
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 869 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
assets
pnpm-lock.yaml
*.cjs
*.js
*.ts
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,10 @@ pnpm install
## Development Server

```bash
# Start the vite server on http://localhost:5173
# Launch the Shopify and Vite servers in parallel
pnpm dev
```

```bash
# Serve your theme using the Shopify CLI
shopify theme dev --live-reload full-page
```

## Production

```bash
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@
"version": "0.0.0",
"packageManager": "pnpm@7.12.0",
"scripts": {
"dev": "vite",
"dev": "concurrently --raw --kill-others \"pnpm run dev:shopify\" \"pnpm run dev:vite\"",
"dev:shopify": "shopify theme dev --live-reload full-page --store $npm_package_config_store",
"dev:vite": "vite",
"build": "vite build",
"lint": "standard \"*.js\" \"frontend/**/*.js\"",
"lint": "standard \"*.js\" \"*.cjs\" \"frontend/**/*.js\"",
"format": "prettier -w . --cache --plugin-search-dir=."
},
"devDependencies": {
"@shopify/prettier-plugin-liquid": "^1.1.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.4",
"autoprefixer": "^10.4.8",
"concurrently": "^8.1.0",
"postcss": "^8.4.16",
"postcss-import": "^14.1.0",
"prettier": "^2.8.8",
Expand All @@ -22,5 +25,8 @@
"tailwindcss": "^3.1.8",
"vite": "^4.3.9",
"vite-plugin-shopify": "^2.1.1"
},
"config": {
"store": "my-shop.myshopify.com"
}
}
Loading

0 comments on commit 2f910f0

Please sign in to comment.