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.
build
buildjs
buildcss
buildstyle
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
This depends on (Node)[http://nodejs.org] and (npm)[https://npmjs.org].
- Git is a recommendation with your workflow (http://git-scm.com/)
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
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
This is assuming that you have Requirements installed on your system already
$ git clone [email protected]:dakotalightning/Module-Starter.git
$ cd Module-Starter
$ npm install
$ grunt --verbose
or$ grunt
- The file system will be created from your style sheets
- You can now open
styleguide/index.html
$ grunt watch
- This will watch the sass folder for outputs and generate your sass and styleguide as you work
- 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
- yepnope (http://yepnopejs.com/)
- Oct 20, 2013 0.1.0 Started created the full workflow