Enable NHS.UK Prototyping in Now Prototype It #1078
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This Pull Request takes the behaviours from NHS.UK Prototype Kit and makes them available as a plugin to Now Prototype It.
Now Prototype It is an open source (MIT Licence) Prototype Kit based on the GOV.UK Prototype Kit, we have removed previously hard-coded GOV.UK references and improved the Plugin Framework to create a smoother integration. The goal is to make sure that all UK Government departments can share a prototyping tool regardless of whether or not they use GOV.UK Frontend. By providing the configuration as part of NHS.UK Frontend you are able to update the configuration in-sync with any changes to the design system. Now Prototype It by itself is not targeted towards any one design system and is suitable for use both inside and outside UK Government, we took this approach because we believe will bring even more features to a whole range of users.
The
now-prototype-it.config.json
in this Pull Request configures the integration including:x-govuk
plugins but this list can be longer or shorter, any plugins in the list will be easily discoverable by users in the Plugins pagesThis PR leaves two templates out:
There is another branch which includes these if you want them to be included.
This PR also includes a
now-prototype-it.variant.json
which can be used to create an NHS.UK style prototype. This will include:nhsuk-frontend
andjquery
If these changes are merged and released then users will be able to create a prototype by running:
This will install the
nhsuk-frontend
package from NPM, customising it based on the variant file insidenhsuk-frontend
. To test the behaviour without merging/releasing you can use the command:There are other ways of approaching the integration which I'm happy to discuss, or you can explore for yourselves.
For more general information on Now Prototype It you can check out our website nowprototype.it and our youtube channel.
Checklist