A small empty totaljs project integrated with typescript, for reference.
npm install -g typescript
to install typescriptnpm install
to install all the dependenciestsc --build
to build the project for the first time
Use the command npm run debug
to run a debug session with live reloading and typescript watch running,
allowing recompilation on saving typescript files
If you don't wish to recompile when you save on a .ts
file, you can run npm run debug-no-w
to run totaljs with live reload, but without typescript watch, in order to see your changes, you
will have to run tsc --build
manually.