This readme needs further information.
To work with ONSdigital, you need to have completed Steps 1-3 from the ONSdigital setup guide in order to be able to make signed commits.
Install dependencies with npm install
, then start a development server:
npm run dev
When developing new features, please create a feature branch and complete a code review before merging to dev.
See scripts\insights\README.md
to learn about how data is managed and updated.
This project uses a Svelte port of the ONS Design System components.
It's possible to use npm link
to work locally with the components, without having to publish the components to npm during development.
- In svelte-components, run
npm link
and themnpm run build
. - In local-statistics, run
npm link @onsvisual/svelte-components
. - Verify with
npm ls @onsvisual/svelte-components
that the package is symlink'd to your local location of the library. - With local-statistics running, the Svelte library components should live update each time you run
npm run build
. - To unlink, run
npm unlink @onsvisual/svelte-components
.