Skip to main content
Module

x/trex/docs/setup.md

Package Manager for deno 🦕
Go to Latest
File

Setup visual studio code

first 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.

error

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

Setup Atom

Trex will install some of dependencies to setup Deno in a project:

run the following command:

trex setup --atom

Choose your package manager:

atom-setup

Then trex will create the tsconfig.json.

{
  "compilerOptions": {
    "plugins": [
      {
        "name": "typescript-deno-plugin",
        "enable": true,
        "importmap": "./import_map.json"
      }
    ]
  }
}

note: enable by default is true

Then restart Atom. after restart you should have no problems.

before installing

atom-setup

after installing

atom-setup