- variables - colors, fonts (with imports), sizes
- helpers - additional classes
- typography - default fonts, margins and colors
- forms - forms
- layouts - page layouts, main sections
- components - elements inside main sections
- vendor - css for vendor libraries
- media-queries
We can add additional files like:
- buttons - buttons
- tables - tables
- alerts - alerts
- popups - popups
- node & npm
- ruby & compass
- grunt-cli node package installed globally:
npm install -g grunt-cli
cd package_directory
npm install
This task is used for development. What it does?
- Compiles src/sass files into CSS (static/css).
- Copies src/js files into JS (static/js).
- Running LiveReload that allows refreshing CSS files without browser refresh grunt-contrib-watch.
- Running local sever of static files grunt-contrib-connect.
grunt
Type: Integer
Default: 8000
The port on which the webserver will respond. The task will fail if the specified port is already in use. You can use the special values 0
or '?'
to use a system-assigned port.
grunt --port 8011
This task will optymalize (compress) images.
grunt compress
This task will only compile SASS (src/sass) files into CSS files (static/css).
grunt compile
This task will uglify and compress javascripts from src/js into static/js/app.min.js.
grunt uglify