0.73.0 • Published 2 years ago

@spring-media/red-sourcepoint-cmp v0.73.0

Weekly downloads
27
License
MIT
Repository
github
Last release
2 years ago

Red Sourcepoint CMP

npm license semantic-release Coverage Quality Gate Status Release Playground E2E

Introduction

This repository covers the implementation of CMP (Consent Management Platform) for www.bild.de by using the Sourcepoint API.

Installation

npm i @spring-media/red-sourcepoint-cmp

Modules

The project is organised into several (mostly) independent modules, that are described below:

Vendor Mapping Module

An API for (hardcoded) mappings of (custom) vendors and purposes and their relations between each other.

Documentation

TCF-V2 API Module

An (tiny) abstraction layer for the IAB TCF-V2 specs

Documentation

Sourcepoint Module

An (tiny) abstraction layer for the Sourcepoint API

Documentation

Embed Utils Module

A collection of utils for handling (social) embeds.

Documentation

Vue Module

A collection of Vue components for the integration of the API's above.

Documentation

Playground

The purpose of the playground is to test the feature set of our library (manually and automated) within a browser. It uses the compiled modules from the dist folder to provide two small applications, one for the esm bundle and one for the browser bundle.

Start the playground by running the following command:

npm run playground:start

Some questions are asking the first time, with some predefined sensible default settings.

You can use cli parameters to overwrite internal default values as follows:

npm run playground:start -- --propertyId 1234

The example above sets the default value for propertyId to 1234.

You can also use --yes to skip the questionnaire altogether. In this case, the internal default values (or provided by cli) will be used as the parameters for the playground.

Use a modern browser for testing because the code is not transformed to be compatible with older browsers that do not fully support ES6.

Running automatic end-2-end tests

In addition to manual testing, there is also the option of automatically testing the playground through end-2-end tests.

In order to do so, make sure the playground application is running (npm run playground:start) and then (in another terminal) run npm run playground:test:e2e.

The tests use some values from the parameters.json file, which is automatically created in the build directory after the playground has been prepared.

Releasing and Publishing

This repository uses semantic release for automated releasing and publishing to the npm registry and github.

Each release step is configured via release config by configurable plugins.

Semantic-release uses the commit messages to determine the type of changes in the codebase. To automatically determine the next semantic version number and automate publishing the release following commit message format is required:

<type>(<scope>): <subject>
Type

must be one of the following:

  • feat: A new feature (minor)
  • fix: A bug fix (patch)
  • breaking: A breaking change (major)
  • revert: When reverting a previous commit (patch)
  • perf: A code change that improves performance (patch)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • chore: Changes to the build process
Scope

The scope could be anything specifying place of the commit change. You can use * when the change affects more than a single scope.

Subject

The subject contains succinct description of the change:

  • use the imperative, present tense: "change" not "changed" nor "changes"
  • don't capitalize first letter
0.73.0

2 years ago

0.71.6

2 years ago

0.71.5

2 years ago

0.72.0

2 years ago

0.71.3

2 years ago

0.71.2

2 years ago

0.71.4

2 years ago

0.71.1

2 years ago

0.70.0

2 years ago

0.71.0

2 years ago

0.68.4

2 years ago

0.69.1

2 years ago

0.69.0

2 years ago

0.68.3

2 years ago

0.68.2

2 years ago

0.68.1

2 years ago

0.68.0

2 years ago

0.67.0

3 years ago

0.66.1

3 years ago

0.66.0

3 years ago

0.65.0

3 years ago

0.64.0

4 years ago

0.63.0

4 years ago

0.62.0

4 years ago

0.61.0

4 years ago

0.60.0

4 years ago

0.59.0

4 years ago

0.57.0

4 years ago

0.58.0

4 years ago

0.56.0

4 years ago

0.55.0

4 years ago

0.54.1

4 years ago

0.54.0

4 years ago

0.53.1

4 years ago

0.53.0

4 years ago

0.52.0

4 years ago

0.51.0

4 years ago

0.50.0

4 years ago

0.48.0

4 years ago

0.49.0

4 years ago

0.46.0

4 years ago

0.47.0

4 years ago

0.45.0

4 years ago

0.44.2

4 years ago

0.44.1

4 years ago

0.44.0

4 years ago

0.43.2

4 years ago

0.43.0

4 years ago

0.43.1

4 years ago

0.42.0

4 years ago

0.42.1

4 years ago

0.41.4

4 years ago

0.41.3

4 years ago

0.41.2

4 years ago

0.41.1

4 years ago

0.41.0

4 years ago

0.40.0

4 years ago

0.39.0

4 years ago

0.38.0

4 years ago

0.37.2

4 years ago

0.37.1

4 years ago

0.37.0

4 years ago

0.36.1

4 years ago

0.36.0

4 years ago

0.35.0

4 years ago

0.34.1

4 years ago

0.34.0

4 years ago

0.32.2

4 years ago

0.33.0

4 years ago

0.32.1

4 years ago

0.32.0

4 years ago

0.30.2

4 years ago

0.30.1

4 years ago

0.30.0

4 years ago

0.31.0

4 years ago

0.29.0

4 years ago

0.27.0

4 years ago

0.28.0

4 years ago

0.26.0

4 years ago

0.25.6

4 years ago

0.25.5

4 years ago

0.25.4

4 years ago

0.25.3

4 years ago

0.25.2

4 years ago

0.25.1

4 years ago

0.25.0

4 years ago

0.24.1

4 years ago

0.24.0

4 years ago

0.23.1

4 years ago

0.23.0

4 years ago

0.22.1

4 years ago

0.22.0

4 years ago

0.21.4

4 years ago

0.21.3

4 years ago

0.21.2

4 years ago

0.20.1

4 years ago

0.20.0

4 years ago

0.19.4

4 years ago

0.19.2

4 years ago

0.19.0

4 years ago

0.18.1

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.0

4 years ago

0.15.0

4 years ago

0.13.0

4 years ago

0.14.0

4 years ago

0.12.0

4 years ago

0.12.1

4 years ago

0.11.0

4 years ago

0.10.1

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.5.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago