Running TypeScript
TypeScript code is not processed by browsers that work with JavaScript code. Therefore to be executed, TypeScript code has to be translated into JavaScript. This operation is referred to as transpilation and the tools that perform it are called transpilers.
For more details about using transpilers in PhpStorm, see the section Using File Watchers.
To run a file with injected TypeScript from PhpStorm
No run configuration is required for launching applications with injected TypeScript from PhpStorm.
- Transpile the TypeScript code into Javascript.
- In the editor, open the HTML file with the TypeScript reference. This HTML file does not necessarily have to be the one that implements the starting page of the application.
- Manually replace the reference to the TypeScript file with the reference to the JavaScript file that was generated through the transpilation.
- Do one of the following:
See Also
Last modified: 12 July 2016