@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.573Z") @Stability(value=Experimental) 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 &&.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 { // Copy a file from the input directory to the output directory // to include it in the bundled asset afterBundling(inputDir, string, outputDir, string);string[];{return asList(String.format("cp %s/my-binary.node %s", inputDir, 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)
(experimental) Returns commands to run after bundling.
|
List<String> |
beforeBundling(String inputDir,
String outputDir)
(experimental) Returns commands to run before bundling.
|
List<String> |
beforeInstall(String inputDir,
String outputDir)
(experimental) Returns commands to run before installing node modules.
|
@Stability(value=Experimental) @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=Experimental) @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=Experimental) @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 © 2021. All rights reserved.