For basic use, a DFP account with Google is required.
Each targeting/tracking supplier will require their own configuration and setup.
Demos for all ads currently served across ft.com are available in the Origami Registry.
Includes detailed installation and set-up instructions, along with details about the module.
The testing setup is unlike other origami components. There are unit tests which we run with karma, and these can be run with
npm run test-unit
We also use Nightwatch and Browserstack to run cross browser tests. To run these:
npm run demo-server in your terminal. This will compile and launch the demos on http://localhost:3002. This is needed for the next step to work
npm run test-browser will run a local browserstack tunnel and run the tests
You will need a
GITHUB_TOKEN environment variable with access to the repository in your .env file
Get a github token with "repo" access and make it accessible as an environment variable.
npm run release (patch|minor|major|x.y.z) in
master then follow the interactive steps.
This will bump version numbers in the source and commit them, push to github and create a new release.
The command uses release-it under the hood as well as genversion to automatically bump version numbers in the source.
FTConsentand specify which consent the user has given as part of the value like this:
'never'and defaults to