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 valuesstring[]Returns
DenoAppResource Controls the blanket `-A`/`--allow-all` grant.
withDenoAllowAll(enabled?: boolean): DenoAppResourceParameters
enabledbooleanoptional= TrueReturns
DenoAppResource Sets `--config <file>` (path to a `deno.json`/`deno.jsonc`).
withDenoConfig(configFile: string): DenoAppResourceParameters
configFile stringReturns
DenoAppResource Denies a Deno permission, optionally scoped to the supplied values.
withDenoDeny( kind: DenoPermissionKind, values: string[]): DenoAppResourceParameters
kindDenoPermissionKind valuesstring[]Returns
DenoAppResource Sets `--import-map <file>`.
withDenoImportMap(importMapFile: string): DenoAppResourceParameters
importMapFile stringReturns
DenoAppResource Enables a Deno inspector mode, optionally at `hostPort` (for example `127.0.0.1:9229`).
withDenoInspect( mode?: DenoInspectMode, hostPort?: string): DenoAppResourceParameters
modeDenoInspectMode optional= InspecthostPort stringoptionalReturns
DenoAppResource Sets `--lock <file>`.
withDenoLock(lockFile: string): DenoAppResourceParameters
lockFile stringReturns
DenoAppResource Sets `--node-modules-dir`, optionally with a mode emitted as `--node-modules-dir=<mode>`.
withDenoNodeModulesDir(mode?: DenoNodeModulesDirMode): DenoAppResourceParameters
modeDenoNodeModulesDirMode optionalReturns
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[]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[]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 stringReturns
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[]Returns
DenoAppResource Enables `--watch` (or `--watch-hmr` when `hmr` is `true`).
withDenoWatch(hmr?: boolean): DenoAppResourceParameters
hmrbooleanoptional= FalseReturns
DenoAppResource