Starting a new theme without one in your theme store already
Issue
Creating a new Slate theme requires a config.yml file where you have defined theme ID already. This means that you need to duplicate/choose a theme online to get the ID. When you run your first deploy, it takes longer than you'd like because we need to do a replace on every file.
Possible solution
ThemeKit has a theme bootstrap command that will create a new theme in your store for you: http://shopify.github.io/themekit/#use-a-new-theme This use the latest release of Timber by default.
Could we have a similar command for Slate that would create your theme using the lastest build? Example:
slate bootstrap —password=[your-password] --store=[your-store.myshopify.com]
Other info
It's likely we will sunset Timber, so the existing theme bootstrap command would then need to either go away or change to pull Slate instead (which would solve this).
/cc @tanema re: Timber sunset
Just as a note I just released a version of theme kit where you can pass a --url flag to bootstrap to make it download a theme zip from somewhere else if you could utilize that for this. However I am also planning on sunsetting the bootstrap command in favour of a new command wizard where the user might be able to pick from a list of starter themes, but who knows when I will get the time to do that.
As for sunsetting Timber, this should be easy to do as long as I can get the https://github.com/Shopify/slate/releases.atom url to work. I am not sure how you enable atom feeds on your releases but once that is working I just have to change the url in themekit.
Cool! That command wizard sounds way better 😄
I am not sure how you enable atom feeds on your releases
Couldn't find an article to confirm this, but I think it's because it's currently a private repo. Did a couple of tests and every public repo I went to I could type releases.atom, but any private repo would return Not Found. The plan is to make the repo public once we release, so I'm optimistic we could get this as a nice add-on later.
There should be a way to upload the bare bones slate theme automatically. As it is now, I have to run slate zip, then upload the zip, get the theme_id, and insert it into config.yml.
The docs, as they are written today, can come across as a bit circular. On one hand Slate claims to create a barebones theme without the need for a base theme but then when it comes to getting a theme_id you must go into the admin and retrieve the id of an existing theme.
If you're unfamiliar (as I am); this won't make sense.
Here's the errors I was getting trying to set an arbitrary theme_id, for people who may be searching issues:
11:08:52 Assets Perform Retrieve at host <myteststore.myshopify.com>
Status: 404 Not Found
Errors: none
11:08:53 [development]Asset Perform Update to config/settings_data.json at host myteststore.myshopify.com
Status: 404 Not Found
Errors: This file is not part of your theme.
Current build process includes uploading a packaged Slate base theme. So you just need to upload that and get the ID. There are also slate commands that are similar to the shopify theme kit, including "slate watch", which is exactly like "theme watch" from the kit. Maybe it's time to close this enhancement request?
Thanks for the reminder, @linuxbastard
I updated the documentation here https://github.com/Shopify/slate/pull/205, but didn't circle back and close this issue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.