A suite of libraries and React components for visuals and graphics at The Times and The Sunday Times
A library of libraries and React components for building visuals at The Times
and The Sunday Times
This is a monorepo containing all the charts, libraries and configuration for
building out charts and visuals for The Times and The Sunday Times.
$ yarn
$ yarn storybook
To add a new package:
./packages
directory./template
to your new foldername
and your description
in the package.json
file, and theREADME.md
./stories/index.stories.js
file with the details for your newyarn
in the project root (top level of the repository)Often you may wish to depend on another package in the repo (e.g.@times-visuals/styles
). To do this, manually add it to the package.json
of
your new component, and run yarn
from the project root to link everything
together.
For those components with test suites, you can run them using:
$ yarn test
If you need to update the Jest snapshots, run:
$ yarn test:update-snapshots