Full working blank project for Foundation, Compass and Grunt lovers!
- Foundation 5
- Node.js
- Sass and Compass
- Bower for assets organization
- Grunt.js for building (and many tasks already configured!)
- Great file/folder organization!
- One command build and deploy
- 100% upgradable
First of all, you need to install the applications below:
- Git (dah!)
- Ruby 1.9 or higher
- Node.js
Use the Node.js package manager (you may have it, if you have Node installed) to install bower and grunt.js :
[sudo] npm install -g bower grunt-cli
Now, we will user the Ruby package manager to install Compass
[sudo] gem install compass
Finally, install Foundation
[sudo] gem install foundation
Well done, now you have all the requirements to get this project working!
Just download and unzip or clone the project inside the folder you want
- Download or clone:
git clone https://github.com/ivanhtp/kickstart_foundation5_bower_grunt_compass.git
Now just open your folder and run:
grunt
This project is organized following the structure below:
- bower_components - All the assets and libs used in this project: Foundation, modernizr, jquery, etc...
- node_modules - All plugins used by grunt and modules from Node: clean, uglify, compass, etc...
- scss - The global style of application goes here, basically your foundation overrides.
- img - Put your images here, they will be joined into a sprite in development/img.
- development - Your HTML files and javascripts only. Grunt will bring images and css for you, don't worry.
- build - Here goes your project ready for run. Deploy? Just copy this folder and be happy. DON'T CODE ANYTHING HERE!!!
- config.rb - Compass configuration file. Don't edit it unless you know what you're doing.
- bower.json - Bower assets dependencies goes here. Write any bower dependency you'll need and run
bower install
. - package.json - Project version information for building. Project name, author, version goes here.
- Gruntfile.js - This file is to Grunt, what bower.json is to bower. Here goes Grunt dependencies/plugins and its configurations. Like bower, if you add a new dependency, run
npm install
to download the new dependencies
If you'd like to upgrade to a newer version of Foundation down the road just run:
bower update
This project was created by Ivan Pauletti | @ivanhtp | ivanpauletti [at] gmail.com.