Script Options
info
For the sake of brevity Typescript example omit the import for the DenonConfig
:
import { DenonConfig } from "https://deno.land/x/denon/mod.ts";
Denon takes inspiration from the awesome velociraptor module in the way it handles scripts.
Scripts
Scripts are declared inside the scripts
object and are identified by a name:
- JSON
- YML
- Typescript
Scripts can also be defined by a complex object:
- JSON
- YML
- Typescript
Script Options
Options can be script specific or be declared as global in the root of the config file.
Environment variables
Environment variables can be provided as an object and are passed directly to the child process.
- JSON
- YML
- Typescript
Permissions
Permission can be granted to child processes. You can provide specific permissions for each script, but you can also declare permissions globally, following the same format.
- JSON
- YML
- Typescript
File watching
While file watching is a core feature of denon
you always have the option
of disabling file watching and run a script only once:
- JSON
- YML
- Typescript
Import Map
Load import map file. Take a look a at the official docs for additional info.
caution
This feature in unstable in the current version of the deno executable.
- JSON
- YML
- Typescript
TS config
Load tsconfig.json configuration file:
- JSON
- YML
- Typescript
Unstable
Enable if the script is using unstable features of deno runtime:
- JSON
- YML
- Typescript
Inspect and InspectBrk
Activate inspector on host:port
. If inspectBrk
is used the executions breaks at the start of the user script:
- JSON
- YML
- Typescript
Lockfile
Check the specified lock file:
- JSON
- YML
- Typescript
Cert
Load certificate authority from PEM encoded file:
- JSON
- YML
- Typescript
Log
Set log level: (possible values: debug
, info
)
- JSON
- YML
- Typescript