Skip to content

dakotalightning/Module-Starter

Repository files navigation

Starter point

This is based on SMACSS and BEM

I use this for a starting point for all my projects.

This will create your sass compiled, and generate a kss-node style guide. You can use $ grunt watch to monitor your sass folder for changes and it will compile everything for you.

Tasks

build

buildjs

buildcss
buildstyle

File Structure

styles
├── base
│   ├── layout.scss
│   ├── config.scss
│   ├── typography.scss
├── modules
│   ├── buttons.scss
│   ├── list.scss
│	└── navigation.scss
├── settings
│   ├── extend.scss
│   ├── mixins.scss
│	└── variables.scss
└── state
    └── state.scss

Requirements

This depends on (Node)[http://nodejs.org] and (npm)[https://npmjs.org].

npm packages (installed globally using npm)

Grunt (http://gruntjs.com/)

$ npm install -g grunt-cli

KSS-Node (http://hughsk.github.io/kss-node/)

$ npm install -g kss

CoffeeScript (http://coffeescript.org/)

$ npm install -g coffee-script

gems

Compass (http://compass-style.org/install/)

$ gem update --system
$ gem install compass

Sass (http://sass-lang.com/)

$ gem install sass

Susy (http://susy.oddbird.net/)

$ gem install susy

Installing

This is assuming that you have Requirements installed on your system already

  1. $ git clone [email protected]:dakotalightning/Module-Starter.git
  2. $ cd Module-Starter
  3. $ npm install
  4. $ grunt --verbose or $ grunt
    • The file system will be created from your style sheets
    • You can now open styleguide/index.html
  5. $ grunt watch
    • This will watch the sass folder for outputs and generate your sass and styleguide as you work

Grunt Packages used

  • grunt-contrib-compass
  • grunt-contrib-uglify
  • grunt-contrib-coffee
  • grunt-contrib-cssmin
  • grunt-contrib-clean
  • grunt-contrib-watch
  • grunt-contrib-copy
  • grunt-htmlhint
  • grunt-shell
  • grunt-cssc
  • matchdep

JavaScript Libraries

Release History

  • Oct 20, 2013 0.1.0 Started created the full workflow

About

Start point for grunt styleguide SMACSS workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages