Migrating a Legacy JavaScript Codebase to TypeScript - JSJ 680

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.

Episoder(737)

105 JSJ JSConf and Organizing Conferences with Chris Williams

105 JSJ JSConf and Organizing Conferences with Chris Williams

The panelists discuss JSConf and conference organization with Chris Williams.Special Guest: Chris Williams. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-O...

23 Apr 20141h 16min

104 JSJ Hypermedia APIs with Steve Klabnik

104 JSJ Hypermedia APIs with Steve Klabnik

The panelists discuss hypermedia APIs with Steve KlabnikSpecial Guest: Steve Klabnik. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle....

16 Apr 201459min

103 JSJ Robots with Raquel Vélez

103 JSJ Robots with Raquel Vélez

The panelists talk to Raquel Vélez about robotics and JavaScript.Special Guest: Raquel Vélez. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://re...

9 Apr 20141h 4min

102 JSJ Angular and Open Source Projects with Brad Green

102 JSJ Angular and Open Source Projects with Brad Green

The panelists talk to Brad Green of Google, about Angular.js and managing open source projects.Special Guest: Brad Green. Support this podcast at — https://redcircle.com/javascript-jabber/donationsP...

2 Apr 201447min

101 JSJ js-git with Tim Caswell

101 JSJ js-git with Tim Caswell

The panelists talk to Tim Caswell about js-git.Special Guest: Tim Caswell. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacy...

19 Mar 201450min

100 JSJ Centennial Episode Celebration

100 JSJ Centennial Episode Celebration

The panelists celebrate their 100th episode! Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this pod...

12 Mar 201449min

099 JSJ npm, Inc. with Isaac Schlueter, Laurie Voss, and Rod Boothby

099 JSJ npm, Inc. with Isaac Schlueter, Laurie Voss, and Rod Boothby

The panelists discuss npm, Inc. with Isaac Schlueter, Laurie Voss, and Rod Boothby.Special Guests: Isaac Schleuter, Laurie Voss, and Rod Boothby. Support this podcast at — https://redcircle.com/java...

5 Mar 201456min

098 JSJ Assemble.io with Brian Woodward and Jon Schlinkert

098 JSJ Assemble.io with Brian Woodward and Jon Schlinkert

The panelists speak with Brian Woodward and Job Schlinkert about Assemble.io.Special Guests: Brian Woodward and Jon Schlinkert. Support this podcast at — https://redcircle.com/javascript-jabber/dona...

26 Feb 201443min

Populært innen Business og økonomi

stopp-verden
lydartikler-fra-aftenposten
dine-penger-pengeradet
e24-podden
rss-penger-polser-og-politikk
rss-borsmorgen-okonominyhetene
finansredaksjonen
pengepodden-2
pengesnakk
utbytte
tid-er-penger-en-podcast-med-peter-warren
rss-sunn-okonomi
stormkast-med-valebrokk-stordalen
morgenkaffen-med-finansavisen
livet-pa-veien-med-jan-erik-larssen
lederpodden
okonomiamatorene
rss-markedspuls-2
flypodden
rss-fa-makro