Skip to content

Config_File

Tricked edited this page Oct 15, 2021 · 1 revision

title: Config file description: Diplo config file settings

Diplo config file options

{
  "load_env": "boolean",
  "import_map": "boolean",
  "name": "string",
  "scripts": "Object of strings",
  "dependencies": "Object of strings",
  "watcher": {
    "directory": "string",
    "clear": "string"
  }
}

Load_env

load env uses the rust dotenv package to load the .env variables in the current directory.

Import_map

Diplo will automatically create a .diplo directory with a import_map.json file inside diplo will also append --import-map=.diplo/import_map.json to deno run making the import map automatically load.

the import_map.json is generated from to dependencies specified in the diplo.json.

Name

Name of the project this is not necessary

Scripts

Script

Dependencies

Dependencies

Watcher

Configuration options for the --watch feature in diplo

  • Clear, Clears the screen on every restart