UI Layer for lonelyplanet.com
JavaScript HTML CSS Ruby Gherkin Python
Clone or download
Latest commit ee68355 May 17, 2018
Permalink
Failed to load latest commit information.
app Enable span items in left nav May 17, 2018
config Remove airbrake altogether May 4, 2018
features Switch to explicitly specifying HTTPS Sep 12, 2017
git-hooks Attempt to make the pre-commit hook a bit more solid Mar 26, 2014
lib Merge pull request #1659 from lonelyplanet/mk-update-airbrake May 15, 2018
node_modules/rizzo-next/dist bump rizzo-next Feb 16, 2018
public Update favicon Nov 23, 2017
script add rails app scripts dir Sep 9, 2012
spec Update specs May 16, 2018
vendor/assets Merge pull request #1631 from lonelyplanet/bk-bump-trackjs Sep 19, 2017
.bowerrc Add flamsteed with bower Jul 23, 2013
.editorconfig post discussion changes Jan 22, 2014
.gitattributes Attempt to make the pre-commit hook a bit more solid Mar 26, 2014
.gitignore Remove optional deps, change gitignore to include parts of rizzo-next Jan 11, 2016
.gitmodules Add submodules May 20, 2014
.jscs.json Fix issue with jscs, add submodule update to npm Apr 8, 2015
.jshintrc Add ability to have custom renderer to lightbox. Jul 29, 2014
.npmignore Updated paths in .npmignore Jun 18, 2015
.nvmrc Add .nvmrc May 24, 2017
.ruby-gemset.example replace rvmrc example dotfile with ruby-gemset & ruby-version Jan 7, 2014
.ruby-version.example update ruby version Mar 21, 2018
Gemfile Merge branch 'master' into mk-update-airbrake May 8, 2018
Gemfile.lock Merge pull request #1659 from lonelyplanet/mk-update-airbrake May 15, 2018
Gruntfile.js Bring back GTM changes Feb 6, 2017
LICENSE Add Lonely Planet as project owner Apr 14, 2014
README.md Switch to explicitly specifying HTTPS Sep 12, 2017
Rakefile Remove relic avocado rake tasks Sep 17, 2013
bower.json Bump jquery.dfp to v1.9 to use AMD Jan 27, 2017
config.ru Merge remote-tracking branch 'beaker/master' Sep 16, 2013
karma.conf.js Remove Beta Code Jun 21, 2016
package.json bump rizzo-next Feb 16, 2018
rizzo.gemspec Switch to explicitly specifying HTTPS Sep 12, 2017

README.md

Rizzo

Rizzo is the UI layer for lonelyplanet.com. Rizzo also serves LP's header and footer, assets and Style Guide.

The main goal of Rizzo is to enable sharing of templates and assets across all LP applications. This helps us to reduce complexity and increase reusability. There is a write-up of the thought process behind Rizzo on the engineering blog.

Install & Get Dependencies

$ git clone git@github.com:lonelyplanet/rizzo.git && cd rizzo
$ cp .ruby-version.example .ruby-version
$ cp .ruby-gemset.example .ruby-gemset
$ cd .
$ bundle install
$ npm install
$ grunt setup # sets up jscs & jshint git precommit hook for contributors, and inits the private font submodule

Note for non Lonely Planet staff

Due to licensing restrictions imposed on our fonts you will have to manually create some empty files in order to run Rizzo locally:

$ touch app/assets/stylesheets/fonts/_font.sass
$ touch app/assets/stylesheets/fonts/_font_woff2.sass

Documentation

Full documentation about Rizzo and development guidelines is available at https://rizzo.lonelyplanet.com/documentation/general/development-principles.

Jasmine Tests

There is a suite of JavaScript tests in spec/javascripts. These tests are currently using Jasmine v1.x from grunt-contrib-jasmine v0.5.x.

In order to run the tests you'll need a few things installed with node.js.

npm install -g grunt-cli  # Install grunt globally
npm install # Install packages from package.json

You can now run the following to run the tests with grunt...

grunt ci

It should look like...

##Run tests

grunt ci
grunt jshint
grunt jscs
bundle exec rspec
bundle exec cucumber