slate download command
Slate currently doesn’t have a equivalent of Theme Kit’s theme download command. It may be helpful to have this pull down individual files, or the entire hosted site, into the dist folder so developers can use git to see what all has changed.
Scenario: You have to make a hot fix on the live site, or the merchant you are working for made some of their own changes while you were away. How do you find out what exactly changed and across which files?
Other scenario: I make a bunch of changes to my theme settings using the Online editor. How should I have those reflected in my remote files? Currently I would need to go to the settings_data.json files and copy its contents then paste those into my own src/config file (and dist if I want as well).
Location of download
Suggesting the files be pulled into the dist folder because they are essentially compiled files. This command would be there to help developers, particularly those using git, to see what changed and then work on their build files to match.
This is the only thing preventing me from switching from quickshot! Would love to see this in place.
I typically develop sites for clients then only come in later for hot fixes or new feature requests. In between that time, many of my clients will upload new assets, make css changes or change content in template files. All of which I'd like to pull locally and potentially deploy to my development environment.
I was about to open an issue for this feature 😉 . Right now the watch feature does not look upstream for changes that may have been done in the web admin interface. If you try to download using the older themekit tool, it does not respect the folder hierarchy needed with the build system.
If you are using an app that generates code and add it to your files, it can be quite a task to track every changes and transfer them to your local dev environment. For this use case, even quickshot does not seems to be able to it since it is uploading the builded files.
Having the code downloaded to the dist folder would surely be a step forward, but if you track your project with a versioning system, you'll still have to find the code in the dist files, which is almost the same as copying and pasting it from the web editor.
Maybe that a kind of deploy hook in combination with a repo ( github, bitbucket, etc) could be the answer. The web editor would commit the changes to the repo and the sync would be done as usual, by pulling the latest changes from your remote repository... It sounds more complicated though than having a simple remote repository access to your Shopify store. Those are only ideas I throw in the wind here 😉 .
Themekit tool still works. Just tell it what directory to use.
theme download -d src -e production
This issue has been moved to https://github.com/Shopify/slate/issues/229