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
The default branch of this repo is
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.
If you want to test changes to SPArtacus on your local setup you will need link the application like so:
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
npm run build
- Update the package version and change log
- Uush branch and create PR
- Get 2 reviews
- Ensure CI is passing
- Merge PR