Typescript / tsconfig.json

51 views
Skip to first unread message

Jérémy Ferreira

unread,
Aug 21, 2015, 8:11:38 PM8/21/15
to turbulenz-engine-users
Hello.

I'm currently trying to develop with Turbulenz in Typescript, using Atom and its typescript plugin (to autocompile...).

I am facing some issue using the tsconfig.json configuration file.
My understanding is that this file can be used to avoid the use of "/// <reference path=" in .ts files.

It is working inside Atom, classes are found, but i was expecting the compilation context to add lines in the final .js file to make the link to my dependences.

My project is very simple, i have one myApp.ts beginning like that :

TurbulenzEngine.onload = function onloadFn()
{
 
var graphicsDevice = TurbulenzEngine.createGraphicsDevice({});
 
var draw2D = Draw2D.create({
      graphicsDevice
: graphicsDevice
 
});

But at the end, Draw2D is not known, so i get a beautiful javascript console with
ReferenceError: Draw2D is not defined

My tsconfig.json is like
{
   
"compilerOptions": {},
   
"files": [
       
"./jslib-modular/turbulenz.d.ts",
       
"./jslib-modular/tzdraw2d.d.ts",
       
"./tsscripts/myApp.ts"
   
]
}

Some ideas ?
Thanks,
Reply all
Reply to author
Forward
0 new messages