cdklabs-projen-project-types 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +179 -429
- package/API.md +60 -396
- package/lib/cdk-construct-library-options.d.ts +11 -0
- package/lib/cdk-construct-library-options.js +1 -1
- package/lib/cdk.js +2 -2
- package/lib/cdklabs.js +3 -3
- package/lib/common-options.d.ts +1 -1
- package/lib/common-options.js +9 -9
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- package/lib/jsii.js +1 -1
- package/lib/rosetta.js +1 -1
- package/lib/yarn/monorepo-release.js +1 -1
- package/lib/yarn/monorepo.js +2 -2
- package/lib/yarn/typescript-workspace-release.js +1 -1
- package/lib/yarn/typescript-workspace.js +1 -1
- package/package.json +7 -7
- package/lib/cdk-cli-integ-tests.d.ts +0 -102
- package/lib/cdk-cli-integ-tests.js +0 -362
package/API.md
CHANGED
|
@@ -2,194 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## Constructs <a name="Constructs" id="Constructs"></a>
|
|
4
4
|
|
|
5
|
-
### CdkCliIntegTestsWorkflow <a name="CdkCliIntegTestsWorkflow" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow"></a>
|
|
6
|
-
|
|
7
|
-
Add a workflow for running the tests.
|
|
8
|
-
|
|
9
|
-
This MUST be a separate workflow that runs in privileged context. We have a couple
|
|
10
|
-
of options:
|
|
11
|
-
|
|
12
|
-
- `workflow_run`: we can trigger a privileged workflow run after the unprivileged
|
|
13
|
-
`pull_request` workflow finishes and reuse its output artifacts. The
|
|
14
|
-
problem is that the second run is disconnected from the PR so we would need
|
|
15
|
-
to script in visibility for approvals and success (by posting comments, for
|
|
16
|
-
example)
|
|
17
|
-
- Use only a `pull_request_target` workflow on the PR: this either would run
|
|
18
|
-
a privileged workflow on any user code submission (might be fine given the
|
|
19
|
-
workflow's `permissions`, but I'm sure this will make our security team uneasy
|
|
20
|
-
anyway), OR this would mean any build needs human confirmation which means slow
|
|
21
|
-
feedback.
|
|
22
|
-
- Use a `pull_request` for a regular fast-feedback build, and a separate
|
|
23
|
-
`pull_request_target` for the integ tests. This means we're building twice.
|
|
24
|
-
|
|
25
|
-
Ultimately, our build isn't heavy enough to put in a lot of effort deduping
|
|
26
|
-
it, so we'll go with the simplest solution which is the last one: 2
|
|
27
|
-
independent workflows.
|
|
28
|
-
|
|
29
|
-
projen doesn't make it easy to copy the relevant parts of the 'build' workflow,
|
|
30
|
-
so they're unfortunately duplicated here.
|
|
31
|
-
|
|
32
|
-
#### Initializers <a name="Initializers" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.Initializer"></a>
|
|
33
|
-
|
|
34
|
-
```typescript
|
|
35
|
-
import { CdkCliIntegTestsWorkflow } from 'cdklabs-projen-project-types'
|
|
36
|
-
|
|
37
|
-
new CdkCliIntegTestsWorkflow(repo: NodeProject, props: CdkCliIntegTestsWorkflowProps)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
| **Name** | **Type** | **Description** |
|
|
41
|
-
| --- | --- | --- |
|
|
42
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.Initializer.parameter.repo">repo</a></code> | <code>projen.javascript.NodeProject</code> | *No description.* |
|
|
43
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.Initializer.parameter.props">props</a></code> | <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps">CdkCliIntegTestsWorkflowProps</a></code> | *No description.* |
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
##### `repo`<sup>Required</sup> <a name="repo" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.Initializer.parameter.repo"></a>
|
|
48
|
-
|
|
49
|
-
- *Type:* projen.javascript.NodeProject
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
##### `props`<sup>Required</sup> <a name="props" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.Initializer.parameter.props"></a>
|
|
54
|
-
|
|
55
|
-
- *Type:* <a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps">CdkCliIntegTestsWorkflowProps</a>
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
#### Methods <a name="Methods" id="Methods"></a>
|
|
60
|
-
|
|
61
|
-
| **Name** | **Description** |
|
|
62
|
-
| --- | --- |
|
|
63
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.toString">toString</a></code> | Returns a string representation of this construct. |
|
|
64
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.postSynthesize">postSynthesize</a></code> | Called after synthesis. |
|
|
65
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.preSynthesize">preSynthesize</a></code> | Called before synthesis. |
|
|
66
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.synthesize">synthesize</a></code> | Synthesizes files to the project output directory. |
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
##### `toString` <a name="toString" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.toString"></a>
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
public toString(): string
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Returns a string representation of this construct.
|
|
77
|
-
|
|
78
|
-
##### `postSynthesize` <a name="postSynthesize" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.postSynthesize"></a>
|
|
79
|
-
|
|
80
|
-
```typescript
|
|
81
|
-
public postSynthesize(): void
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Called after synthesis.
|
|
85
|
-
|
|
86
|
-
Order is *not* guaranteed.
|
|
87
|
-
|
|
88
|
-
##### `preSynthesize` <a name="preSynthesize" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.preSynthesize"></a>
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
public preSynthesize(): void
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Called before synthesis.
|
|
95
|
-
|
|
96
|
-
##### `synthesize` <a name="synthesize" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.synthesize"></a>
|
|
97
|
-
|
|
98
|
-
```typescript
|
|
99
|
-
public synthesize(): void
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Synthesizes files to the project output directory.
|
|
103
|
-
|
|
104
|
-
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
105
|
-
|
|
106
|
-
| **Name** | **Description** |
|
|
107
|
-
| --- | --- |
|
|
108
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
|
|
109
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isComponent">isComponent</a></code> | Test whether the given construct is a component. |
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
##### `isConstruct` <a name="isConstruct" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isConstruct"></a>
|
|
114
|
-
|
|
115
|
-
```typescript
|
|
116
|
-
import { CdkCliIntegTestsWorkflow } from 'cdklabs-projen-project-types'
|
|
117
|
-
|
|
118
|
-
CdkCliIntegTestsWorkflow.isConstruct(x: any)
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
Checks if `x` is a construct.
|
|
122
|
-
|
|
123
|
-
Use this method instead of `instanceof` to properly detect `Construct`
|
|
124
|
-
instances, even when the construct library is symlinked.
|
|
125
|
-
|
|
126
|
-
Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
127
|
-
disk are seen as independent, completely different libraries. As a
|
|
128
|
-
consequence, the class `Construct` in each copy of the `constructs` library
|
|
129
|
-
is seen as a different class, and an instance of one class will not test as
|
|
130
|
-
`instanceof` the other class. `npm install` will not create installations
|
|
131
|
-
like this, but users may manually symlink construct libraries together or
|
|
132
|
-
use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
133
|
-
library can be accidentally installed, and `instanceof` will behave
|
|
134
|
-
unpredictably. It is safest to avoid using `instanceof`, and using
|
|
135
|
-
this type-testing method instead.
|
|
136
|
-
|
|
137
|
-
###### `x`<sup>Required</sup> <a name="x" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isConstruct.parameter.x"></a>
|
|
138
|
-
|
|
139
|
-
- *Type:* any
|
|
140
|
-
|
|
141
|
-
Any object.
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
##### `isComponent` <a name="isComponent" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isComponent"></a>
|
|
146
|
-
|
|
147
|
-
```typescript
|
|
148
|
-
import { CdkCliIntegTestsWorkflow } from 'cdklabs-projen-project-types'
|
|
149
|
-
|
|
150
|
-
CdkCliIntegTestsWorkflow.isComponent(x: any)
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
Test whether the given construct is a component.
|
|
154
|
-
|
|
155
|
-
###### `x`<sup>Required</sup> <a name="x" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.isComponent.parameter.x"></a>
|
|
156
|
-
|
|
157
|
-
- *Type:* any
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
#### Properties <a name="Properties" id="Properties"></a>
|
|
162
|
-
|
|
163
|
-
| **Name** | **Type** | **Description** |
|
|
164
|
-
| --- | --- | --- |
|
|
165
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
166
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.property.project">project</a></code> | <code>projen.Project</code> | *No description.* |
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
##### `node`<sup>Required</sup> <a name="node" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.property.node"></a>
|
|
171
|
-
|
|
172
|
-
```typescript
|
|
173
|
-
public readonly node: Node;
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
- *Type:* constructs.Node
|
|
177
|
-
|
|
178
|
-
The tree node.
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
##### `project`<sup>Required</sup> <a name="project" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflow.property.project"></a>
|
|
183
|
-
|
|
184
|
-
```typescript
|
|
185
|
-
public readonly project: Project;
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
- *Type:* projen.Project
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
|
|
193
5
|
### CdkConstructLibrary <a name="CdkConstructLibrary" id="cdklabs-projen-project-types.CdkConstructLibrary"></a>
|
|
194
6
|
|
|
195
7
|
Create a Cdk Construct Library Project.
|
|
@@ -14764,214 +14576,6 @@ public readonly version: Version;
|
|
|
14764
14576
|
|
|
14765
14577
|
## Structs <a name="Structs" id="Structs"></a>
|
|
14766
14578
|
|
|
14767
|
-
### AtmosphereOptions <a name="AtmosphereOptions" id="cdklabs-projen-project-types.AtmosphereOptions"></a>
|
|
14768
|
-
|
|
14769
|
-
Options for atmosphere service usage.
|
|
14770
|
-
|
|
14771
|
-
#### Initializer <a name="Initializer" id="cdklabs-projen-project-types.AtmosphereOptions.Initializer"></a>
|
|
14772
|
-
|
|
14773
|
-
```typescript
|
|
14774
|
-
import { AtmosphereOptions } from 'cdklabs-projen-project-types'
|
|
14775
|
-
|
|
14776
|
-
const atmosphereOptions: AtmosphereOptions = { ... }
|
|
14777
|
-
```
|
|
14778
|
-
|
|
14779
|
-
#### Properties <a name="Properties" id="Properties"></a>
|
|
14780
|
-
|
|
14781
|
-
| **Name** | **Type** | **Description** |
|
|
14782
|
-
| --- | --- | --- |
|
|
14783
|
-
| <code><a href="#cdklabs-projen-project-types.AtmosphereOptions.property.endpoint">endpoint</a></code> | <code>string</code> | Atmosphere service endpoint. |
|
|
14784
|
-
| <code><a href="#cdklabs-projen-project-types.AtmosphereOptions.property.oidcRoleArn">oidcRoleArn</a></code> | <code>string</code> | OIDC role to assume prior to using atmosphere. |
|
|
14785
|
-
| <code><a href="#cdklabs-projen-project-types.AtmosphereOptions.property.pool">pool</a></code> | <code>string</code> | Which pool to retrieve environments from. |
|
|
14786
|
-
|
|
14787
|
-
---
|
|
14788
|
-
|
|
14789
|
-
##### `endpoint`<sup>Required</sup> <a name="endpoint" id="cdklabs-projen-project-types.AtmosphereOptions.property.endpoint"></a>
|
|
14790
|
-
|
|
14791
|
-
```typescript
|
|
14792
|
-
public readonly endpoint: string;
|
|
14793
|
-
```
|
|
14794
|
-
|
|
14795
|
-
- *Type:* string
|
|
14796
|
-
|
|
14797
|
-
Atmosphere service endpoint.
|
|
14798
|
-
|
|
14799
|
-
---
|
|
14800
|
-
|
|
14801
|
-
##### `oidcRoleArn`<sup>Required</sup> <a name="oidcRoleArn" id="cdklabs-projen-project-types.AtmosphereOptions.property.oidcRoleArn"></a>
|
|
14802
|
-
|
|
14803
|
-
```typescript
|
|
14804
|
-
public readonly oidcRoleArn: string;
|
|
14805
|
-
```
|
|
14806
|
-
|
|
14807
|
-
- *Type:* string
|
|
14808
|
-
|
|
14809
|
-
OIDC role to assume prior to using atmosphere.
|
|
14810
|
-
|
|
14811
|
-
Must be allow listed
|
|
14812
|
-
on the service endpoint.
|
|
14813
|
-
|
|
14814
|
-
---
|
|
14815
|
-
|
|
14816
|
-
##### `pool`<sup>Required</sup> <a name="pool" id="cdklabs-projen-project-types.AtmosphereOptions.property.pool"></a>
|
|
14817
|
-
|
|
14818
|
-
```typescript
|
|
14819
|
-
public readonly pool: string;
|
|
14820
|
-
```
|
|
14821
|
-
|
|
14822
|
-
- *Type:* string
|
|
14823
|
-
|
|
14824
|
-
Which pool to retrieve environments from.
|
|
14825
|
-
|
|
14826
|
-
---
|
|
14827
|
-
|
|
14828
|
-
### CdkCliIntegTestsWorkflowProps <a name="CdkCliIntegTestsWorkflowProps" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps"></a>
|
|
14829
|
-
|
|
14830
|
-
#### Initializer <a name="Initializer" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.Initializer"></a>
|
|
14831
|
-
|
|
14832
|
-
```typescript
|
|
14833
|
-
import { CdkCliIntegTestsWorkflowProps } from 'cdklabs-projen-project-types'
|
|
14834
|
-
|
|
14835
|
-
const cdkCliIntegTestsWorkflowProps: CdkCliIntegTestsWorkflowProps = { ... }
|
|
14836
|
-
```
|
|
14837
|
-
|
|
14838
|
-
#### Properties <a name="Properties" id="Properties"></a>
|
|
14839
|
-
|
|
14840
|
-
| **Name** | **Type** | **Description** |
|
|
14841
|
-
| --- | --- | --- |
|
|
14842
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.approvalEnvironment">approvalEnvironment</a></code> | <code>string</code> | GitHub environment name for approvals. |
|
|
14843
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.buildRunsOn">buildRunsOn</a></code> | <code>string</code> | Runners for the workflow. |
|
|
14844
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.localPackages">localPackages</a></code> | <code>string[]</code> | Packages that are locally transfered (we will never use the upstream versions). |
|
|
14845
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.sourceRepo">sourceRepo</a></code> | <code>string</code> | The official repo this workflow is used for. |
|
|
14846
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.testEnvironment">testEnvironment</a></code> | <code>string</code> | GitHub environment name for running the tests. |
|
|
14847
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.testRunsOn">testRunsOn</a></code> | <code>string</code> | Runners for the workflow. |
|
|
14848
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.allowUpstreamVersions">allowUpstreamVersions</a></code> | <code>string[]</code> | If given, allows accessing upstream versions of these packages. |
|
|
14849
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.enableAtmosphere">enableAtmosphere</a></code> | <code><a href="#cdklabs-projen-project-types.AtmosphereOptions">AtmosphereOptions</a></code> | Enable atmosphere service to retrieve AWS test environments. |
|
|
14850
|
-
| <code><a href="#cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.maxWorkers">maxWorkers</a></code> | <code>string</code> | Specifies the maximum number of workers the worker-pool will spawn for running tests. |
|
|
14851
|
-
|
|
14852
|
-
---
|
|
14853
|
-
|
|
14854
|
-
##### `approvalEnvironment`<sup>Required</sup> <a name="approvalEnvironment" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.approvalEnvironment"></a>
|
|
14855
|
-
|
|
14856
|
-
```typescript
|
|
14857
|
-
public readonly approvalEnvironment: string;
|
|
14858
|
-
```
|
|
14859
|
-
|
|
14860
|
-
- *Type:* string
|
|
14861
|
-
|
|
14862
|
-
GitHub environment name for approvals.
|
|
14863
|
-
|
|
14864
|
-
MUST be configured to require manual approval.
|
|
14865
|
-
|
|
14866
|
-
---
|
|
14867
|
-
|
|
14868
|
-
##### `buildRunsOn`<sup>Required</sup> <a name="buildRunsOn" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.buildRunsOn"></a>
|
|
14869
|
-
|
|
14870
|
-
```typescript
|
|
14871
|
-
public readonly buildRunsOn: string;
|
|
14872
|
-
```
|
|
14873
|
-
|
|
14874
|
-
- *Type:* string
|
|
14875
|
-
|
|
14876
|
-
Runners for the workflow.
|
|
14877
|
-
|
|
14878
|
-
---
|
|
14879
|
-
|
|
14880
|
-
##### `localPackages`<sup>Required</sup> <a name="localPackages" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.localPackages"></a>
|
|
14881
|
-
|
|
14882
|
-
```typescript
|
|
14883
|
-
public readonly localPackages: string[];
|
|
14884
|
-
```
|
|
14885
|
-
|
|
14886
|
-
- *Type:* string[]
|
|
14887
|
-
|
|
14888
|
-
Packages that are locally transfered (we will never use the upstream versions).
|
|
14889
|
-
|
|
14890
|
-
Takes package names; these are expected to live in `packages/<NAME>/dist/js`.
|
|
14891
|
-
|
|
14892
|
-
---
|
|
14893
|
-
|
|
14894
|
-
##### `sourceRepo`<sup>Required</sup> <a name="sourceRepo" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.sourceRepo"></a>
|
|
14895
|
-
|
|
14896
|
-
```typescript
|
|
14897
|
-
public readonly sourceRepo: string;
|
|
14898
|
-
```
|
|
14899
|
-
|
|
14900
|
-
- *Type:* string
|
|
14901
|
-
|
|
14902
|
-
The official repo this workflow is used for.
|
|
14903
|
-
|
|
14904
|
-
---
|
|
14905
|
-
|
|
14906
|
-
##### `testEnvironment`<sup>Required</sup> <a name="testEnvironment" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.testEnvironment"></a>
|
|
14907
|
-
|
|
14908
|
-
```typescript
|
|
14909
|
-
public readonly testEnvironment: string;
|
|
14910
|
-
```
|
|
14911
|
-
|
|
14912
|
-
- *Type:* string
|
|
14913
|
-
|
|
14914
|
-
GitHub environment name for running the tests.
|
|
14915
|
-
|
|
14916
|
-
MUST be configured without approvals, and with the following vars and secrets:
|
|
14917
|
-
|
|
14918
|
-
- vars: AWS_ROLE_TO_ASSUME_FOR_TESTING
|
|
14919
|
-
|
|
14920
|
-
And the role needs to be configured to allow the AssumeRole operation.
|
|
14921
|
-
|
|
14922
|
-
---
|
|
14923
|
-
|
|
14924
|
-
##### `testRunsOn`<sup>Required</sup> <a name="testRunsOn" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.testRunsOn"></a>
|
|
14925
|
-
|
|
14926
|
-
```typescript
|
|
14927
|
-
public readonly testRunsOn: string;
|
|
14928
|
-
```
|
|
14929
|
-
|
|
14930
|
-
- *Type:* string
|
|
14931
|
-
|
|
14932
|
-
Runners for the workflow.
|
|
14933
|
-
|
|
14934
|
-
---
|
|
14935
|
-
|
|
14936
|
-
##### `allowUpstreamVersions`<sup>Optional</sup> <a name="allowUpstreamVersions" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.allowUpstreamVersions"></a>
|
|
14937
|
-
|
|
14938
|
-
```typescript
|
|
14939
|
-
public readonly allowUpstreamVersions: string[];
|
|
14940
|
-
```
|
|
14941
|
-
|
|
14942
|
-
- *Type:* string[]
|
|
14943
|
-
- *Default:* No upstream versions
|
|
14944
|
-
|
|
14945
|
-
If given, allows accessing upstream versions of these packages.
|
|
14946
|
-
|
|
14947
|
-
---
|
|
14948
|
-
|
|
14949
|
-
##### `enableAtmosphere`<sup>Optional</sup> <a name="enableAtmosphere" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.enableAtmosphere"></a>
|
|
14950
|
-
|
|
14951
|
-
```typescript
|
|
14952
|
-
public readonly enableAtmosphere: AtmosphereOptions;
|
|
14953
|
-
```
|
|
14954
|
-
|
|
14955
|
-
- *Type:* <a href="#cdklabs-projen-project-types.AtmosphereOptions">AtmosphereOptions</a>
|
|
14956
|
-
- *Default:* atmosphere is not used
|
|
14957
|
-
|
|
14958
|
-
Enable atmosphere service to retrieve AWS test environments.
|
|
14959
|
-
|
|
14960
|
-
---
|
|
14961
|
-
|
|
14962
|
-
##### `maxWorkers`<sup>Optional</sup> <a name="maxWorkers" id="cdklabs-projen-project-types.CdkCliIntegTestsWorkflowProps.property.maxWorkers"></a>
|
|
14963
|
-
|
|
14964
|
-
```typescript
|
|
14965
|
-
public readonly maxWorkers: string;
|
|
14966
|
-
```
|
|
14967
|
-
|
|
14968
|
-
- *Type:* string
|
|
14969
|
-
- *Default:* the cli integ test package determines a sensible default
|
|
14970
|
-
|
|
14971
|
-
Specifies the maximum number of workers the worker-pool will spawn for running tests.
|
|
14972
|
-
|
|
14973
|
-
---
|
|
14974
|
-
|
|
14975
14579
|
### CdkCommonOptions <a name="CdkCommonOptions" id="cdklabs-projen-project-types.CdkCommonOptions"></a>
|
|
14976
14580
|
|
|
14977
14581
|
CdkCommonOptions.
|
|
@@ -15160,6 +14764,8 @@ const cdkConstructLibraryOptions: CdkConstructLibraryOptions = { ... }
|
|
|
15160
14764
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.dependabot">dependabot</a></code> | <code>boolean</code> | Use dependabot to handle dependency upgrades. |
|
|
15161
14765
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.dependabotOptions">dependabotOptions</a></code> | <code>projen.github.DependabotOptions</code> | Options for dependabot. |
|
|
15162
14766
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.deps">deps</a></code> | <code>string[]</code> | Runtime dependencies of this module. |
|
|
14767
|
+
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.depsUpgrade">depsUpgrade</a></code> | <code>boolean</code> | Use tasks and github workflows to handle dependency upgrades. |
|
|
14768
|
+
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.depsUpgradeOptions">depsUpgradeOptions</a></code> | <code>projen.javascript.UpgradeDependenciesOptions</code> | Options for `UpgradeDependencies`. |
|
|
15163
14769
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.description">description</a></code> | <code>string</code> | The description is just a string that helps people understand the purpose of the package. |
|
|
15164
14770
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.devContainer">devContainer</a></code> | <code>boolean</code> | Add a VSCode development environment (used for GitHub Codespaces). |
|
|
15165
14771
|
| <code><a href="#cdklabs-projen-project-types.CdkConstructLibraryOptions.property.devDeps">devDeps</a></code> | <code>string[]</code> | Build dependencies for this module. |
|
|
@@ -16007,6 +15613,34 @@ this will be what you `package.json` will eventually include.
|
|
|
16007
15613
|
|
|
16008
15614
|
---
|
|
16009
15615
|
|
|
15616
|
+
##### `depsUpgrade`<sup>Optional</sup> <a name="depsUpgrade" id="cdklabs-projen-project-types.CdkConstructLibraryOptions.property.depsUpgrade"></a>
|
|
15617
|
+
|
|
15618
|
+
```typescript
|
|
15619
|
+
public readonly depsUpgrade: boolean;
|
|
15620
|
+
```
|
|
15621
|
+
|
|
15622
|
+
- *Type:* boolean
|
|
15623
|
+
- *Default:* true
|
|
15624
|
+
|
|
15625
|
+
Use tasks and github workflows to handle dependency upgrades.
|
|
15626
|
+
|
|
15627
|
+
Cannot be used in conjunction with `dependabot`.
|
|
15628
|
+
|
|
15629
|
+
---
|
|
15630
|
+
|
|
15631
|
+
##### `depsUpgradeOptions`<sup>Optional</sup> <a name="depsUpgradeOptions" id="cdklabs-projen-project-types.CdkConstructLibraryOptions.property.depsUpgradeOptions"></a>
|
|
15632
|
+
|
|
15633
|
+
```typescript
|
|
15634
|
+
public readonly depsUpgradeOptions: UpgradeDependenciesOptions;
|
|
15635
|
+
```
|
|
15636
|
+
|
|
15637
|
+
- *Type:* projen.javascript.UpgradeDependenciesOptions
|
|
15638
|
+
- *Default:* default options
|
|
15639
|
+
|
|
15640
|
+
Options for `UpgradeDependencies`.
|
|
15641
|
+
|
|
15642
|
+
---
|
|
15643
|
+
|
|
16010
15644
|
##### `description`<sup>Optional</sup> <a name="description" id="cdklabs-projen-project-types.CdkConstructLibraryOptions.property.description"></a>
|
|
16011
15645
|
|
|
16012
15646
|
```typescript
|
|
@@ -20613,6 +20247,8 @@ const cdklabsConstructLibraryOptions: CdklabsConstructLibraryOptions = { ... }
|
|
|
20613
20247
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.dependabot">dependabot</a></code> | <code>boolean</code> | Use dependabot to handle dependency upgrades. |
|
|
20614
20248
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.dependabotOptions">dependabotOptions</a></code> | <code>projen.github.DependabotOptions</code> | Options for dependabot. |
|
|
20615
20249
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.deps">deps</a></code> | <code>string[]</code> | Runtime dependencies of this module. |
|
|
20250
|
+
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.depsUpgrade">depsUpgrade</a></code> | <code>boolean</code> | Use tasks and github workflows to handle dependency upgrades. |
|
|
20251
|
+
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.depsUpgradeOptions">depsUpgradeOptions</a></code> | <code>projen.javascript.UpgradeDependenciesOptions</code> | Options for `UpgradeDependencies`. |
|
|
20616
20252
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.description">description</a></code> | <code>string</code> | The description is just a string that helps people understand the purpose of the package. |
|
|
20617
20253
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.devContainer">devContainer</a></code> | <code>boolean</code> | Add a VSCode development environment (used for GitHub Codespaces). |
|
|
20618
20254
|
| <code><a href="#cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.devDeps">devDeps</a></code> | <code>string[]</code> | Build dependencies for this module. |
|
|
@@ -21462,6 +21098,34 @@ this will be what you `package.json` will eventually include.
|
|
|
21462
21098
|
|
|
21463
21099
|
---
|
|
21464
21100
|
|
|
21101
|
+
##### `depsUpgrade`<sup>Optional</sup> <a name="depsUpgrade" id="cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.depsUpgrade"></a>
|
|
21102
|
+
|
|
21103
|
+
```typescript
|
|
21104
|
+
public readonly depsUpgrade: boolean;
|
|
21105
|
+
```
|
|
21106
|
+
|
|
21107
|
+
- *Type:* boolean
|
|
21108
|
+
- *Default:* true
|
|
21109
|
+
|
|
21110
|
+
Use tasks and github workflows to handle dependency upgrades.
|
|
21111
|
+
|
|
21112
|
+
Cannot be used in conjunction with `dependabot`.
|
|
21113
|
+
|
|
21114
|
+
---
|
|
21115
|
+
|
|
21116
|
+
##### `depsUpgradeOptions`<sup>Optional</sup> <a name="depsUpgradeOptions" id="cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.depsUpgradeOptions"></a>
|
|
21117
|
+
|
|
21118
|
+
```typescript
|
|
21119
|
+
public readonly depsUpgradeOptions: UpgradeDependenciesOptions;
|
|
21120
|
+
```
|
|
21121
|
+
|
|
21122
|
+
- *Type:* projen.javascript.UpgradeDependenciesOptions
|
|
21123
|
+
- *Default:* default options
|
|
21124
|
+
|
|
21125
|
+
Options for `UpgradeDependencies`.
|
|
21126
|
+
|
|
21127
|
+
---
|
|
21128
|
+
|
|
21465
21129
|
##### `description`<sup>Optional</sup> <a name="description" id="cdklabs-projen-project-types.CdklabsConstructLibraryOptions.property.description"></a>
|
|
21466
21130
|
|
|
21467
21131
|
```typescript
|
|
@@ -292,6 +292,17 @@ export interface CdkConstructLibraryOptions {
|
|
|
292
292
|
* @default []
|
|
293
293
|
*/
|
|
294
294
|
readonly deps?: Array<string>;
|
|
295
|
+
/**
|
|
296
|
+
* Use tasks and github workflows to handle dependency upgrades.
|
|
297
|
+
* Cannot be used in conjunction with `dependabot`.
|
|
298
|
+
* @default true
|
|
299
|
+
*/
|
|
300
|
+
readonly depsUpgrade?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Options for `UpgradeDependencies`.
|
|
303
|
+
* @default - default options
|
|
304
|
+
*/
|
|
305
|
+
readonly depsUpgradeOptions?: javascript.UpgradeDependenciesOptions;
|
|
295
306
|
/**
|
|
296
307
|
* The description is just a string that helps people understand the purpose of the package.
|
|
297
308
|
* It can be used when searching for packages in a package manager as well.
|