Git Product home page Git Product logo

catboxer / gulp-shopify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasewarner/gulp-shopify

0.0 0.0 0.0 308 KB

Blank slate Shopify theme for Developers, packaged with Gulp.js for processing SCSS, JavaScript (ES6), images and fonts. Made to support Online Store 2.0 features and Shopify CLI.

Home Page: https://jase.io/gulp-shopify

License: GNU General Public License v3.0

JavaScript 1.30% Liquid 97.34% SCSS 1.35%

gulp-shopify's Introduction

Gulp + Shopify

Version: 2.0.3

Author

Jase Warner ( https://jase.io )

If this project has been a helping hand to you, feel free to give this grateful developer a coffee ☕️

Synopsis

Update: 2021/09/15 – This project has been updated to support Shopify CLI and Online Store 2.0 features.

Gulp + Shopify is for Developers wishing to use Gulp.js in combination with Shopify CLI to develop Shopify themes – a tidy solution to the problem with Shopify not allowing sub-directories within the assets directory.

The theme is packaged with Gulp for watching and compiling assets in the dev directory, including SCSS, JS, images, and fonts. When modified, said assets are moved across to the assets directory.

A selection of helpful mixins is also included, most of which are featured in this useful article by @seb_ekstrom.

You may also write your JavaScript in ES6 – The Gulp scripts task uses Babel, so you can use the latest syntax without worrying about browser support.

The theme Liquid and JSON files are all blank canvases – zero faffing, meaning you can crack on with the build right away.

The theme includes the Bootstrap 5 grid and reboot scss files. These can be removed in theme.scss.liquid and password.scss.liquid, or, if you so wish, you may add more Bootstrap SCSS files using @import via ./node_modules/bootstrap/scss/.

Installation

Gulp.js

Clone the repo into your project root.

In Terminal cd into the dev directory and install the Gulp packages (if you haven’t already installed Gulp, you’ll need to do so first):

npm install

Once you have installed the packages, in Terminal, run gulp and then gulp watch.

Any changes to the SCSS files in dev/sass/ will be reflected in theme.css.liquid and/or password.css.liquid in assets.

Any alterations to the JS files in dev/js/ will be concatenated and uglified in assets to theme.js.

Images added to dev/image will be copied across to the assets directory. Similarly, any fonts added to dev/font will be copied across to assets.

Shopify CLI

To get Shopify CLI up and running, follow the instructions here.

To get started on your theme, follow these instructions.

Important: Unfortunately the Shopify CLI hot reload feature fires too soon for Shopify to serve any updated assets, such as CSS or JS. I’ve only been working with Shopify CLI for a couple of weeks now, so maybe I’ve missed something, but I’m finding that a manual reload (delayed by a second or two) is still required after every change.

Features

The Gulp build features the following helpful packages:

Credits

gulp-shopify's People

Contributors

jasewarner avatar blue-eyeswhitedragon 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.