govuk_publishing_components is a Ruby gem to document and distribute components for GOV.UK applications. It provides:
- a shared library of components
- helpers to generate component payloads
- an application to preview components and provide guidance
- GOV.UK Design System styles and components (via GOV.UK Frontend)
Only add a component to this gem if it is required in more than one application. Please do not add application-specific components to govuk_publishing_components.
All components should meet the accessibility standards for browser and assistive technology support described in GOV.UK Frontend.
./startup.sh
See also Local frontend development.
bundle install
yarn install
bundle exec rake
With text-only output to the terminal:
yarn run jasmine:ci
With output viewable in a browser at http://localhost:8888/:
yarn run jasmine:browser
You need to restart the jasmine:browser
test server for it to pick up any changes to JavaScript code.
- Publish/release a new version of the gem
- Keep this gem in sync with the Design System
- Move a component from an application to the gem
There is more documentation in the docs directory.