Cross-File Codemodding
summary
A concrete migration story: a set of three JS code shift transforms run from codemod-cli extracts decorator metadata into JSON, generates Ember argument types helpers in templates, then removes decorators from JS files, converting over about 400 components and automating ~98% of the work. The code mods move type info from class decorators into templates, enable Ember 3.20 with Octane, and the repo commit builds and runs in one commit with only minor manual cleanup.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:38Joshua Lawrence
- 3:06Template File
- 8:52Overview of How Js Code Shift Works
- 15:11Codemod Cli
- 19:44Ast Builder
related talks
36mTransformers - codemods in disguise
27mHow Codemods Turned a Nightmare into a 3-Minute Migration
34mCodemods in the Era of AI
21mAutomating Front-End Refactoring
40mRefactoring large JavaScript codebases
47mComputer, refactor my code!
22mMaking Code Automations at Scale: Leveraging AI for Code Migrations
13mCodemods how to support your users with breaking changes delivery
