This is the Foundation project. We love making super awesome stuff, but even more we like to empower people to make changes on their own. Feel free to fork and improve Foundation.
If you have a compass project and would like updated assets you can run the following command at any given time from within your project directory:
compass create -r zurb-foundation --using foundation
Want to test out the Compass templates? Don't recompile the gem every time, use bundler
like so:
mkdir demo1
cd demo1
echo -e 'source "https://rubygems.org"\n
gem "zurb-foundation", :path => "/path/to/foundation/repo"\n
gem "compass"\n' > Gemfile
bundle exec compass create -r zurb-foundation --using foundation
On subsequent template updates use:
bundle exec compass create -r zurb-foundation --using foundation --force
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - All code should have a 2 space indentation to avoid conflicts.
- Test your changes to the best of your ability.
- Update the documentation to reflect your changes if they add or change current functionality. Instructions on how to view the documentation locally can be found in the README.
- Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
The Foundation JS libraries are tested with Jasmine. Grunt can be used to run the test suite.
- Install
node.js
andnpm
withbrew install node
- You may need to
source
your bash config or restart your terminal client to make sure your PATH is up to date.
- You may need to
- From the root of the project, install required packages locally with
npm install
- Install bower with
npm install -g bower
and and required assets locallybower install
- Install the command line interface for grunt with
npm install -g grunt-cli
- Install PhantomJS with
brew install PhantomJS
(we assume you have Chrome and Firefox installed)- If you get connection errors with PhantomJS when running the suite, ensure
node -v
returnsv0.10.12
or later. Upgrade withbrew upgrade node
- If you get connection errors with PhantomJS when running the suite, ensure
- Run
grunt karma:dev
to run the tests with some real browsers - Run
grunt build:assets
to compile any changes to foundation JS source into testing distribution