@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:31.139Z") @Deprecated public interface StandardNpmSynthOptions extends 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 java.lang.String |
getBuildCommand()
Deprecated.
|
default java.lang.String |
getInstallCommand()
Deprecated.
|
default java.lang.String |
getSynthCommand()
Deprecated.
|
default java.util.List<java.lang.String> |
getTestCommands()
Deprecated.
|
getActionName, getAdditionalArtifacts, getBuildSpec, getCloudAssemblyArtifact, getCopyEnvironmentVariables, getEnvironment, getEnvironmentVariables, getProjectName, getRolePolicyStatements, getSourceArtifact, getSubdirectory, getSubnetSelection, getVpc
@Deprecated default java.lang.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
@Deprecated default java.lang.String getInstallCommand()
Default: 'npm ci'
@Deprecated default java.lang.String getSynthCommand()
Default: 'npx cdk synth'
@Deprecated default java.util.List<java.lang.String> getTestCommands()
These commands are run after the build commands but before the synth command.
Default: - No test commands
@Deprecated static StandardNpmSynthOptions.Builder builder()
builder
in interface SimpleSynthOptions
StandardNpmSynthOptions.Builder
of StandardNpmSynthOptions