Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@bbc/spartacus

0.0.13 • Public • Published

SPArtacus

A framework to help create both server-side and isomorphic rendering applications. Used by the BBC Articles team in their renderer simorgh which creates a single page application.

This is a private npm package released on the BBC News npm registry as @bbc/spartacus.

The default branch of this repo is latest.

Background

This was born from a need to make simorgh more re-usable cross teams. Therefore, it's intial goal for MVP is to increase sharability by abstracting out re-usable parts of simorgh. In the future this can be improved to allow more flexible setups such as using Sass instead of Styled Components OR bespoke webpack overrides OR even one day rendering something other than React.

Hello world app - This application is an example of how SPArtacus can be used to create a universal react application.

It details the files needed and how to use this library.

Local development

If you want to test changes to SPArtacus on your local setup you will need link the application like so:

  • cd SPArtacus
  • npm link
  • cd ../{YOUR_APP}
  • npm link ../SPArtacus // link your application to your local SPArtacus
  • Your app is now linked with the SPArtacus

NB: Each time you make changes to SPArtacus/src you will need to run npm run build for YOUR_APP to pick up the new changes.

Publishing to npm

  • Build the lib/ - npm run build
  • Update the package version and change log
  • Uush branch and create PR
  • Get 2 reviews
  • Ensure CI is passing
  • Merge PR
  • Run npm publish

Install

npm i @bbc/spartacus

DownloadsWeekly Downloads

0

Version

0.0.13

License

Apache-2.0

Unpacked Size

349 kB

Total Files

130

Last publish

Collaborators