Page 1 of 1

Zeus + TypeScript

Posted: Sun Jan 27, 2019 11:53 am
by jussij
To configure the Zeus IDE to work with TypeScript run the following commands:

1. Install TypeScript
Open a command prompt window and run the following command:

Code: Select all

npm install typescript -g

2. Configure the Zeus IDE
Edit the Zeus TypeScript document type using the Options, Document Types menu and selecting the Compiler panel.

Set the compiler command line option to the following:

Code: Select all

tsc "$fn"
To configure the compiler for strict operation use this command line instead:

Code: Select all

tsc --strict "$fn"
Details describing additional tsc options can be found here: https://www.typescriptlang.org/docs/han ... tions.html

Configure the other Zeus options as shown below:
tsc-compile.png
tsc-compile.png (138.38 KiB) Viewed 27466 times

3. Compiling the TypeScript File within the Zeus IDE

To compile a TypeScript file just open the file in Zeus and use the Compiler, Compile menu to run the tsc compiler.

4. Setting up the Language Server
To setup the TypeScript language server follow the instructions found here: http://www.zeusedit.com/lsp/typescript.html