Purpose of tools and their dependencies
- Bower
- Grunt
- Function: to run tasks
- runs libsass. Can also minify JS, CSS and images
- Dependencies:
- installed with npm
- which depends on node.js
- needs libsass to do it’s main job
- Drupal zurb_foundation usage
- There is a
Gruntfile.js
which appears to compile sass as well as do other things.
- Gulp (alternative to Grunt)
- Foundation (gem)
- Function: to create foundation instance (project)
- used once at the beginning
- Dependencies:
- installed with gem
- requires Ruby & Git to operate
- Drupal zurb_foundation usage
- not used. Instead do:
- install module
- create subtheme
- use npm to install dependencies (see
README.txt
)
- www.soholaunch.com/Blog.php?i… —Helpful blog post
Full installation (non Drupal)
apt-get install -y nodejs npm git # npm is node.js package manager
ln -s /usr/bin/nodejs /usr/bin/node
npm install -g bower grunt-cli
gem install sass
gem install foundation
SITE=/home/zurb
mkdir -p $SITE
chmod 777 $SITE
#exit from superuser
PROJ=zurb_proj #project name
cd $SITE
foundation new $PROJ --libsass #will fail if run as root
cd $PROJ
grunt build
Other resources
Drupal zurb_foundation theme