This package contains the commercial (advertising) code that is loaded on all pages on theguardian.com.
There are 2 packages in this repo:
@guardian/commercial-bundle
The commercial bundle, which is an independent set of javascript files that is loaded on all pages on theguardian.com.@guardian/commercial-core
An npm package used by other parts of the Guardian codebase, such as DCR.
- Node
- see .nvmrc for the current version
- the version manager fnm is recommended with additional configuration to automatically switch on changing directory
- pnpm
To install dependencies, run pnpm
.
@guardian/commercial-bundle
and @guardian/commercial-core
are deployed separately.
@guardian/commercial-bundle
is deployed to PROD automatically when merged to main. It does not use changesets.
@guardian/commercial-core
is published as an npm package and uses changesets, if you've made changes to this package, you will need to ensure you have added a changeset before merging your PR.
A commercial-dev
team member will then need to merge the changeset PR to release the new version.