Giter Site home page Giter Site logo

themekit_plus_git_workflow's Introduction

Release cycle for teams using Shopify themeKit/Git

The release cycle would look like the following:

  1. Create developerName theme ID on your Shopify store
  2. Each developer downloads ThemeKit and updates environment settings to reflect the their theme ID
  3. Create pull request for new feature, bug fix, etc.
  4. Merge pull request into the master branch
  5. Deploy theme changes to your live store

Benefits:

  1. Teams can preview work and share progress on Shopify servers
  2. Changes will never upload to the production store unless explicit --env="production" is added AND config.yml is setup with production theme-id
  3. Unlike Shopify Slate, doesn't require any additional tools or configuration to compile code
  4. Shopify servers do all of the compiling.

Downside:

  1. Not true local development

Breakdown:

Download ThemeKit

https://shopify.github.io/themekit/#installation

Setup API access

https://shopify.github.io/themekit/#get-api-access

Create Developer Theme ID

Upload blank theme to shopify [ Dashboard->themes ]
Rename theme to developerName

Clone Production Site from Git

Pull Git Repo git clone ...

Configure Theme

Copy config.yml.example to config.yml

Find the theme id of your personal development theme do not use [live] id
theme get --list

Update development section of config.yml with your theme id

development:
  password: [password]
  theme_id: "[your-theme-id]"
  store: [store].myshopify.com

Developing and Previewing

Automatic upload code changes: theme watch
or
Manually upload code changes: theme deploy

Preview changes on shopify theme open

Create Pull Request for new feature, bug fix, etc

Merging Into Live Theme

  1. Pull master branch
  • Additional WF if still editing using Shopify.com instead of only via code:

  • Download all changes from Shopify live online:
  • theme download --env='production'
  • Check if any changes to shopify online and update git master
  1. Merge developers branch into master branch, fix conflicts, and push
  2. Publish to shopify live store: theme deploy --env='production'

Example config.yml

development:
  password: [password]
  theme_id: "37624578121"
  store: [your-store].myshopify.com

production:
  password: [password]
  theme_id: "37626675273"
  store: [your-store].myshopify.com

themekit_plus_git_workflow's People

Contributors

jdunham2 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.