Transforming JS & TS codebases with Typescript compiler and ASTs - Albert Groothedde | GURU TALKS

Опубликовано: 16 Октябрь 2024
на канале: iO - Technology
2,366
40

Project from talk: https://github.com/alber70g/presentat...
Guide to create @angular-devkit/schematic: https://github.com/alber70g/refactor-...
Slides: https://github.com/alber70g/presentat...
Nice tools/packages
ts-morph: convert code using ts-compiler
zx: bunch of tools to use with refactor (execute shell scripts, etc)
@angular-devkit/schematics: modify tree with dry run etc
comment-json: parse and write json including comments
glob-tester-cli: use to test globs on you cli

Have you ever wanted to make a big change to the codebase but got scared off by the thought of rebasing, applying all your changes again and again… and again? Fear no longer!

Transform your codebase completely automated. Using the Typescript compiler that’s also used in VSCode and with help of the Abstract Syntax Tree, this will become a breeze. You can finally do that long awaited upgrade towards a better developer experience!

This talk will make these distant utopias a reality, with practical examples, and useful boilerplate.