Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Add documentation for migrate command #88

Merged
merged 1 commit into from
Feb 16, 2017
Merged

Add documentation for migrate command #88

merged 1 commit into from
Feb 16, 2017

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Feb 1, 2017

Adds documentation for Shopify/slate-cli#108

cc @Shopify/themes-fed

Copy link
Contributor

@bertiful bertiful left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM 👍

slate migrate
```

Converts an existing theme to work with Slate. Run this command from your project root to install dependencies and your theme files moved to to a `src/` directory. Use [theme commands](#theme-commands) to start developing. An empty `styles/` and `scripts/` folder will also be created.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and your theme files moved to to a - 🔥 second to.

docs/index.md Outdated
@@ -18,7 +18,7 @@ Slate allows you to sync local files with your live shop, deploy to multiple env
* Not sure how to create a private app? [Learn how here](https://help.shopify.com/api/guides/api-credentials#get-credentials-through-the-shopify-admin).
* Set the "Theme templates and theme assets" permission to "Read and write".
<img src="{{ "/assets/images/app-permission.jpg" | prepend: site.baseurl }}" alt="Private app permission requirements" class="demo-image demo-image--app">
4. Rename `config-sample.yml` to `config.yml` and add your private app credentials:
4. Rename `config-sample.yml` to `config.yml` and add your private app credentials. Use [this sample config file](https://github.com/Shopify/slate/blob/master/config-sample.yml) if you are using the migration tool.
Copy link
Contributor

@NathanPJF NathanPJF Feb 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this sentence is necessary. You're linking to the same config-sample.yml that is provided after completing step 2. And if they've already done step 2, it's too late to benefit from slate migrate.

This addition makes more sense at step 2.

  1. Create a new theme with slate theme theme-name, where theme-name will be a newly created folder. If you already have a theme locally, you can use the slate migrate command instead.

^ I wouldn't use the wording "migration tool" as it sounds like a separate app - reference the command instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only problem here is that slate migrate will not generate a config-sample.yml for you. There's no other reference to that file so if you don't have it you're SOL.

How about:

  1. Rename config-sample.yml to config.yml and add your private app credentials. Use this sample config file if you prefer to manually create it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still feel the migration command needs to be presented before someone types slate theme. What if in step 2 it links migrate command like in the example I gave and the migrate docs at docs/commands/index.md has the link and write-up you have for a sample config file?

@cshold
Copy link
Contributor Author

cshold commented Feb 6, 2017

Updated the copy a bit @NathanPJF. Info about config.yml is moved to the commands page under migrate.

@NathanPJF
Copy link
Contributor

Looks good - I'll 🎩 Shopify/slate-cli#108 today so these can be merged at the same time

slate migrate
```

Converts an existing theme to work with Slate. Run this command from your project root to install dependencies and restructure your theme files into a `src/` directory. Empty `styles/` and `scripts/` folders will also be created.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty `icons/`, `styles/` and `scripts/` folders will also be created.

@cshold cshold merged commit 3cd6809 into master Feb 16, 2017
@cshold cshold deleted the migrate branch February 16, 2017 14:47
@lock
Copy link

lock bot commented Oct 26, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants