visual studio code
Setupfirst install deno extension.
Trex now can setup your project for work with Deno.
Then you run:
trex setup --vscode
this will create the folder .vscode and the settings.json file (if it doesn’t exist, if exist will write the setup with your old settings).
settings.json
{
"deno.enable": true,
"deno.import_map": "./import_map.json",
"deno.unstable": true
}
if you get this error after installing a module.
run your trex install
to cache all dependencies.
note: when installing a module using ( trex install –map someModule ) or ( trex –custom someModule=someModule.com/someModule.ts ) this is automatically cached
Atom
SetupTrex will install some of dependencies to setup Deno in a project:
run the following command:
trex setup --atom
Choose your package manager:
Then trex will create the tsconfig.json.
{
"compilerOptions": {
"plugins": [
{
"name": "typescript-deno-plugin",
"enable": true,
"importmap": "./import_map.json"
}
]
}
}
note:
enable
by default istrue
Then restart Atom. after restart you should have no problems.
before installing
after installing