You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,6 +78,7 @@ Shopify Theme Lab is a customizable modular development environment for blazing-
77
78
| - | - | - |
78
79
|[Shopify Theme Lab](https://github.com/uicrooks/shopify-theme-lab)| <imgsrc="https://img.shields.io/github/package-json/v/uicrooks/shopify-theme-lab?color=%236e78ff"> | Modular development environment for blazing-fast Shopify theming |
79
80
|[Shopify Theme Lab CLI](https://github.com/uicrooks/shopify-theme-lab-cli)| <imgsrc="https://img.shields.io/github/package-json/v/uicrooks/shopify-theme-lab-cli?color=%236e78ff"> | Command Line Interface for Shopify Theme Lab |
81
+
|[Shopify Settings Control](https://github.com/uicrooks/shopify-settings-control)| <imgsrc="https://img.shields.io/github/package-json/v/uicrooks/shopify-settings-control?color=%236e78ff"> | Automatic Git version control for Shopify `settings_data.json`|
80
82
| [Shopify Foundation Theme](https://github.com/uicrooks/shopify-foundation-theme) | <imgsrc="https://img.shields.io/github/package-json/v/uicrooks/shopify-foundation-theme?color=%236e78ff"> | A modern Shopify starter theme built with Vue and Tailwind CSS
81
83
<!-- ecosystem (end) -->
82
84
@@ -626,13 +628,19 @@ By running `shopify:init` and entering credentials, the task initializes a new t
626
628
While `npm run start` task is running: The `shopify/` directory is being watched for changes and all changed files are uploaded to the Shopify remote server. After the upload is finished, a request is sent to a `localhost:port` address (specified in `package.json`) and the [shopify-reloadr](https://github.com/uicrooks/shopify-reloadr) package reloads all connected Shopify store sites. *Open the web console to check if a site is connected.*
627
629
<!-- development environment concepts (end) -->
628
630
631
+
<!-- common pitfalls (start) -->
632
+
## Common pitfalls
633
+
634
+
-`<style></style>` and `<script></script>` will be removed on mount inside Vue components (basically everything inside `<div id="app">...</div>`), use `<component is="style"><componet>` and `<component is="script"></componet>` instead
635
+
- If you want to pass an entire Shopify Drop (Object) as a prop, you have to first convert the Drop to `json` and replace all double quotes with single quotes: `<component :shopify-data="{{ product | json | replace: '"', "'" }}"></component>`. Not all Drops can be converted to `json`, if you get an `{"error":"json not allowed for this object"}` it's a Shopify limitation and you have to pass the values in question individually
636
+
<!-- common pitfalls (end) -->
637
+
629
638
<!-- limitations (start) -->
630
639
## Limitations
631
640
632
641
- When the development task is running, the browser console throws a `bundle.css` missing error
633
642
- Already running Shopify tasks only upload files which are changed, a simple re-save of a file, without editing it, won't upload the file to the remote store
634
643
- Vue components inside `.liquid` files can only be used in a non-self-closing `<kebab-case></kebap-case>` manner
635
-
-`<style></style>` and `<script></script>` will be removed on mount inside Vue components (basically everything inside `<div id="app">...</div>`), use `<component is="style"><componet>` and `<component is="script"></componet>` instead
0 commit comments