Codemods are awesome because they simplify repetitive programming tasks. CanJS 6’s migration tool includes codemods that automate the upgrade process. Codemods are built on Abstract Syntax Trees (ASTs).
In this talk, Matt Chaffe explains the basics of ASTs and what tools are available to make dealing with them easier so you can build your own codemods!
Slides: https://github.com/Mattchewone/codemo...
jscodeshift: https://github.com/facebook/jscodeshift
can-migrate: https://github.com/canjs/can-migrate
CanJS codemod docs: https://canjs.com/doc/guides/upgrade/...
⭐️ Connect with Bitovi
• DISCORD: / discord
• TWITTER: / bitovi