themekit | Shopify theme development command line tool | Theme library

 by   Shopify Go Version: v1.3.1 License: MIT

kandi X-RAY | themekit Summary

kandi X-RAY | themekit Summary

themekit is a Go library typically used in User Interface, Theme, Visual Studio Code applications. themekit has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Shopify Theme Manipulation CLI. Theme Kit is a cross-platform command line tool that you can use to build Shopify themes.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              themekit has a medium active ecosystem.
              It has 1003 star(s) with 244 fork(s). There are 450 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 86 open issues and 515 have been closed. On average issues are closed in 32 days. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of themekit is v1.3.1

            kandi-Quality Quality

              themekit has no bugs reported.

            kandi-Security Security

              themekit has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              themekit is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              themekit releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of themekit
            Get all kandi verified functions for this library.

            themekit Key Features

            No Key Features are available at this moment for themekit.

            themekit Examples and Code Snippets

            No Code Snippets are available at this moment for themekit.

            Community Discussions

            QUESTION

            Can't update ThemeKit, "Access is denied"
            Asked 2021-Jun-08 at 22:22

            So I've been using ThemeKit to build a Shopify theme and I've been getting a notification in the command-line window that ThemeKit has an upgrade available. It says to use theme update as the command to run to get this done but when I do I get this error message, Could not update and had to roll back. open C:\Program Files\Theme Kit\.theme.exe.new: Access is denied. Anyone else have this issue? I'm working on Windows 10 if that helps...

            ...

            ANSWER

            Answered 2021-Mar-23 at 00:45

            Thanks, @drip, for the solution, which was to open up the command prompt as administrator and then running theme update. Worked like a charm!

            Source https://stackoverflow.com/questions/66702833

            QUESTION

            --allow-live terminal command for shopify development
            Asked 2021-Apr-04 at 10:14

            So while using "themekit" in vs code terminal, I get the following message:

            "This is the live theme on my-store. If you wish to make changes to it, then you will have to pass the --allow-live flag"

            and to resolve it, I add --allow-live flag to the command and it works fine.(as described in the other answer on stack overflow)

            BUT, while it did resolve the issue, everytime I try to use theme watch or theme deploy, it repeatedly asks me to use the --allow-live flag.

            While researching themekit on google, youtube and other tutorials, I saw that it works fine for other developers even if they don't use --allow-live.

            I read the following shopify documentation as well- https://www.shopify.com/partners/blog/checksums

            How is "theme watch --allow-live" different from the "theme watch" command, and how do I make sure that everytime I use themekit, it doesn't ask me to add the flag. Is there a way by which it automatically allows live changes without manually adding the flag everytime I try using themekit.

            ...

            ANSWER

            Answered 2021-Apr-04 at 10:14

            The --allow-live is used only when you are working on a live theme.

            If you don't want to use the --allow-live you must create a development theme and work on that, then the flag will not be required.

            Please note that this flag was added recently (a few months back) so it's possible that you are reading older documentation where this flag was not present.

            The flag cannot be stopped on a live theme, this is a prevention rule so that you don't overwrite the live theme without knowing that you are working on it.

            So theme watch and theme watch --allow-live do the exactly same thing, but the second one just allows for the modification on the live theme.

            Source https://stackoverflow.com/questions/66939520

            QUESTION

            'Add theme settings for configuration' in shopify - Error message 'unexpected token' keeps coming up?
            Asked 2021-Feb-18 at 18:46

            I'm following instructions on shopify developers to create a 'How did you hear about us form field' for my website. FYI I am using safari on a Mac. Everything was working fine until I got to the step of 'Add theme settings for configuration.' In the Config. directory of settings_schema-json, the current code (below) already exists:

            ...

            ANSWER

            Answered 2021-Feb-18 at 18:46

            Missing a comma ,, correct it and works fine

            Update:

            Source https://stackoverflow.com/questions/66260402

            QUESTION

            How to create/use environment variables for API Secret Keys in Shopify/Liquid?
            Asked 2020-Aug-17 at 18:32

            I am trying to use the ipapi API (https://ipapi.com/documentation) to get the geolocation data of users and I have an API key which I will need to use to make the API call to get the JSON results.

            In nodejs, we can use .env to store secret keys and access them with process.env.KEY_NAME. The same goes for servers such as Heroku and AWS, where we can store an API keys as config vars.

            But for shopify, I can't seem to find out where to store secret API keys.

            I have read some examples:

            How to define global variables in Liquid? (this doesn't seem like the right thing to do as I want to store it as a secret and access it from another file).

            https://devcenter.heroku.com/articles/config-vars (only for themekit/slate development).

            Is it safe to just create another .liquid file and place all my secret keys there and just call it from another file?

            Would appreciate if someone could point me the right direction.

            Thank you!

            ...

            ANSWER

            Answered 2020-Aug-17 at 18:32

            You cannot hide secret API keys in Shopify. Instead, if you want to use a service that is secret, you can install your own custom App in the store, and use the App Proxy callback to call you App. Your App can then use secrets to make secret key API calls, and then that data is returned to the App, you send it to your front-end as the results. That is secure.

            On the other hand, for something trivial like calling a geolocation service, you probably have the option to just call them with a public token assigned to your account, no secret. So you'd just use that, and not worry.

            Source https://stackoverflow.com/questions/63448871

            QUESTION

            how to append products line item in shopify mini cart popup on click variant by AJAX?
            Asked 2020-May-16 at 17:22

            I'm new in Shopify. I try many script today but no success. I haven't found any relevant tutorial or documentation how to create mini cart to add product line items on click variant by AJAX. I want to click product a variant and it will add product min cart details in popup [Note: it's not cart page.].

            Here is the example of image

            Here is my code:

            ...

            ANSWER

            Answered 2020-May-16 at 17:22

            From you description, the only problem you seem to have is repeated product data when product count in cart is greater than one. The reason for this is the data returned by cart.json and jQuery append.

            As per Shopify AJAX API docs, cart.json returns the data of whole cart. So on each product add,, you fetch the whole cart again and append it via jQuery to existing content. Simple fix for this is to replace entire HTML instead of using append.

            Source https://stackoverflow.com/questions/61835873

            QUESTION

            Skip Shopify Statistics/analytics Collection while running tests
            Asked 2020-Mar-03 at 09:54

            I'm starting to code some in-browser automated tests for our Shopify store, and I noticed that I've inadvertantly caused a massive traffic spike to our store during the time I was developing.

            Is there a way to make a browser visit not count on Shopify analytics, like a "nostats" queryparam or something? I may eventually end up with dozens of tests running maybe a dozen times a day, and that'll make a significant difference to our analytics.

            Right now I'm testing against a previewed theme deployed with themekit, so I'm not testing against the live theme.

            I could create a dev store and copy over all our products/collections/etc, but I'd really rather test as close to the live store as possible. If that's stupid (or if there's a really easy way to make my dev store mirror my live store), let me know.

            ...

            ANSWER

            Answered 2020-Mar-03 at 09:54

            There's no way to disable Shopify analytics or stop collecting data in any manner you would like to do this. So, you would definitely need to use a development store to run your tests.

            There's a number of apps available for store data syncing/migration. That's an easy option but might be quiet expensive. Depends on your resources though.

            You can also create your own solution to sync the entities you need for testing. Not so easy but good if you would want to apply this process to multiple Shopify projects.

            Source https://stackoverflow.com/questions/60497937

            QUESTION

            Configure an existing theme on Shopify
            Asked 2020-Mar-03 at 05:07

            I'm totally new with Shopify, im trying to Configure an existing theme and fallow the full process form the guideline here (https://shopify.github.io/themekit/) but when I try to run the command theme download it shows me the error requested theme was not found though I setup Private apps and configure everything so is there anything that I missed out of the box.

            ...

            ANSWER

            Answered 2020-Mar-03 at 03:25

            This error is showing when you use the wrong theme ID, check it.

            Source https://stackoverflow.com/questions/60489193

            QUESTION

            What is the shopify workflow process for a site already in production that requires a completely new design for specific pages
            Asked 2020-Feb-13 at 04:39

            I have never worked with shopify before but I have experience with other CMS's.

            I recently got a client with a website already live and with some quick research, I see that I need to create a private app and manage the site with themekit.

            What I need help with is how to properly set up a staging/dev environment to view the changes I make before pushing the changes into production.

            Thanks!

            ...

            ANSWER

            Answered 2020-Feb-13 at 04:39

            Make a theme backup by duplicating your current theme. and make code changes in to this theme ( you can preview your changes without affecting live theme/store) when you and your client happy with the changes you can publish this theme to live.

            Have a look how to backup / duplicate theme.

            https://help.shopify.com/en/manual/using-themes/managing-themes/duplicating-themes

            Hope this will help

            Source https://stackoverflow.com/questions/60199019

            QUESTION

            Selector for Swift method containing one named parameter
            Asked 2019-Dec-05 at 17:21

            I have the following Swift method:

            ...

            ANSWER

            Answered 2019-Dec-05 at 17:21

            The correct selector is

            Source https://stackoverflow.com/questions/59200220

            QUESTION

            Recursive looking Swift extension func, actually isn't. Why not?
            Asked 2019-Nov-30 at 15:19

            I am looking at the Swift code of the ThemeKit theming library.

            In particular I would like to understand the following code in NSColor+ThemeKit.swift:

            ...

            ANSWER

            Answered 2019-Nov-30 at 15:19

            You correctly identified the magic bit: it's called method swizzling, and it's a way of wholesale replacing an existing method implementation.

            You'll see this seemingly-recursive pattern a lot when method swizzling: that themeKitSet call actually runs the original implementation, as the comment says. It's because swizzling swaps the implementations of two methods, in this case themeKitSet and NSDynamicSystemColor.set.

            Therefore, post-swizzle, NSDynamicSystemColor.set runs the code you see there, and themeKitSet has become the original implementation.

            Source https://stackoverflow.com/questions/59117142

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install themekit

            You can install Theme Kit using the command line on the following operating systems:.
            Linux
            macOS
            Windows

            Support

            Refer to Troubleshooting Theme Kit to learn how to identify and resolve common issues in Theme Kit.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Shopify/themekit.git

          • CLI

            gh repo clone Shopify/themekit

          • sshUrl

            git@github.com:Shopify/themekit.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Theme Libraries

            bootstrap

            by twbs

            tailwindcss

            by tailwindlabs

            Semantic-UI

            by Semantic-Org

            bulma

            by jgthms

            materialize

            by Dogfalo

            Try Top Libraries by Shopify

            draggable

            by ShopifyJavaScript

            dashing

            by ShopifyJavaScript

            liquid

            by ShopifyRuby

            sarama

            by ShopifyGo

            toxiproxy

            by ShopifyGo