Migrating a Legacy JavaScript Codebase to TypeScript - JSJ 680
JavaScript Jabber5 Kesä 2025

Migrating a Legacy JavaScript Codebase to TypeScript - JSJ 680

In this episode, Dan and I (Steve) dove deep into what turned out to be a surprisingly complex, yet incredibly insightful topic: gradually migrating a massive legacy JavaScript project over to TypeScript. We're talking about nearly 1,000 JS files, 70,000+ lines of code, and years of developer history—all transitioning carefully to a typed, modern future.

Dan walked us through how he started by setting up the project for success before converting even one file—getting CI/CD ready, setting up tsconfig.json, sorting out test dependencies, dealing with mock leaks, and even grappling with quirks between VS Code and WebStorm debugging.

We talked tools (like TS-ESLint, concurrently, and ts-node), why strict typing actually uncovered real bugs (and made the code better!), and why it’s crucial not to touch any .js files until your TypeScript setup is rock solid.

Key Takeaways:
  • Gradual migration is 100% possible—and often better—than ripping the bandaid off.
  • TypeScript can and will catch bugs hiding in your JavaScript. Be prepared!
  • Use VS Code extensions or TS-Node to support your devs’ tooling preferences.
  • Don't underestimate the setup phase—it’s the foundation of long-term success.
  • Start small: Dan's team converted just one file at first to test the whole pipeline.
If you’re sitting on a legacy JS project and dreaming of TypeScript, this episode is your blueprint—and your warning sign.

Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Jaksot(737)

121 JSJ Broccoli.js with Jo Liss

121 JSJ Broccoli.js with Jo Liss

The panelists discuss Broccoli.js with its creator, Jo Liss.Special Guest: Jo Liss. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.co...

13 Elo 201437min

120 JSJ Google Polymer with Rob Dodson and Eric Bidelman

120 JSJ Google Polymer with Rob Dodson and Eric Bidelman

The panelists talk to Rob Dodson and Eric Bidelman about the Google Polymer project and Google I/O.Special Guests: Eric Bidelman and Rob Dodson . Support this podcast at — https://redcircle.com/java...

6 Elo 20141h

119 JSJ Chrome Apps with Joe Marini

119 JSJ Chrome Apps with Joe Marini

The panelists talk about Chrome apps with Google's Joe Marini.Special Guest: Joe Marini. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcirc...

30 Heinä 201455min

118 JSJ Web Developer Skills

118 JSJ Web Developer Skills

The panelists talk about what skills you need to be considered a professional web developer. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://red...

23 Heinä 201455min

117 JSJ The Koa Framework with Gerred Dillon and Will Conant

117 JSJ The Koa Framework with Gerred Dillon and Will Conant

The panelists discuss the Koa Framework with Gerred Dillon and Will Conant.Special Guests: Gerred Dillon and Will Conant. Support this podcast at — https://redcircle.com/javascript-jabber/donationsP...

16 Heinä 20146min

116 JSJ jQuery UI vs KendoUI with Burke Holland and TJ VanToll

116 JSJ jQuery UI vs KendoUI with Burke Holland and TJ VanToll

The panelists discuss jQuery vs KendoUI with Burke Holland and TJ VanToll.Special Guests: Burke Holland and TJ VanToll. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPri...

9 Heinä 20141h 2min

115 JSJ The ES6 Module Loader Polyfill, SystemJS, and jspm with Guy Bedford

115 JSJ The ES6 Module Loader Polyfill, SystemJS, and jspm with Guy Bedford

the panelists discuss the ES6 module loader polyfill, SystemJS, and jspm with Guy Bedford.Special Guest: Guy Bedford. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPriva...

2 Heinä 201445min

114 JSJ Asynchronous UI and Non-Blocking Interactions with Elliott Kember

114 JSJ Asynchronous UI and Non-Blocking Interactions with Elliott Kember

The panelists talk to Elliot Kember about asynchronous UI and non-blocking interactions.Special Guest: Elliott Kember. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPriv...

25 Kesä 201456min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
psykopodiaa-podcast
mimmit-sijoittaa
rss-rahapodi
rss-lahtijat
rss-draivi
oppimisen-psykologia
rss-porssipuhetta
rss-rahamania
rahapuhetta
taloudellinen-mielenrauha
rss-neuvottelija-sami-miettinen
rss-bisnesta-bebeja
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-seuraava-potilas
rss-inderes
rss-40-ajatusta-aanesta
kasvun-kipuja
rss-h-asselmoilanen
rss-porssipodi