@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.702Z") @Stability(value=Deprecated) @Deprecated public interface StandardNpmSynthOptions extends software.amazon.jsii.JsiiSerializable, SimpleSynthOptions
Example:
Artifact sourceArtifact = new Artifact();
Artifact cloudAssemblyArtifact = new Artifact();
CdkPipeline pipeline = CdkPipeline.Builder.create(this, "MyPipeline")
.cloudAssemblyArtifact(cloudAssemblyArtifact)
.synthAction(SimpleSynthAction.standardNpmSynth(StandardNpmSynthOptions.builder()
.sourceArtifact(sourceArtifact)
.cloudAssemblyArtifact(cloudAssemblyArtifact)
.environment(BuildEnvironment.builder()
.privileged(true)
.build())
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
StandardNpmSynthOptions.Builder
Deprecated.
|
static class |
StandardNpmSynthOptions.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static StandardNpmSynthOptions.Builder |
builder()
Deprecated.
|
default String |
getBuildCommand()
Deprecated.
|
default String |
getInstallCommand()
Deprecated.
|
default String |
getSynthCommand()
Deprecated.
|
default List<String> |
getTestCommands()
Deprecated.
|
getActionName, getAdditionalArtifacts, getBuildSpec, getCloudAssemblyArtifact, getCopyEnvironmentVariables, getEnvironment, getEnvironmentVariables, getProjectName, getRolePolicyStatements, getSourceArtifact, getSubdirectory, getSubnetSelection, getVpc@Stability(value=Deprecated) @Deprecated @Nullable default String getBuildCommand()
By default, we assume NPM projects are either written in JavaScript or are
using ts-node, so don't need a build command.
Otherwise, put the build command here, for example npm run build.
Default: - No build required
@Stability(value=Deprecated) @Deprecated @Nullable default String getInstallCommand()
Default: 'npm ci'
@Stability(value=Deprecated) @Deprecated @Nullable default String getSynthCommand()
Default: 'npx cdk synth'
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getTestCommands()
These commands are run after the build commands but before the synth command.
Default: - No test commands
@Stability(value=Deprecated) @Deprecated static StandardNpmSynthOptions.Builder builder()
builder in interface SimpleSynthOptionsStandardNpmSynthOptions.Builder of StandardNpmSynthOptionsCopyright © 2022. All rights reserved.