Utilizing the JavaScript Abstract Syntax Tree (AST) for Automated Frontend Lifecycle Management
summary
Organization builds a CLI scaffold and a migration pipeline using NX AST utilities to parse JavaScript, run deterministic codemods, and unit test them with the NX tree. The platform ships generators and per-version migrations that automatically update imports, type annotations, and testing tooling (migrating test runners and fixing CVEs) across 350 front-end apps previously managed by ~40 teams. A single update script now applies codemods per release so apps stay current with a single script per sprint workflow.
AI-written summary · about
chapters (10)
- 0:00JavaScript AST for frontend lifecycle
- 5:26Personal journey and platform team
- 7:59Organizational challenges and migrations
- 10:05Scaffolding apps with CLI
- 12:37NX generators for updates
- 15:10Understanding Abstract Syntax Trees
- 17:20Code mods with AST transformations
- 20:53Building and testing AST code mods
- 23:08Benefits of automated lifecycle
- 24:56Q&A
related talks
44mJavaScript AST programming: Introduction and beyond
40mRefactoring large JavaScript codebases
24mNX Generators or how to skip boring tasks
30mRefactoring large JavaScript codebases
32mBeyond Build Orchestration: What It Takes to Build Modern JavaScript Monorepos
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
34mCodemods and Transforming JavaScript Code
25mManage large refactors with JSCodeShift
