• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

snipcart/snipcart-theme-v2: Base theme for Snipcart v2

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

snipcart/snipcart-theme-v2

开源软件地址(OpenSource Url):

https://github.com/snipcart/snipcart-theme-v2

开源编程语言(OpenSource Language):

SCSS 91.9%

开源软件介绍(OpenSource Introduction):

snipcart-theme-v2

This repository contains everything needed to generate a snipcart.css file used on Snipcart's v2. ​

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



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap