How to Set Up a Local Theme Development Workflow

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • In this video, Liam will show you how to set up a local theme development workflow, using Theme Kit, which allows you to edit theme files on your local machine and push changes up to a live store. He’ll walk you through how to:
    - install the Theme Kit
    - connect it to a live Shopify store
    - push changes
    - setup ignore rules
    More info on Theme Kit on the GitHub page: bit.ly/3js0AEy
    More info on working with themes on our developer documentation: bit.ly/32HKGAf
    Note: When setting up Theme Kit, you'll need to create a private app. You can enable the private app development setting from the “Manage private apps” page in admin. Only the store owner can enable private app development.
    Contents:
    0:00 Introduction
    3:55 Installing Theme Kit
    6:20 Connecting a store to Theme Kit
    15:30 Editing a theme locally and pushing changes
    19:40 Creating ignore rules
    --------------------------------
    Subscribe to our channel for more videos about developing and designing ecommerce stores, apps, and themes with Shopify » / shopifydevs
    Looking for more information about developing on Shopify check out www.developers.shopify.com and shopify.dev/
    Connect with us on Twitter » shopifydevs
    Launch your own online store by visiting Shopify and starting your free trial » bit.ly/VisitShopify
  • Наука та технологія

КОМЕНТАРІ • 56

  • @askquestionsplz
    @askquestionsplz 3 роки тому

    just want to say Liam you are always the contributor to any posts I'm using re: Shopify so thanks for the support over the literal YEARS to the dev community!

  • @davidshawe
    @davidshawe 3 роки тому +1

    Thank you Liam. Really helpful video and very easy to follow. :)

  • @jansentolle8678
    @jansentolle8678 3 роки тому

    Thanks for the video, friend!
    I would love to see more videos about configuring the IDE to work with more effectively with shopify's unique syntax and language injection!

  • @taylorpage8648
    @taylorpage8648 3 роки тому

    Great video thanks! Helpful to include some of the potential gotchas like files to ignore to not override settings.

  • @CristianIlie
    @CristianIlie 3 роки тому

    Thank you! Great tutorial 👍

  • @andressabertolini
    @andressabertolini 3 роки тому

    You're a great tutor, thank you!

  • @willpick
    @willpick 3 роки тому

    Excellent tutorial! Thanks!

  • @task4store-shopifysmalltas667
    @task4store-shopifysmalltas667 4 роки тому +1

    Very Informative :)

  • @jeffb6291
    @jeffb6291 4 роки тому +1

    Thanx Ian. Great video 📹
    I'm more and more interested in shopify development. I'm really looking forward to be part of the developers community.

    • @jeffb6291
      @jeffb6291 4 роки тому

      @@shopifydevs Thanks a lot Liam and yes there is a lot I want to know .. apologies..besides my age.. I am a newbie . I am much interested in how to use CSS grid in
      a context of a loop for example :
      {% for product in collections.staff-picks.products limit:4 %}
      {{ product.title }}
      {{ product.price | money }}
      {% unless product.available %}sold out{% endunless %}


      {% endfor %}
      then I would use class prods as an item in a css grid
      Sorry , not sure how to do that .
      I just paste the code for the sake of an example .
      Something on how to use a css grid in shopify would be wonderful!!!
      Thanx again and have a nice day Liam ! Cheers to the dev team in shopify ! Wonderful job !

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому +1

      @@jeffb6291 Not fully sure on this exact example of grid within a loop, but it is possible to implement CSS Grid, we have two great blog posts that cover that here: www.shopify.ie/partners/blog/css-grid and here: www.shopify.ie/partners/blog/css-grid-framework

    • @jeffb6291
      @jeffb6291 4 роки тому +2

      @@liamgriffin6897 That is great Liam
      I think I really can go from there.
      Excellent articles and well detailed
      Many many thanks 🙏🙏👍👍👍👏🏼👏🏼 hope someday I can pay you a coffee ☕

  • @joeltorres1237
    @joeltorres1237 4 роки тому

    Thanks for the tips! I learned about the ignore_files property. Also, I finally installed the liquid and shopify extensions. It's nice to have the syntax highlighting =)
    I was wondering if you could make a video or if there's already docs on this on how to increment the quantity on a product in the cart and simultaneously update the price without clicking update button.

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому

      Great suggestion for a video Joel - it's on the list! In the meantime, I'm thinking it would involve Ajax: shopify.dev/tutorials/develop-theme-ajax-api-using-jquery

  • @jjuuiiccyyjj
    @jjuuiiccyyjj 4 роки тому +1

    This is great as im just getting into theme development for shopify. Would love to see more videos like this!

    • @CodingWithJan
      @CodingWithJan 4 роки тому +1

      Hey Joshua, awesome to see you here as well!
      Hope you´re doing great :-)

    • @jjuuiiccyyjj
      @jjuuiiccyyjj 4 роки тому

      Jan! Good to see you here too! Hope all is well with you as well, can’t wait for new videos :)
      Take care!

  • @user-ww6ns4hn9r
    @user-ww6ns4hn9r 2 роки тому

    thank you for this tutorial. is there a way to see the changes immediately on localhost? I tried to setup the proxy configuration inside config.yml but it doesn't seem to owkr.

  • @rahulsharma7793
    @rahulsharma7793 3 роки тому

    I want to make a REST call from the Shopify frontend to my Spring Boot application on any button click in liquid. How can I do so?

  • @oswaldoolea2889
    @oswaldoolea2889 3 роки тому +1

    thanks a lot, clear and well paced tutorial. only thing I had problems with was: 1. the windows theme kit line commands ( no abbrevastions like -p -s -t but complete --password --store --themeid ) 2. On Windows, you must use a backslash (\) as the path separator, when configuring the ! config.ylm file to ignore files: path config\settings_data.json 3. finally on command "theme watch --allow-live" to be able to make changes, don't forget to place watch and not only "theme --allow-live"

    • @nikolajovic5545
      @nikolajovic5545 3 роки тому +1

      thanks for " config.ylm file to ignore files: path config\settings_data.json"

  • @eugenefedorov3498
    @eugenefedorov3498 3 роки тому

    How i can see a correct higlights and autocomlit like emmet for .js.liquid

  • @malikbrahimi7504
    @malikbrahimi7504 3 роки тому

    I'm just kind of confused on the private app part. Don't you want it to be public so it can be published to the theme store?

  • @mikecmw8492
    @mikecmw8492 2 роки тому

    Hi, do you know if there is a way using themekit login to redirect to another browser? Like my default is Waterfox but I always use chrome for shopify work.

  • @assad.rajab-2
    @assad.rajab-2 2 роки тому

    Thank you, I noticed that the API is not working anymore, and you need the Admin token in order for this to work

  • @AhsanAli-uz3fo
    @AhsanAli-uz3fo 3 роки тому

    Hi I am getting the following error while downloading the files from my store. PLEASE HELPP!!!!:
    [development] 117 files, Downloaded: 117, Errored: 117
    [development] Errors encountered:
    [development] error downloading templates/search.json.liquid: could not unmarshal JSON from response body
    This usually means Theme Kit received an HTML error page.
    Http Response Status: 401

  • @skyyt4173
    @skyyt4173 3 роки тому

    How can you add external links to your Shopify website? Please please please make a video

  • @rework7562
    @rework7562 2 роки тому +1

    Shopifys documentation says: "Shopify CLI replaces Theme Kit for most Shopify theme development tasks." So maybe you should do a new version of this video-series, since this is outdated...

  • @ArcherCooperUK
    @ArcherCooperUK 4 роки тому +2

    Hey I've got that T-Shirt :)

  • @wheres_bears1378
    @wheres_bears1378 2 роки тому

    Will this work with thinkific? They use liquid also

  • @AmanpreetSinghCHD
    @AmanpreetSinghCHD 4 роки тому

    Hi awesome, a quick question:
    1: Is there a way for me to actually first fully work on my local (ie to see my theme on local do my work test everything and then push to live)
    2: When we get a theme or download a theme it has sass files is there a grunt/gulp way for us to be able to edit it or we need to use name.sass.liquid file to add our new custom styling?

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому +1

      Hi there Robin! Thanks for your questions- hopefully I can help you figure these out.
      1. Because a theme doesn't contain any store data, and Shopify is a hosted platform, it's not possible to have a fully local store. The best option here might be to set up a cloned development environment that you can push changes to, for testing and then when you're happy you can push those changes to the production store.
      2. You can use Gulp to manage your SASS files, here's an example of how this could work: www.codeshopify.com/blog_posts/using-gulp-for-sass-compilation-allows-for-sass-partials-with-liquid-tags
      Hope this helps!

    • @AmanpreetSinghCHD
      @AmanpreetSinghCHD 4 роки тому

      @@liamgriffin6897 Thank you that's helpful

  • @yotamfaraggi4794
    @yotamfaraggi4794 Рік тому

    is this still relevant? cause I know it is suggested to use shopify cli 3

  • @lloydavila6531
    @lloydavila6531 3 роки тому

    Hi Liam, what are the requirements before I can run this setup? Do I need to install packages for the shopify? thanks :)

    • @liamgriffin6897
      @liamgriffin6897 3 роки тому

      Hi there Lloyd! When installing for Mac the only dependancies are homebrew, and when installing for Windows, you'll need chocolatey. Full info here: shopify.github.io/themekit/#installation

  • @shreyasdolaskar4755
    @shreyasdolaskar4755 4 роки тому

    How can I develop theme from Scratch because Shopify does not provide support to slate theme.
    So what can I do now for theme development.

    • @liamgriffin6897
      @liamgriffin6897 3 роки тому

      Hi there Sreyas! We have some advice here on building themes from scratch: www.shopify.ie/partners/blog/78118150-4-essential-tips-for-building-your-first-shopify-theme
      As you mentioned, Slate is no longer supported, but it's still possible to use Slate's starter themes as a blueprint for your own builds: github.com/Shopify/starter-theme

  • @evaldasraisutis3058
    @evaldasraisutis3058 4 роки тому

    Which files or patterns would you recommend adding to git ignore when saving theme to a version control repository?

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому

      Great question Evaldas- the `settings_data.json` would be the most important file to ignore, but depending on how your client/team is working, there could be other files you want to ignore, like `settings_schema.json`, or files within the /assets directory.

    • @evaldasraisutis3058
      @evaldasraisutis3058 4 роки тому +1

      @@liamgriffin6897 I see, thanks. If there's ever a video about such things, I'd definitely like to hear more about version control in theme development. For example, how to determine if any theme files managed by apps should be version controlled. Also, how to design any sections or snippets required by the app in such a way that it plays well with version controlled themes. :)

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому +1

      @@evaldasraisutis3058 Keep your eyes out for a forthcoming video on this :)

  • @gavinchan4627
    @gavinchan4627 4 роки тому

    Hi, I am a Javascript full stack developer. Is there a workflow for guys who use react + node.js to build a Shopify theme or app? thanks

    • @liamgriffin6897
      @liamgriffin6897 4 роки тому +1

      There sure is Gavin, we have a great guide here that runs through how to build an app with node & react: shopify.dev/tutorials/build-a-shopify-app-with-node-and-react Also, keep an eye out for an upcoming video in this series that looks at this workflow too.

  • @Aborichinal
    @Aborichinal 3 роки тому

    Im running into a problem after the command theme watch. The development shows in red and im being instructed to add --allow-live flag which doesnt work for me. It returns zsh command not found
    ANy fix for this?

    • @liamgriffin6897
      @liamgriffin6897 3 роки тому +1

      The required flags is a feature of a new version of Theme Kit, to protect against making changes to live stores. However --allow-live should let you by pass this. Can you check which version of Theme Kit you are running with `theme version`?

    • @Aborichinal
      @Aborichinal 3 роки тому

      thanks i figured out why it wasnt workking for me in the command line.

    • @SEBOATENG
      @SEBOATENG 2 роки тому

      @@Aborichinal How did you get over this problem as i am experience the sam error. thank you.

  • @chaseforrester5226
    @chaseforrester5226 2 роки тому

    Now the password isn't there for the API? They've changed the layout? What do we do now?

  • @roshanshrestha80
    @roshanshrestha80 3 роки тому

    The links are outdated

  • @prashar1983
    @prashar1983 3 роки тому

    My installation stuck on 96%. I have tried two times. Please check screenshot. prntscr.com/udwqxt Please suggest if you have solution for this problem