With the introduction of Angular 2, TypeScript became a major player offering optional static typing, classes and interfaces at its core.
When writing in TypeScript, it is essential to compile the code into JavaScript for the program to run smoothly.
The dilemma arises when deciding whether to upload both the compiled JavaScript files along with the TypeScript files to the server, or simply add the JavaScript files to .gitignore
and allow npm start
on the server to handle the compilation process automatically?