jszgb / jszgb.com

Community for JavaScript developers from Zagreb, Croatia. :house:
http://jszgb.com
MIT License
19 stars 11 forks source link

Writing codemods with jscodeshift #57

Closed silvenon closed 6 years ago

silvenon commented 6 years ago

I would like to propose a talk about jscodeshift with the following description:

Our dependencies update quickly so frontend code often needs to be refactored to keep up. Doing this manually is manageable up to a certain point, but sometimes there is just too much code to update, and search & replace is very often not enough. This is what codemods are for—they are scripts that you can run across your files to refactor them.

In my talk I'll introduce you to jscodeshift, Facebook's tool for writing codemods. Step by step you'll get familiar with JavaScript AST, I'll be extra careful to keep things at a very basic level so you can see the potential of refactoring code programmatically.

dinodsaurus commented 6 years ago

Wow, sounds awesome!!! February?

silvenon commented 6 years ago

Yep!