Upgrade old web projects to a new framework version
A developer had Codex write a reusable set of upgrade instructions for the Angular web framework; he reports it upgraded three open-source projects to version 22 within a week.
Done with OpenAI Codex
What they did
A developer had Codex write a reusable set of upgrade steps for Angular, a tool for building websites. The steps follow the official upgrade guide. They make a separate copy of the code to work on, apply the needed changes, update add-ons and check that the project still builds. Some automatic checks on his code-hosting service failed, and so did publishing. He then added a fresh-install check and rules about tool versions. He ran it on three open-source projects.
How it went
He says all three upgrades were accepted, two from version 21 to 22 and one from 19 to 22. One also swapped PrimeNG, a set of screen parts, for one called Optimus. He says he finally finished upgrades in one week instead of putting them off. The instructions were trimmed from 1,252 to 701 words.
Worth knowing
The first version worked on his own computer but broke the automatic checks, because it never tested a fresh install. Test a clean install from a fresh copy before calling an upgrade done.
Try it yourself with OpenAI Codex
Upgrade the Angular project in [repo path] from version [current] to [target]. Follow the official Angular Update Guide one major version at a time. Create a new git branch first. Run ng update migrations and update dependencies. Then verify with npm ci in a clean copy without node_modules, plus a production build and the tests. Make sure the Node.js and npm versions meet [publishing or CI requirements]. Summarize every change and any manual follow-ups. Wait for my approval before pushing or opening a PR.
Swap the highlighted [parts] for your own details.
Source: DEV Community · Daniel Balcarek · Oct 15, 2026
Written with AI assistance from the original post and checked against our editorial guidelines. Results are as reported by the source, not independently verified.