Skip to content

Releases: alphagov/govuk-prototype-kit

v13.6.0

06 Apr 10:25
345e335
Compare
Choose a tag to compare

New features

Plugin authors can now use scripts with type module (an experimental change - please get in touch if you want support using this)

Fixes

Accessibility fixes including better page titles when making pages from templates, and a more accessible terminal message.

The process to migrate old prototypes to v13 now handles custom javascript and filters better.

v13.5.0

31 Mar 10:55
ae8a0fd
Compare
Choose a tag to compare

13.5.0

New features

It’s easier to set a page title (thanks @frankieroberto !)

Page titles are important for accessibility. Previously you set them like this:

{% block pageTitle %}
  My page name - {{ serviceName }} - GOV.UK
{% endblock %}

That approach still works, but you can now do this instead:

{% set pageName="My page name" %}

And the kit will make the rest of the title for you, using your service name.

Better error handling

The kit now handles some errors, such as a missing page, with a nice page in the browser.

You can use .njk extensions for views

Please note this is an experimental feature - if you use it please let us know if you have any issues.

Previously, all the files in the app/views folder end in .html, for example index.html. This means that the Nunjucks code does not get highlighted properly in a code editor, which can be confusing.

You can now use .njk extension instead of .html. This makes code highlighting work properly for Nunjucks. If you rename any view file from .html to .njk, it should work.

To use .njk for all new view files created from templates, set this in your app/config.json:

{
 "serviceName": "Service name goes here",
 "useNjkExtensions": true
}

You can also create a new prototype using .njk:

npx govuk-prototype-kit create --use-njk-extensions

Fixes

The process to migrate old prototypes to v13 now handles unbranded prototypes without breaking.

v13.4.0

10 Mar 11:31
cf95811
Compare
Choose a tag to compare

New Prototype Kit release: 13.4.0

New features:

  • When you create a page from a template, you do not need to use a leading slash.
  • When you create or remove the settings.scss file, the page styling will update automatically.
  • You can now install, upgrade and uninstall different prototype kits at the same time using multiple tabs and windows.
  • You can complete an install, upgrade and uninstall with a slow connection.

v13.3.0

17 Feb 10:47
ce3bf60
Compare
Choose a tag to compare

New features:

  • GOV.UK Notify client is now available as a plugin. You can install it from the Plugins page in the Manage your prototype section.
  • We have moved all of the templates to plugins to have more flexibility in the future.
  • When you create a new prototype the common templates are installed by default.
  • When you update an existing prototype, you can install the common templates from the Templates page.
  • Task list is now a separate plugin.

v13.2.4

27 Jan 11:57
c59ffd2
Compare
Choose a tag to compare

v13.2.3

26 Jan 13:30
Compare
Choose a tag to compare

v13.2.2

24 Jan 16:07
fc89421
Compare
Choose a tag to compare

Fixes:

  • Displaying creation messages correctly

v13.2.1

20 Jan 10:08
762bf17
Compare
Choose a tag to compare

Fixes:

  • Cleaning up creation messages for users who have an older installer (v13.1.0 and before)

v13.2.0

19 Jan 15:46
0843535
Compare
Choose a tag to compare

New features:

  • When you create a prototype, there is now clearer and more helpful messaging to tell you what's happening and what to do next.

Fixes:

  • If you have a prototype running and start another one, the kit will prompt whether you want to run both or not. If you say no it will now quit properly without you having to press ctrl c.
  • Faster to create prototypes.

v13.1.0

06 Jan 10:59
0a390a2
Compare
Choose a tag to compare

New features:

  • When creating a prototype, the kit now makes an initial Git commit for you. That saves you time, and makes a separation between the initial prototype files and any changes you make yourself. If you do not want the kit to do this, you can add --no-version-control to the create command.
  • You can now install, update and uninstall plugins in the Manage your prototype section, without having to use the terminal.

Fixes:

  • Fixes to issues where the kit wouldn't run properly with square brackets or spaces in the folder path.
  • Improvements to the migration process
  • Stop unnecessary warnings about the session file store
  • Improvements to validation when creating pages from templates
  • Fixed slow performance issues when running online