question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🟦] Migrate server-side code to TypeScript

See original GitHub issue
  • Introduce typescript and necesary type packages on backend
  • Rename all code files from .js to .ts
  • Augment npm install process to transpile
  • Change npm start to run server from transpiled JavaScript code

After the above steps typing can be gradually introduced in the codebase.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:46 (45 by maintainers)

github_iconTop GitHub Comments

2reactions
bkimminichcommented, Mar 18, 2021

Running Juice Shop from source or a packaged distro now works fine on this branch. The only thing having trouble is the Docker image. On CI/CD it fails the smoke tests already, so the build/publish jobs are not even trying to run currently.

1reaction
bkimminichcommented, Mar 20, 2021

@paseaf, please send me an email with your address so I can send some “Thank you!”-package* on its way, as this was a) your first and b) a veeery sophisticated contribution (that even we from core team didn’t dare touch until now ourselves…)!!!

⭐⭐⭐⭐⭐! 😀

(*Depending on where you are located I might send you some gift card instead for getting a Juice Shop shirt printed locally or something like that.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Migrating from JavaScript - TypeScript
In this tutorial, we're going to look at how you might start out. We assume you've read enough of the handbook to write...
Read more >
ts-migrate: A Tool for Migrating to TypeScript at Scale - Medium
1) Hybrid migration strategy. Partially migrate file by file, fix type errors, and repeat until the full project is migrated. The allowJS config ......
Read more >
A simple guide for migrating from JavaScript to TypeScript
This article shows you how to easily migrate a React component from JavaScript to TypeScript to improve your project.
Read more >
A step-by-step guide to migrate a Node.js web app to Typescript
Step 1: The new project structure ... Instead of having all directories into the project's root, we'll move them to a dedicated folder....
Read more >
Migrating millions of lines of code to TypeScript - Stripe
On Sunday March 6, we migrated Stripe's largest JavaScript codebase (powering the Stripe Dashboard) from Flow to TypeScript.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found