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
) - Test your changes to the best of your ability. We've provided a spec/ folder, please run the tests to ensure your changes didn't break something add tests as necessary.
- Update the documentation to reflect your changes if they add or changes current functionality. Make sure you are in the docs folder, then run
bundle && bundle exec foreman start
to compile to documentation. - 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