Skip to content

jfsoul/commercial-shared

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commercial shared library

This codebase is going to hold the business logic for the display of commercial components, so that it can be shared across all Guardian platforms: web and app.

Assumptions

  1. It will be included in all frontend deployments that show commercial components
  2. It will be included in mapi deployments
  3. It won't make any calls to external services
  4. Its only dependencies are the capi model and the facia model

Usage

Configuration

  1. Use bintray resolver:
    resolvers += "Guardian Frontend Bintray" at "https://dl.bintray.com/guardian/frontend"
  2. Add library as dependency:
    libraryDependencies += "com.gu" %% "commercial-shared" % "<x.y.z>"

Examples

  1. Find branding for a given page, container, section or tag:
    See tests.

How to ...

Start sbt session

Run bin/activator

Deploy

Run the sbt release task.
This will generate artefacts and make them available from bintray.
Releases follow the semantic versioning policy, which is roughly:

  • A major.minor.patch format
  • Bump patch number for a bug fix or dependency bump etc.
  • Bump minor number for non-breaking new features
  • Bump major number for breaking changes

About

Shared logic for building commercial components.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%