Giter Site home page Giter Site logo

shopify-barebone-theme's Introduction

Shopify Barebone Theme

The Shopify Barebone Theme is a custom, Node based, developers workflow / starting point for creating awesome Shopify themes, the sexy way! This repository makes us of gulp to support jade templating, template partials, scss partials, merging and uglifying scripts and styles, copying assets, building a shopify compatible build folder, syncing the whole lot with your dev / live store and much more!

Contains

Installation

  • Copy the repo into a local folder and run npm install
  • Configure the shopify upload plugin by renaming the /gulpfile.js/shopify-config-sample.js to /gulpfile.js/tasks/shopify-config.js and fill in your shopify private app credentials which you can find on https://myshop.myshopify.com/admin/apps
  • For initial build and upload Run default gulp task. This will fire the following things:
    • Check if Bower dependencies are installed and if not, installs them
    • Cleans build folder if exists
    • Builds templates, scripts, styles and distribute to appropiate folder in build
    • copies images and config files to build folder
  • Run gulp watch to compile templates on changes and upload them directly to your shopify theme

Build file/folder structure

When you build the app by running gulp it will distribute your files into the build folder with the following Shopify compatible file/folder structure:

.
├── assets
│   ├── screen.css.liquid
│   └── script.min.js
├── config
│   ├── settings.html
│   └── settings_data.json
├── layout
│   └── theme.liquid
├── snippets
│   ├── article-grid-item.liquid
│   ├── collection-grid-item.liquid
│   ├── collection-listing.liquid
│   ├── open-graph-tags.liquid
│   ├── product-grid-item.liquid
│   ├── site-nav.liquid
│   ├── social-links.liquid
│   └── twitter-card.liquid
└── templates
    ├── 404.liquid
    ├── article.liquid
    ├── blog.grid.liquid
    ├── blog.liquid
    ├── cart.liquid
    ├── collection.liquid
    ├── index.liquid
    ├── list-collections.liquid
    ├── page.liquid
    ├── product.liquid
    └── search.liquid

Credits

shopify-barebone-theme's People

Contributors

aderaaij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

shopify-barebone-theme's Issues

Error in readme

/gulpfile.js/shopify-config-sample.js to /gulpfile.js/tasks/shopify-config.js

should be:

/gulpfile.js/shopify-config-sample.js to /gulpfile.js/shopify-config.js

since tasks/shopifyupload.js require shopify config file is as follows:

var credentials = require('../shopify-config').shopifyCredentials

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.