I wonder if we're doing it the right way.
we're coding in typescript (main.ts), after any change we run npm run compile (in order to create the main.js).
part of package.json:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"pack": "SwitchScriptTool --transpile . && SwitchScriptTool --pack . ..",
"compile": "SwitchScriptTool --transpile ."
},
ist here an easier way?
When will Switch check the modification?
thx in advance,
Ralf.
Typescript / compile
Re: Typescript / compile
Hi Ralf,
Just type "SwitchScriptTool --transpile ." in the Visual Studio Code terminal.
No need to reload the script or restart the flow, the effect is immediate.
Just type "SwitchScriptTool --transpile ." in the Visual Studio Code terminal.
No need to reload the script or restart the flow, the effect is immediate.
Laurent De Wilde, Solution Architect @ Enfocus
Re: Typescript / compile
If you want to automatically run the command on save, then I think you should be able to use this vs code extension
https://marketplace.visualstudio.com/it ... .RunOnSave
I haven't tested it myself, so I can't help with the configuration.
https://marketplace.visualstudio.com/it ... .RunOnSave
I haven't tested it myself, so I can't help with the configuration.
Re: Typescript / compile
Padawan,
thx! RunOnSave seems promising. I'll give it a try.
Ralf.
thx! RunOnSave seems promising. I'll give it a try.
Ralf.