Announced prior to installing a package. If a package has additional dependencies to install, each of them will fire this interception point.
interceptData
installArgs
- Struct containing the following keys used in installation of the package.ID
- The ID of the package to installdirectory
- Directory to install to. May be null, if none supplied.save
- Flag to save box.json dependencysaveDev
- Flag to save box.json dev dependencyproduction
- Flag to perform a production installcurrentWorkingDirectory
- Original working directory that requested installationverbose
- Flag to print verbose outputforce
- Flag to force installationpackagePathRequestingInstallation
- Path to package requesting installing. This climbs the folders structure for nested dependencies.
Announced while a package is being installed, after the package endpoint and installation directory has been resolved but before the actual installation occurs. This allows you to override things like the installation directory based on package type. Any values updated in the interceptData
struct will override what the install
command uses.
interceptData
installArgs
- Same aspreInstall
aboveinstallDirectory
- Directory that the package will be installed incontainerBoxJSON
- A struct containing thebox.json
of the page requesting the installationartifactDescriptor
- A struct containing thebox.json
of the package artifcat about to be installedartifactPath
- The folder containing the unzipped artifact, ready to be installed.ignorePatterns
- An array of file globbing patterns to ignore on installationendpointData
- A struct containing the following keys.endpointName
- The name of the endpoint. i.e. "forgebox" or "HTTP"package
- The name of the package. i.e. "cborm" or "coldbox"ID
- The canonical ID of the endpoint. i.e. "forgebox:coldbox" or "github:user/repo"endpoint
- The instance of the endpoint CFC that implementsIEndpoint
.
Announced after an installation is complete. If a package has additional dependencies to install, each of them will fire this interception point. This fires even if an install is skipped due to an existing package that satisfies the dependencies, or if the package is already installed.
interceptData
installArgs
- Same aspreInstall
above
Announced before the uninstallation of a package.
interceptData
uninstallArgs
- Struct containing the following keys used in removal of the packageID
- ID of the package to uninstalldirectory
- The directory to be uninstalled from (used to find box.json)save
- Whether to update box.jsoncurrentWorkingDirectory
- Path to package requesting removal . This climbs the folders structure for nested dependencies.
Announced after the uninstallation of a package.
interceptData
uninstallArgs
- Same aspreUninstall
above
Announced once before all dependencies are installed, no matter how many are actually installed.
interceptData
installArgs
- Raw parameters passed to theinstall
command.
Announced once after all dependencies are installed, no matter how many are actually installed.
interceptData
installArgs
- Raw parameters passed to theinstall
command.
Announced before the new version is set in the package.
interceptData
versionArgs
- A struct containing the following keys:version
- The new version about to be settagVersion
- Boolean that determines whether to tag a Git repomessage
- Commit message to use when tagging Git repodirectory
- The working directory of the packageforce
- If true, tag a Git repo even if it isn't clean
Announced after the new version is set in the package but before the Git repo is tagged.
interceptData
versionArgs
- Same aspreVersion
above.
Announced after a new version is set using the bump
command and after the Git repo is tagged.
interceptData
directory
- The working directory of the packageversion
- The new version about was set
Announced prior to publishing a package to an endpoint
interceptData
publishArgs
- A struct containing the following keys:endpointName
- The name of the endpoint being published todirectory
- The directory that the package lives in
boxJSON
- A struct containing the defaultedbox.json
properties for the package
Announced after publishing a package to an endpoint
interceptData
publishArgs
- Same asprePublish
above.boxJSON
- Same asprePublish
above.- preUnpublish
Announced prior to unpublishing a package from an endpoint
interceptData
unpublishArgs
- A struct containing the following keys:endpointName
- The name of the endpoint being published todirectory
- The directory that the package lives inversion
- The version being unpublishedforce
- Boolean to skip the interactive prompt
boxJSON
- A struct containing the defaultedbox.json
properties for the package
Announced after unpublishing a package from an endpoint
interceptData
unpublishArgs
- Same aspreUnpublish
above.boxJSON
- Same aspreUnpublish
above.