Do You Want to Build a Build Tool?
summary
Shows concrete, runnable steps: read source files with Node fs and path, parse into ASTs (esprima / the TypeScript compiler APIs suggestion), query with esquery, generate snippets with es-template and emit code with escodegen, then write files back so every doPhysics call becomes doMagic and a new doMagic function is injected. Demonstrates parsing, pattern-matching, AST-level insertion and codegen end to end, with working file I/O and examples rather than vague promises.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:18ELSA HAS AMAZING POWERS!
- 1:37CHAPTER ONE
- 2:36CHAPTER TWO
- 6:23FILE SYSTEM APIS
- 7:58PATH APIS
- 12:24PARSING
- 13:48ABSTRACT SYNTAX TREES
- 26:47Are you ready for this?
related talks
29mDo you want to build a build tool?
46mThe “Perfect” JS Library Tooling
32mTooling Like It's 2025
29mYour Own Build Tool Agnostic Web-Plugin? Easy as 1 2 3(D)
33mHidden Gems of TypeScript compiler
21mType dependence
24mStatic Analysis and Source Code Manipulation in TypeScript
16mArchitecting A Component Compiler
