Code Monkey home page Code Monkey logo

shopify-theme-starter's Introduction

Folder structure

├── src                 # → Contains all the source files
│   ├── styles 
│   └── scripts
├── theme               # → The shopify theme
│   └──  assets         # → This is where the build system compiles 
├── config.sample.yml 	# → A sample file to configure theme kit
└── webpack.config.js 	# → The webpack configuration file

Instalation and Usage

  1. Install dependencies
yarn install
  1. Make a copy of the config.sample.yml file, rename it to config.yml and add the appropriate values to it.

  2. Start the build and theme kit watch

yarn start

Other useful commands

# Build the theme for production
yarn build:production

# Replace the theme
# Sometimes you want to make sure all changes are in a theme.
# Defaults to the development theme to avoid danger
yarn theme:replace

# Zip the theme folder to upload
# After running it you should have a theme.zip in the root folder 
# to upload to the store if needed
yarn zip

# Open the development theme preview.
# sometimes is a pain to keep going to shopify store to open the preview 
# of your development theme
yarn open

# Sometimes webpack and shopify dont play nice and you might find some JS files
# do not load as intendent. 
# 
# Uncaught (in promise) ChunkLoadError: Loading chunk <file> failed
#
# To solve this issue try running this instead of the yarn:start command 
yarn start:cache

shopify-theme-starter's People

Contributors

juanpasolano avatar

Watchers

James Cloos avatar  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.