govuk_publishing_components is a Ruby gem to document and distribute components for GOV.UK applications. It provides:
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.
There is more documentation in the docs directory.