Skip to content

An example of grunt build for hierarchical compass/sass structure

Notifications You must be signed in to change notification settings

nakalsio/hierarchical-compass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hierarchical-compass

An example of grunt build for hierarchical compass/sass structure

Introduction

The Grunt build can support any kind of project structure for css and js in producing their minified artifacts. In this example, we have a number of parallel projects and their common css that lives adjacent to them. The css will be generated from sass files.

Build Prerequisites

After installing latest git and node.js, run following command to install grunt.js

> npm install -g grunt-cli

sass and compass installations depend on ruby installation. Once ruby is installed, you can run following commands for sass and compass installations.

> gem update --system
> gem install sass 
> gem install compass

Installing dependencies

Before starting grunt build, make sure you run following command to install all dependencies for the grunt build. You might have to sudo if you don't have the security privileges.

> npm install

UI Developer workflow

UI Developers can run following command to kick off daemon for monitoring scss file changes.

> grunt watch

How to build release version of css files

You can generate unique css file names through content hashing. The following build command will create 8 character long hash prefix for the final css artifacts.

> grunt release

The artifacts will be generated in dist folder under each sub project.

About

An example of grunt build for hierarchical compass/sass structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published