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

coderiver/gulp

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

开源软件名称(OpenSource Name):

coderiver/gulp

开源软件地址(OpenSource Url):

https://github.com/coderiver/gulp

开源编程语言(OpenSource Language):

CSS 53.5%

开源软件介绍(OpenSource Introduction):

Gulp Boilerplate for generic CSS/HTML/JS development

riverco.de gulp boilerplate.

Structure

/src/ - thats where you write code.

/build/ - compiled code. Do not ever edit this folder.

What is happening

We have two options for building html

  1. /src/index.html and /src/partials/ - for old school HTML.

  2. Optionally one can use Pug (it's commented in gulpfile.js). Basic template is in /src/pug/

Sass is compiled and postprocessed with Autoprefixer. We are using gulp-ruby-sass, so don't forget to install Ruby and Sass to use this boilerplate.

src/img/icons are joined into sprite, which could be used in Sass like this:

.icon
    +s(png_name)

src/img/svg are joined into icon font, and can be used like this:

<i class="icon-svg_name"></i>

We are also using simplest include system with gulp-rigger, works for javascrpt and html:

//= partials/partial.html

Naming

We use BEM naming, meaning .block for independent block. .block__element for elements inside that block. And .block_modification for modification of the block.

It's noce to name layout blocks with .l-* prefixes. So you know it's layout.

States of the blocks use prefix .is-*. .is-running, .is-hidden, .is-open.

For javascript hooks we use prefix .js-*.

You are welcome

Have fun using it, or borrowing some parts. In case of issues or ideas just create them on github. Or write us at [email protected].

gl & hf.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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