dna_frontend_boilerplate

Project file structure, grunt and css startpoints and mixins

  • 所有者: dnadesign/dna_frontend_boilerplate
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

DNA Front-end boilerplate (Helix)

At DNA we're well known for producing well crafted and tailored design solutions
and our development team has always done the same with the code they've
produced. However as HTML and CSS is notoriously subjective, settling on a
specific way of doing things has been hard. We have worked on an approach to
CSS before (OOCSS) however that effort was largely undermined by responsive.

In the last two years the projects we've been working on have been getting
larger and larger and mostly responsive, which has put pressure on being able to
quickly scale a team and produce consistent results.

Now we've turned to a combination of BEM and atomic design. We believe this
enables developers to work together easily and produce consistent, professional,
maintainable results for clients.

This repository is not just a collection of our default styles and coding
conventions, it also includes a pattern lab of components to use and build
scripts to automate the creation of projects.

The goals of our front end pipeline are:

* Mobile first (responsive is baked in).
* Modular, component driven architecture.
* Use existing libraries (bower, bootstrap)
* Be predictable.
* Reusable between projects.

Installation

// clone the module to somewhere on your machine
git clone git@github.com:dnadesign/dna_frontend_boilerplate.git ~/dna-frontend-boilerplate

// create a symlink in your $PATH to helix
sudo ln -s ~/dna-frontend-boilerplate/bin/helix /usr/local/bin/helix

Usage

Once you have installed Helix, you should be ready to setup your site. Go to an
existing folder and run the following:

helix setup

This operation will create the default structure and outline we'll use.

At any time in the future if you want to update to the latest front end boiler
plate run:

helix update

Note this will wipe any of your local changes.

Out of the box, helix will only generate a very small footprint of helpers and
components. Components are located inside the build/components/ folder. These
components contain the CSS, Javascript and documentation to run and should, to
some extent, be encapsulated from the rest of the site so they can be reused.

Components

Helix is part pattern lab. It includes a number of components and styles out of
the box. The idea being you can compose and reuse components across projects as
a first level citizen.

To list all the components available in helix use helix list. This list is
from the local checkout of the helix binary. To ensure you're got the latest
list of components use helix update to update your binary.

Creating Components

Components can be created via helix create <component> A component will be
created in /build/components/component name and the project grunt file will
automatically pick this up.

Inside a component the following layout is supports

component/
    component.less
    component.x580.less
    component.js
    markup/
        example.html

Javascript and Less files can also be nested in folders if needed.

Deleting Components

Components can be deleted via helix delete <component>

Updating helix within a project

cd $project && helix update

Style Guide

This project using Knyle Style Sheets and builds a living style guide through
the grunt process. Each component can include documentation inside the less
file, running grunt watch will generate the styleguide folder.

主要指标

概览
名称与所有者dnadesign/dna_frontend_boilerplate
主编程语言CSS
编程语言JavaScript (语言数: 5)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2013-08-12 23:32:08
推送于2016-03-31 00:16:27
最后一次提交2016-03-30 15:05:05
发布数1
最新版本名称1.0.0 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数7
关注者数15
派生数3
提交数84
已启用问题?
问题数14
打开的问题数4
拉请求数5
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?