GithubHelp home page GithubHelp logo

snipcart-theme's Introduction

snipcart-theme

This repository contains everything needed to generate a snipcart.css file. ​

Installation

​ To get started with this project you'll need to install npm packages. ​

npm install

Setup development environment

Gulp is the build tool used for this project. To setup a development environment, we suggest using the default gulp method. It will watch for file changes and recompile the CSS output automatically. ​

gulp

​ You may also use the sync task. This can be useful if you are working on a customization for a specific project. You can use the proxy flag to specify which URL Browsersync should start a proxy over. ​

gulp sync --proxy https://snipcart.com

​ By default, Browsersync will serve the content on localhost:3006. If you wish to use this setup on the application you are building you can add snipcart.css reference on this path: ​

<link href="http://localhost:3006/themes/base/snipcart.css" rel="stylesheet" type="text/css" />

Deploy assets

​ To generate assets to be deployed, you can use the deploy gulp task. This task will make sure to copy files needed to dist folder and snipcart.css + snipcart.min.css. Images, fonts, and more will also be copied to the dist folder. ​ You may use the version flag to create a version directory inside the dist folder. ​

gulp deploy --version 1.2.3

​ The example above would generate the following directory structure: ​

dist
└───themes
    └───1.2.3
        └───base
            │   snipcart.css
            │   snipcart.min.css
            ├───fonts
            └───img

Branches

​ The default branch is master. Consider it as the latest stable version. ​ We also keep branches for specific versions: ​

  • v1.0

snipcart-theme's People

Contributors

antoineleclair avatar couellet avatar duponthibaut avatar ftremblay avatar maximelaboisson avatar stephroy avatar udyux avatar vgirard avatar

Watchers

 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.