Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

finn-no/gardr-finn-js

Repository files navigation

Garðr - FINN bundle

Build Status Dependency Status devDependency Status

Sauce Test Status

Garðr is a library for embedding content from external sources such as advertisements or similar third party content. This project bundles together the host, ext and plugins needed for FINN.no, so we can use this in our different apps where we use Garðr.

Building

Prerequisites

Building

$ npm install
$ npm run build

Releasing

We have release scripts that bumps version, tags git, pushes to git with tags, deploys to maven and publishes to npm. All you have to do is choose patch/minor/major:

$ npm run release:patch
$ npm run release:minor
$ npm run release:major

To test the new version locally before a release, use npm link for npm, or one of the maven scripts

$ npm run maven:install
$ npm run maven:snapshot

Logging

Debugging can be done by configuring logging to either the browser console or as an overlay inside the iframes rendered by Garðr.

You can turn on logging by adding an url-fragment with log level: #loglevel=4 By default it will display an overlay inside each banner with the log output. If the banner isn't visible, you can output to console by using: #loglevel=4&logto=console

NB! If the banner injects another iframe we have no good way of catching errors :(

Polyfills required for IE8+ support

  • ES5-shim You do not need a sham (unsafe polyfills).