Best workflow? #34
-
|
It seems to me that Shopify theme development isn't really local development. Their docs suggest running I found this package in my research and I think this is the problem you are solving but I am still unclear on how to spin up the theme locally. Running I don't want to publish until I review changes locally so what am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
@jamesscaggs Create a copy of live theme. Connect copy with packer settings. Once i am done development - i run If i want to deploy to client live store - i can just use the enviroment flag. I don't see this as a real local development enviroment because we packer use proxy but it is the next best thing - to build new big projects with this tool - and it saves us a lot of time already. |
Beta Was this translation helpful? Give feedback.
-
|
Some details on the two commands:
You can have multiple configs in New sites - if you are making a new build, not using any of the live theme code you can run Existing sites - if you are making changes to a site that is live and don't have a copy you can follow this workflow:
|
Beta Was this translation helpful? Give feedback.
@jamesscaggs
Not sure why you use
npm start. Here is my workflow:Create a copy of live theme. Connect copy with packer settings.
run
packer watch- this will start the watcher and it will upload some files but uses proxy to hot-reload local assets which is quite awesome and time saving.Once i am done development - i run
packer build && packer deploy-> which will deploy build files to the copied theme.If i want to deploy to client live store - i can just use the enviroment flag. I don't see this as a real local development enviroment because we packer use proxy but it is the next best thing - to build new big projects with this tool - and it saves us a lot of time already.