A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_nodejs.ICommandHooks.html below:

interface ICommandHooks · AWS CDK

interface ICommandHooks

Command hooks.

These commands will run in the environment in which bundling occurs: inside the container for Docker bundling or on the host OS for local bundling.

Commands are chained with &&.

The following example (specified in TypeScript) copies a file from the input directory to the output directory to include it in the bundled asset:

afterBundling(inputDir: string, outputDir: string): string[]{
  return [`cp ${inputDir}/my-binary.node ${outputDir}`];
}
Methods Name Description afterBundling(inputDir, outputDir) Returns commands to run after bundling. beforeBundling(inputDir, outputDir) Returns commands to run before bundling. beforeInstall(inputDir, outputDir) Returns commands to run before installing node modules. afterBundling(inputDir, outputDir)
public afterBundling(inputDir: string, outputDir: string): string[]

Parameters

Returns

Returns commands to run after bundling.

Commands are chained with &&.

beforeBundling(inputDir, outputDir)
public beforeBundling(inputDir: string, outputDir: string): string[]

Parameters

Returns

Returns commands to run before bundling.

Commands are chained with &&.

beforeInstall(inputDir, outputDir)
public beforeInstall(inputDir: string, outputDir: string): string[]

Parameters

Returns

Returns commands to run before installing node modules.

This hook only runs when node modules are installed.

Commands are chained with &&.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4