JavaScript code generator

To generate JavaScript code, we use the TypeScript code generator and automatically compile the TypeScript code.

To do this, copy the TypeScript compiler into the "Jsdl" directory which should be located in your solution directory.

To generate JavaScript, use the JSDL TypeScript generator and compile the .ts output file with the TypeScript compiler.

The following listing shows the content of a batch file which creates the JavaScript for a JSDL (the batch file is located in the solution directory):

cd Jsdl
jsdl --output "../MyProject/MyService.ts" --type TypeScript --jsdl "url_or_path"
tsc "../MyProject/MyService.ts" --module amd

Last edited Jul 1, 2013 at 7:34 AM by rsuter, version 4


No comments yet.