Follow these steps to upgrade to the latest template.
- Prepare for your upgrade
Before you start, save a copy of your current site.
Then, identify a framework. Current frameworks include HTML, Eleventy, .NET Core MVC, and React. You’ll usually pick the framework you’re currently on.
- Review Template updates
To understand the changes in the code, perform a code comparison in your framework repository. This helps you understand the work you need to do. You can also learn how to do a code comparison in GitHub.
- Download the State Web Template from GitHub
Download the latest Template release for your framework:
This is also a good time to have your security office perform a scan of the files.
Most changes are made in:
- Includes and modules folders
- Replace older library files with the updated ones
Custom CSS and JS code may be impacted when you update these files. Keep your customizations separate from the core template source code for an easier update process.
- Integrate the new template into your environment
From your code comparison, make the necessary changes and updates to your code. Usually, incremental versions will not require any structural template adjustments. You only need to replace core CSS (
/src/scss/) and JS (
/src/js/) files or update the CDN links.
- Perform necessary tests and reviews
After core source code has been updated, you should thoroughly review and test your website or web application before pushing to production. This includes QA, code and heuristic reviews, and accessibility testing. Do not forget to inspect for code level errors or conflicts.
- Release to production
You’re now ready to follow your organization's change management and release process. You may want to perform another QA and verify that everything works as expected in the production environment.