DenoAppResource
Handle
interface DenoAppResource extends IComputeResource, IContainerFilesDestinationResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IResourceWithContainerFiles, IResourceWithServiceDiscovery { withDenoAllow( kind: DenoPermissionKind, values: string[]): DenoAppResource; withDenoAllowAll(enabled?: boolean): DenoAppResource; withDenoConfig(configFile: string): DenoAppResource; withDenoDeny( kind: DenoPermissionKind, values: string[]): DenoAppResource; withDenoImportMap(importMapFile: string): DenoAppResource; withDenoInspect( mode?: DenoInspectMode, hostPort?: string): DenoAppResource; withDenoLock(lockFile: string): DenoAppResource; withDenoNodeModulesDir(mode?: DenoNodeModulesDirMode): DenoAppResource; withDenoNoLock(): DenoAppResource; withDenoRun(): DenoAppResource; withDenoRuntimeArgs(args: string[]): DenoAppResource; withDenoScriptArgs(args: string[]): DenoAppResource; withDenoServe(): DenoAppResource; withDenoTask(taskName: string): DenoAppResource; withDenoUnstable(features: string[]): DenoAppResource; withDenoWatch(hmr?: boolean): DenoAppResource;}16 members
Methods
Grants a Deno permission, optionally scoped to the supplied values.
withDenoAllow( kind: DenoPermissionKind, values: string[]): DenoAppResourceParameters
kindDenoPermissionKind The permission to grant.valuesstring[]Optional values that scope the permission. When empty, all access of the selected kind is allowed.Returns
DenoAppResource Controls the blanket `-A`/`--allow-all` grant.
withDenoAllowAll(enabled?: boolean): DenoAppResourceParameters
enabledbooleanoptional= TrueWhether to emit `-A`/`--allow-all`. Pass `false` to grant only permissions configured with `WithDenoAllow`.Returns
DenoAppResource Sets `--config <file>` (path to a `deno.json`/`deno.jsonc`).
withDenoConfig(configFile: string): DenoAppResourceParameters
configFile stringThe Deno configuration file path.Returns
DenoAppResource Denies a Deno permission, optionally scoped to the supplied values.
withDenoDeny( kind: DenoPermissionKind, values: string[]): DenoAppResourceParameters
kindDenoPermissionKind The permission to deny.valuesstring[]Optional values that scope the permission. When empty, all access of the selected kind is denied.Returns
DenoAppResource Sets `--import-map <file>`.
withDenoImportMap(importMapFile: string): DenoAppResourceParameters
importMapFile stringThe import map file path.Returns
DenoAppResource Enables a Deno inspector mode, optionally at `hostPort` (for example `127.0.0.1:9229`).
withDenoInspect( mode?: DenoInspectMode, hostPort?: string): DenoAppResourceParameters
modeDenoInspectMode optional= InspectThe inspector mode to enable.hostPort stringoptionalThe optional inspector host:port value.Returns
DenoAppResource Sets `--lock <file>`.
withDenoLock(lockFile: string): DenoAppResourceParameters
lockFile stringThe lockfile path.Returns
DenoAppResource Sets `--node-modules-dir`, optionally with a mode emitted as `--node-modules-dir=<mode>`.
withDenoNodeModulesDir(mode?: DenoNodeModulesDirMode): DenoAppResourceParameters
modeDenoNodeModulesDirMode optionalThe node_modules mode. When `null`, emits `--node-modules-dir` without a value.Returns
DenoAppResource Sets `--no-lock`, disabling lockfile use.
withDenoNoLock(): DenoAppResourceReturns
DenoAppResource Selects the `deno run <entrypoint>` mode (the default).
withDenoRun(): DenoAppResourceReturns
DenoAppResource Appends raw runtime arguments injected verbatim BEFORE the entrypoint. This is the escape hatch that gives full parity with `AddExecutable("name", "deno", workdir, args...)` for any flag not covered by a dedicated `WithDeno*` method.
withDenoRuntimeArgs(args: string[]): DenoAppResourceParameters
argsstring[]The runtime arguments to append before the entrypoint or task name.Returns
DenoAppResource Appends arguments passed to the script AFTER the entrypoint. Deno forwards everything after the entrypoint to the running program.
withDenoScriptArgs(args: string[]): DenoAppResourceParameters
argsstring[]The script arguments to append after the entrypoint or task name.Returns
DenoAppResource Selects the `deno serve <entrypoint>` mode for serving an HTTP entrypoint.
withDenoServe(): DenoAppResourceReturns
DenoAppResource Selects the `deno task <taskName>` mode, running a task defined in `deno.json` instead of a script entrypoint. Permissions are defined by the task itself and are not emitted for this mode.
withDenoTask(taskName: string): DenoAppResourceParameters
taskName stringThe name of the task in `deno.json` to run.Returns
DenoAppResource Adds one or more `--unstable-*` flags. Each feature may be supplied bare (for example `"kv"`, `"worker-options"`, `"sloppy-imports"`) or fully qualified (`"--unstable-kv"`).
withDenoUnstable(features: string[]): DenoAppResourceParameters
featuresstring[]The unstable feature names or fully-qualified `--unstable-*` flags to emit.Returns
DenoAppResource Enables `--watch` (or `--watch-hmr` when `hmr` is `true`).
withDenoWatch(hmr?: boolean): DenoAppResourceParameters
hmrbooleanoptional= FalseWhether to emit `--watch-hmr` instead of `--watch`.Returns
DenoAppResource