A library of ONS Svelte components for projects large and small. You can find documentation and examples of how to use these components on the Storybook pages.
This component library is inspired by Reuters' fantastic graphics-components library. The components are adapted from the ONS Design System.
To update the components:
- Make changes to components
- Commit changes locally (describe your changes in the commit message)
- Increment version number in package.json
-
npm run build
(build the package + docs) - Commit + push changes to GitHub (use version number eg. "v1.0.0" as commit message)
-
npm run deploy
(publish docs to GitHub Pages) -
npm publish
(publish new version to NPM)
To update the docs only:
- Update story files (.stories.svelte .stories.mdx etc)
- Commit + push changes to GitHub
-
npm run build:docs
(build the docs) -
npm run deploy
(publish docs to GitHub Pages)