Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration changes #247

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions docs/v13/documentation/migrate-an-existing-prototype.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
---
heading: Migrate an existing prototype to version 13 with the migration script
heading: Migrate an existing prototype to version 13
title: Migrate an existing prototype to version 13
---

1. Install Node.js version 18.
1. If you do not already have it, [install Node.js version 18](https://nodejs.org/en).

2. In the terminal, delete the folder `node_modules` (doing this first will make the backup quicker).
2. In the terminal, change to your prototype folder.

3. Make a backup of your prototype folder. You can do this in Finder or Windows Explorer.
3. Run this command to delete your node modules folder:

4. In the [terminal](./install/requirements#terminal), `cd` to your prototype folder.
`rm -rf node_modules`

5. Run this command:
4. Make a backup of your prototype folder. You can do this in Finder or Windows Explorer.

`npx govuk-prototype-kit@13 migrate`
5. In your prototype folder, run this command in the terminal:

`npx govuk-prototype-kit@13 migrate`

6. If some migration steps fail, the script will report these.

If this is the case, [contact the GOV.UK Prototype team](./support).
If this is the case, [contact the GOV.UK Prototype team](./support).

7. If you are using Git, commit these changes.

>To run the kit enter `npm run dev` in your terminal (this used to be `npm start`).

## If your prototype does not work

Expand Down