@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:30.124Z") @Stability(value=Stable) public interface ICommandHooks extends software.amazon.jsii.JsiiSerializable
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}`];
}
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ICommandHooks.Jsii$Default
Internal default implementation for
ICommandHooks. |
static class |
ICommandHooks.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
afterBundling(String inputDir,
String outputDir)
Returns commands to run after bundling.
|
List<String> |
beforeBundling(String inputDir,
String outputDir)
Returns commands to run before bundling.
|
List<String> |
beforeInstall(String inputDir,
String outputDir)
Returns commands to run before installing node modules.
|
@Stability(value=Stable) @NotNull List<String> afterBundling(@NotNull String inputDir, @NotNull String outputDir)
Commands are chained with &&.
inputDir - This parameter is required.outputDir - This parameter is required.@Stability(value=Stable) @NotNull List<String> beforeBundling(@NotNull String inputDir, @NotNull String outputDir)
Commands are chained with &&.
inputDir - This parameter is required.outputDir - This parameter is required.@Stability(value=Stable) @NotNull List<String> beforeInstall(@NotNull String inputDir, @NotNull String outputDir)
This hook only runs when node modules are installed.
Commands are chained with &&.
inputDir - This parameter is required.outputDir - This parameter is required.Copyright © 2023. All rights reserved.