celsowhite / shopify-themekit-starter

Shopify starter theme and local development workflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shopify Theme Kit Starter

Modern Shopify theme setup. Includes:

  • Base starter theme with basic styling of the key pages.
  • Vue JS cart functionality. I love Vue JS x Shopify. The two technologies work really well together to create dynamic state based updates to your site.
  • Theme Kit integration to sync code to multiple theme environments.
  • Browsersync for local development and auto site refreshes triggered by code changes (including liquid files).
  • Modular js, ES6+ syntax usage and a single minfied bundle for all js and plugins.
  • Modular scss. Including postcss processing (autoprefixing, imports, minification and optimization.)

Requirements

Getting Started

  1. Download the repo and install the packages.
git clone https://github.com/celsowhite/shopify-themekit-starter.git
npm install
  1. Rename config-sample.yml to config.yml and enter your private app details. See here for instructions on how to setup theme kit.
  2. Generate a local ssl certificate so you can securely run that site on https://localhost:3000. Follow the instructions here for creating a self signed SSL certificate with mkcert.

Developing Locally

To work on the theme locally run:

npm run watch

This will:

  • Auto watch all files within the theme folder and upload them to your development theme on shopify's servers.
  • Compile your scripts and styles into minified files and output them to the assets folder.
  • Start browsersyncs local server and proxy your development theme preview. Upon changes to files, the site will auto reload.

Building for Production

To create an optimized production build based on environment, run:

npm run [deploy] or [deploy-production]

About

Shopify starter theme and local development workflow.


Languages

Language:Liquid 48.7%Language:SCSS 26.4%Language:JavaScript 24.9%