DenoManager
API reference › Foxy › Asset › DenoManager
Integrates Deno with Foxy’s dependency workspace, update, and audit workflows.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$config protected constructor | Foxy\ | Foxy configuration. | AbstractManifestAssetManager |
$executor protected constructor | Composer\ | Process executor used to invoke the manager. | AbstractAssetManager |
$fs protected constructor | Composer\ | Filesystem used to resolve and update manifest paths. | AbstractManifestAssetManager |
$io protected constructor | Composer\ | Composer output used for progress messages. | AbstractManifestAssetManager |
$updatable protected | bool | Whether an existing frontend installation may be updated. Default: true. | AbstractManifestAssetManager |
$versionConverter protected constructor | Foxy\| | Converter for manager version output. Default: null. | AbstractAssetManager |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a manager that executes frontend commands for the configured asset manifest. | AbstractAssetManager |
addDependencies() | Merges Composer asset dependencies into the frontend package manifest. | AbstractManifestAssetManager |
audit() | Runs the manager audit command against the current lock file. | AbstractAssetManager |
getAuditParser() | Returns the parser for the human-readable text report produced by deno audit. | DenoManager |
getLockPackageName() | Returns Deno’s lock-file name. | DenoManager |
getName() | Returns the manager name used in Foxy configuration. | DenoManager |
getPackageJsonPath() | Returns the frontend package manifest path. | AbstractManifestAssetManager |
getPackageName() | Returns the frontend package manifest filename. | AbstractManifestAssetManager |
getVersionConstraint() | Returns the Deno versions supported by this integration. | DenoManager |
hasLockFile() | Returns whether the manager lock file exists. | AbstractManifestAssetManager |
isAvailable() | Returns whether the manager executable reports a detectable version. | AbstractAssetManager |
isInstalled() | Returns whether the package manifest, dependency directory, and Deno lock file exist. | DenoManager |
isUpdatable() | Returns whether an existing frontend installation may be updated. | AbstractManifestAssetManager |
run() | Installs or updates frontend dependencies according to the manager state and configuration. | AbstractAssetManager |
setUpdatable() | Enables or disables updates of an existing frontend installation. | AbstractManifestAssetManager |
validate() | Validates the installed manager version against Foxy’s supported and configured constraints. | AbstractAssetManager |
actionWhenComposerDependenciesAreAlreadyInstalled() protected | Handles dependencies already present in the frontend installation. | AbstractManifestAssetManager |
actionWhenComposerDependenciesAreMerged() protected | Synchronizes Deno workspace members with the merged Composer asset dependencies. | DenoManager |
buildCommand() protected | Returns the manager command run by the configured or default binary, followed by the manager-options and manager-{action}-options values. | AbstractAssetManager |
buildUnconfiguredCommand() protected | Returns the manager command run by the configured or default binary, without the install and update options. | AbstractAssetManager |
getAuditCommand() protected | Returns the Deno audit command for the complete workspace. | DenoManager |
getAuditEnvironment() protected | Returns environment overrides that disable color in Deno audit output. | DenoManager |
getDefaultBinary() protected | Returns the platform-specific Deno binary name. | DenoManager |
getInstallCommand() protected | Returns the command that installs the asset dependencies, followed by the manager-options and manager-install-options values. | AbstractAssetManager |
getLockFilePath() protected | Returns the manager lock-file path under the root package directory. | AbstractManifestAssetManager |
getManagerConfig() protected | Returns the configuration scoped to this manager, so manager-* map entries resolve to its own value. | AbstractManifestAssetManager |
getManagerWorkingDirectory() protected | Returns the configured manager working directory, or null to use the process default. | AbstractManifestAssetManager |
getNodeModulesPath() protected | Returns the node_modules path under the root package directory. | AbstractManifestAssetManager |
getRootPackageDir() protected | Returns the resolved root package directory. | AbstractManifestAssetManager |
getRootPackagePath() protected | Resolves a path under the root package directory. | AbstractManifestAssetManager |
getUpdateCommand() protected | Returns the command that refreshes the lock file and then installs dependencies. | DenoManager |
getVersion() protected | Returns the normalized manager version, or null when it cannot be detected. | AbstractAssetManager |
getVersionCommand() protected | Returns the command that prints the manager version, without the install and update options. | AbstractAssetManager |
normalizeVersionOutput() protected | Extracts the version number from Deno’s version output. | DenoManager |
validateAuditConfiguration() protected | Rejects production-only audits because Deno cannot exclude development dependencies. | DenoManager |
withManagerTimeout() protected final | Runs the callback with the process timeout set to the manager-timeout option and restores the previous timeout afterward, even when the callback throws. | AbstractAssetManager |
Constants
Section titled “Constants”| Constant | Value | Description | Defined by |
|---|---|---|---|
NODE_MODULES_PATH | './node_modules' | AbstractManifestAssetManager |
Method details
Section titled “Method details”getAuditParser()
Section titled “getAuditParser() ”public function getAuditParser(): Foxy\Audit\AuditParserInterfaceReturns the parser for the human-readable text report produced by deno audit.
Returns
getLockPackageName()
Section titled “getLockPackageName() ”public function getLockPackageName(): stringReturns Deno’s lock-file name.
Returns
string
getName()
Section titled “getName() ”public function getName(): stringReturns the manager name used in Foxy configuration.
Returns
string
getVersionConstraint()
Section titled “getVersionConstraint() ”public function getVersionConstraint(): stringReturns the Deno versions supported by this integration.
Returns
string
isInstalled()
Section titled “isInstalled() ”public function isInstalled(): boolReturns whether the package manifest, dependency directory, and Deno lock file exist.
Returns
bool
actionWhenComposerDependenciesAreMerged()
Section titled “actionWhenComposerDependenciesAreMerged() ”protected function actionWhenComposerDependenciesAreMerged(Foxy\Asset\AssetPackageInterface $assetPackage, array $previousDependencies): voidSynchronizes Deno workspace members with the merged Composer asset dependencies.
Parameters
| Parameter | Type | Description |
|---|---|---|
$assetPackage | AssetPackageInterface | |
$previousDependencies | array |
getAuditCommand()
Section titled “getAuditCommand() ”protected function getAuditCommand(bool $noDev): stringReturns the Deno audit command for the complete workspace.
Parameters
| Parameter | Type | Description |
|---|---|---|
$noDev | bool |
Returns
string
getAuditEnvironment()
Section titled “getAuditEnvironment() ”protected function getAuditEnvironment(): arrayReturns environment overrides that disable color in Deno audit output.
Returns
array
getDefaultBinary()
Section titled “getDefaultBinary() ”protected function getDefaultBinary(): stringReturns the platform-specific Deno binary name.
Returns
string
getUpdateCommand()
Section titled “getUpdateCommand() ”protected function getUpdateCommand(): stringReturns the command that refreshes the lock file and then installs dependencies.
Returns
string
normalizeVersionOutput()
Section titled “normalizeVersionOutput() ”protected function normalizeVersionOutput(string $output): stringExtracts the version number from Deno’s version output.
Parameters
| Parameter | Type | Description |
|---|---|---|
$output | string |
Returns
string
validateAuditConfiguration()
Section titled “validateAuditConfiguration() ”protected function validateAuditConfiguration(bool $noDev): voidRejects production-only audits because Deno cannot exclude development dependencies.
Parameters
| Parameter | Type | Description |
|---|---|---|
$noDev | bool |