projen 0.52.22 → 0.52.26
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 +139 -107
- package/changelog.md +1 -1
- package/docs/api/API.md +42 -39
- package/lib/awscdk/auto-discover.d.ts +14 -46
- package/lib/awscdk/auto-discover.js +8 -22
- package/lib/awscdk/awscdk-app-java.d.ts +10 -32
- package/lib/awscdk/awscdk-app-java.js +5 -9
- package/lib/awscdk/awscdk-app-ts.d.ts +15 -35
- package/lib/awscdk/awscdk-app-ts.js +6 -14
- package/lib/awscdk/awscdk-construct.d.ts +14 -28
- package/lib/awscdk/awscdk-construct.js +8 -16
- package/lib/awscdk/awscdk-deps-java.d.ts +1 -8
- package/lib/awscdk/awscdk-deps-java.js +3 -10
- package/lib/awscdk/awscdk-deps-js.d.ts +1 -8
- package/lib/awscdk/awscdk-deps-js.js +3 -10
- package/lib/awscdk/awscdk-deps.d.ts +28 -67
- package/lib/awscdk/awscdk-deps.js +5 -12
- package/lib/awscdk/cdk-config.d.ts +19 -51
- package/lib/awscdk/cdk-config.js +13 -11
- package/lib/awscdk/cdk-tasks.d.ts +7 -24
- package/lib/awscdk/cdk-tasks.js +3 -8
- package/lib/awscdk/integration-test.d.ts +7 -29
- package/lib/awscdk/integration-test.js +3 -8
- package/lib/awscdk/lambda-function.d.ts +22 -50
- package/lib/awscdk/lambda-function.js +11 -24
- package/lib/build/build-workflow.d.ts +33 -78
- package/lib/build/build-workflow.js +15 -25
- package/lib/cdk/auto-discover-base.d.ts +11 -34
- package/lib/cdk/auto-discover-base.js +5 -15
- package/lib/cdk/construct-lib.d.ts +8 -22
- package/lib/cdk/construct-lib.js +3 -8
- package/lib/cdk/integration-test-base.d.ts +12 -38
- package/lib/cdk/integration-test-base.js +2 -8
- package/lib/cdk/jsii-docgen.d.ts +6 -12
- package/lib/cdk/jsii-docgen.js +6 -8
- package/lib/cdk/jsii-project.d.ts +16 -95
- package/lib/cdk/jsii-project.js +3 -10
- package/lib/cdk8s/auto-discover.d.ts +6 -23
- package/lib/cdk8s/auto-discover.js +6 -15
- package/lib/cdk8s/cdk8s-app-ts.d.ts +21 -43
- package/lib/cdk8s/cdk8s-app-ts.js +4 -7
- package/lib/cdk8s/cdk8s-construct.d.ts +12 -27
- package/lib/cdk8s/cdk8s-construct.js +3 -7
- package/lib/cdk8s/integration-test.d.ts +2 -9
- package/lib/cdk8s/integration-test.js +3 -8
- package/lib/cdktf/cdktf-construct.d.ts +3 -12
- package/lib/cdktf/cdktf-construct.js +3 -7
- package/lib/component.d.ts +4 -17
- package/lib/component.js +6 -19
- package/lib/dependencies.d.ts +44 -77
- package/lib/dependencies.js +50 -38
- package/lib/dev-env.d.ts +26 -53
- package/lib/dev-env.js +9 -19
- package/lib/docker-compose.d.ts +83 -209
- package/lib/docker-compose.js +38 -61
- package/lib/file.d.ts +24 -71
- package/lib/file.js +4 -16
- package/lib/gitattributes.d.ts +3 -14
- package/lib/gitattributes.js +5 -16
- package/lib/github/auto-approve.d.ts +7 -23
- package/lib/github/auto-approve.js +3 -8
- package/lib/github/auto-merge.d.ts +7 -29
- package/lib/github/auto-merge.js +7 -16
- package/lib/github/dependabot.d.ts +54 -147
- package/lib/github/dependabot.js +81 -22
- package/lib/github/github-project.d.ts +26 -70
- package/lib/github/github-project.js +5 -10
- package/lib/github/github.d.ts +19 -58
- package/lib/github/github.js +9 -30
- package/lib/github/mergify.d.ts +9 -54
- package/lib/github/mergify.js +2 -14
- package/lib/github/pr-template.d.ts +3 -13
- package/lib/github/pr-template.js +3 -8
- package/lib/github/pull-request-lint.d.ts +8 -28
- package/lib/github/pull-request-lint.js +3 -9
- package/lib/github/stale.d.ts +17 -47
- package/lib/github/stale.js +6 -10
- package/lib/github/task-workflow.d.ts +21 -63
- package/lib/github/task-workflow.js +3 -8
- package/lib/github/workflows-model.d.ts +199 -582
- package/lib/github/workflows-model.js +5 -4
- package/lib/github/workflows.d.ts +14 -41
- package/lib/github/workflows.js +8 -16
- package/lib/gitlab/configuration-model.d.ts +145 -947
- package/lib/gitlab/configuration-model.js +11 -28
- package/lib/gitlab/configuration.d.ts +31 -121
- package/lib/gitlab/configuration.js +14 -49
- package/lib/gitlab/gitlab-configuration.d.ts +2 -13
- package/lib/gitlab/gitlab-configuration.js +4 -15
- package/lib/gitlab/nested-configuration.d.ts +1 -9
- package/lib/gitlab/nested-configuration.js +3 -8
- package/lib/gitpod.d.ts +71 -167
- package/lib/gitpod.js +75 -42
- package/lib/ignore-file.d.ts +4 -23
- package/lib/ignore-file.js +6 -25
- package/lib/ini.d.ts +2 -14
- package/lib/ini.js +3 -13
- package/lib/java/java-project.d.ts +29 -70
- package/lib/java/java-project.js +10 -17
- package/lib/java/junit.d.ts +5 -17
- package/lib/java/junit.js +3 -8
- package/lib/java/maven-compile.d.ts +4 -13
- package/lib/java/maven-compile.js +3 -8
- package/lib/java/maven-packaging.d.ts +6 -21
- package/lib/java/maven-packaging.js +3 -8
- package/lib/java/maven-sample.d.ts +2 -12
- package/lib/java/maven-sample.js +3 -8
- package/lib/java/pom.d.ts +38 -100
- package/lib/java/pom.js +13 -25
- package/lib/java/projenrc.d.ts +7 -22
- package/lib/java/projenrc.js +3 -8
- package/lib/javascript/bundler.d.ts +30 -72
- package/lib/javascript/bundler.js +13 -21
- package/lib/javascript/eslint.d.ts +27 -84
- package/lib/javascript/eslint.js +11 -30
- package/lib/javascript/jest.d.ts +91 -344
- package/lib/javascript/jest.js +6 -23
- package/lib/javascript/node-package.d.ts +111 -259
- package/lib/javascript/node-package.js +64 -81
- package/lib/javascript/node-project.d.ts +112 -220
- package/lib/javascript/node-project.js +54 -73
- package/lib/javascript/npm-config.d.ts +9 -19
- package/lib/javascript/npm-config.js +9 -16
- package/lib/javascript/prettier.d.ts +65 -196
- package/lib/javascript/prettier.js +70 -46
- package/lib/javascript/projenrc.d.ts +2 -12
- package/lib/javascript/projenrc.js +3 -8
- package/lib/javascript/typescript-config.d.ts +62 -158
- package/lib/javascript/typescript-config.js +31 -18
- package/lib/javascript/upgrade-dependencies.d.ts +35 -94
- package/lib/javascript/upgrade-dependencies.js +21 -51
- package/lib/json.d.ts +3 -17
- package/lib/json.js +3 -13
- package/lib/license.d.ts +3 -20
- package/lib/license.js +2 -13
- package/lib/logger.d.ts +18 -62
- package/lib/logger.js +17 -37
- package/lib/makefile.d.ts +14 -45
- package/lib/makefile.js +7 -25
- package/lib/object-file.d.ts +19 -39
- package/lib/object-file.js +17 -28
- package/lib/option-hints.d.ts +4 -13
- package/lib/option-hints.js +11 -5
- package/lib/project-build.d.ts +7 -26
- package/lib/project-build.js +3 -8
- package/lib/project.d.ts +64 -186
- package/lib/project.js +43 -91
- package/lib/projects.d.ts +11 -32
- package/lib/projects.js +4 -8
- package/lib/projenrc-json.d.ts +2 -12
- package/lib/projenrc-json.js +3 -8
- package/lib/python/pip.d.ts +7 -23
- package/lib/python/pip.js +8 -17
- package/lib/python/poetry.d.ts +36 -121
- package/lib/python/poetry.js +12 -26
- package/lib/python/projenrc.d.ts +4 -15
- package/lib/python/projenrc.js +3 -8
- package/lib/python/pytest.d.ts +3 -16
- package/lib/python/pytest.js +2 -8
- package/lib/python/python-deps.d.ts +7 -21
- package/lib/python/python-deps.js +1 -1
- package/lib/python/python-env.d.ts +1 -6
- package/lib/python/python-env.js +1 -1
- package/lib/python/python-packaging.d.ts +12 -34
- package/lib/python/python-packaging.js +1 -1
- package/lib/python/python-project.d.ts +34 -79
- package/lib/python/python-project.js +7 -20
- package/lib/python/python-sample.d.ts +2 -9
- package/lib/python/python-sample.js +3 -8
- package/lib/python/requirements-file.d.ts +4 -19
- package/lib/python/requirements-file.js +5 -15
- package/lib/python/setuppy.d.ts +11 -39
- package/lib/python/setuppy.js +3 -13
- package/lib/python/setuptools.d.ts +2 -14
- package/lib/python/setuptools.js +3 -8
- package/lib/python/venv.d.ts +4 -14
- package/lib/python/venv.js +4 -11
- package/lib/readme.d.ts +7 -16
- package/lib/readme.js +5 -7
- package/lib/release/publisher.d.ts +103 -206
- package/lib/release/publisher.js +47 -59
- package/lib/release/release-trigger.d.ts +16 -48
- package/lib/release/release-trigger.js +8 -18
- package/lib/release/release.d.ts +50 -110
- package/lib/release/release.js +9 -24
- package/lib/sample-file.d.ts +14 -47
- package/lib/sample-file.js +9 -30
- package/lib/semver.d.ts +4 -21
- package/lib/semver.js +6 -20
- package/lib/source-code.d.ts +7 -23
- package/lib/source-code.js +7 -19
- package/lib/task-model.d.ts +21 -61
- package/lib/task-model.js +1 -1
- package/lib/task-runtime.d.ts +7 -24
- package/lib/task-runtime.js +7 -20
- package/lib/task.d.ts +29 -73
- package/lib/task.js +28 -61
- package/lib/tasks.d.ts +12 -34
- package/lib/tasks.js +14 -36
- package/lib/testing.d.ts +6 -10
- package/lib/testing.js +8 -12
- package/lib/textfile.d.ts +9 -24
- package/lib/textfile.js +9 -19
- package/lib/toml.d.ts +2 -14
- package/lib/toml.js +3 -13
- package/lib/typescript/projenrc.d.ts +4 -14
- package/lib/typescript/projenrc.js +3 -8
- package/lib/typescript/typescript-typedoc.d.ts +1 -6
- package/lib/typescript/typescript-typedoc.js +3 -8
- package/lib/typescript/typescript.d.ts +24 -82
- package/lib/typescript/typescript.js +6 -15
- package/lib/version.d.ts +9 -38
- package/lib/version.js +2 -11
- package/lib/vscode/devcontainer.d.ts +10 -30
- package/lib/vscode/devcontainer.js +10 -26
- package/lib/vscode/launch-config.d.ts +18 -97
- package/lib/vscode/launch-config.js +9 -15
- package/lib/vscode/vscode.d.ts +0 -9
- package/lib/vscode/vscode.js +2 -11
- package/lib/web/next.d.ts +19 -60
- package/lib/web/next.js +6 -20
- package/lib/web/postcss.d.ts +3 -24
- package/lib/web/postcss.js +3 -8
- package/lib/web/react.d.ts +13 -60
- package/lib/web/react.js +7 -32
- package/lib/web/tailwind.d.ts +1 -15
- package/lib/web/tailwind.js +3 -7
- package/lib/xmlfile.d.ts +2 -14
- package/lib/xmlfile.js +3 -13
- package/lib/yaml.d.ts +4 -19
- package/lib/yaml.js +3 -13
- package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/buffer.d.ts +90 -0
- package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
- package/package.json +4 -4
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/lib/gitpod.d.ts
CHANGED
|
@@ -3,318 +3,235 @@ import { IDevEnvironment, DevEnvironmentOptions, DevEnvironmentDockerImage } fro
|
|
|
3
3
|
import { Project } from "./project";
|
|
4
4
|
import { Task } from "./task";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* https://www.gitpod.io/docs/configuration/
|
|
7
|
+
* https://www.gitpod.io/docs/config-start-tasks/
|
|
8
|
+
* https://www.gitpod.io/docs/prebuilds/#configure-the-github-app
|
|
9
|
+
* https://www.gitpod.io/docs/vscode-extensions/
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Configure how the terminal should be opened relative to the previous task.
|
|
9
13
|
*/
|
|
10
14
|
export declare enum GitpodOpenMode {
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @experimental
|
|
16
|
+
* Opens in the same tab group right after the previous tab
|
|
15
17
|
*/
|
|
16
18
|
TAB_AFTER = "tab-after",
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @experimental
|
|
20
|
+
* Opens in the same tab group left before the previous tab
|
|
21
21
|
*/
|
|
22
22
|
TAB_BEFORE = "tab-before",
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @experimental
|
|
24
|
+
* Splits and adds the terminal to the right
|
|
27
25
|
*/
|
|
28
26
|
SPLIT_RIGHT = "split-right",
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @experimental
|
|
28
|
+
* Splits and adds the terminal to the left
|
|
33
29
|
*/
|
|
34
30
|
SPLIT_LEFT = "split-left",
|
|
35
31
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @experimental
|
|
32
|
+
* Splits and adds the terminal to the top
|
|
39
33
|
*/
|
|
40
34
|
SPLIT_TOP = "split-top",
|
|
41
35
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @experimental
|
|
36
|
+
* Splits and adds the terminal to the bottom
|
|
45
37
|
*/
|
|
46
38
|
SPLIT_BOTTOM = "split-bottom"
|
|
47
39
|
}
|
|
48
40
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* @experimental
|
|
41
|
+
* Configure where in the IDE the terminal should be opened.
|
|
52
42
|
*/
|
|
53
43
|
export declare enum GitpodOpenIn {
|
|
54
44
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @experimental
|
|
45
|
+
* the bottom panel (default)
|
|
58
46
|
*/
|
|
59
47
|
BOTTOM = "bottom",
|
|
60
48
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @experimental
|
|
49
|
+
* the left panel
|
|
64
50
|
*/
|
|
65
51
|
LEFT = "left",
|
|
66
52
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @experimental
|
|
53
|
+
* the right panel
|
|
70
54
|
*/
|
|
71
55
|
RIGHT = "right",
|
|
72
56
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* @experimental
|
|
57
|
+
* the main editor area
|
|
76
58
|
*/
|
|
77
59
|
MAIN = "main"
|
|
78
60
|
}
|
|
79
61
|
/**
|
|
80
|
-
*
|
|
62
|
+
* Configure options for a task to be run when opening a Gitpod
|
|
63
|
+
* workspace (e.g. running tests, or starting a dev server).
|
|
81
64
|
*
|
|
82
65
|
* Start Mode | Execution
|
|
83
66
|
* Fresh Workspace | before && init && command
|
|
84
67
|
* Restart Workspace | before && command
|
|
85
68
|
* Snapshot | before && command
|
|
86
69
|
* Prebuild | before && init && prebuild
|
|
87
|
-
*
|
|
88
|
-
* @experimental
|
|
89
70
|
*/
|
|
90
71
|
export interface GitpodTask {
|
|
91
72
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* The shell command to run
|
|
95
|
-
*
|
|
96
|
-
* @experimental
|
|
73
|
+
* Required. The shell command to run
|
|
97
74
|
*/
|
|
98
75
|
readonly command: string;
|
|
99
76
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
77
|
+
* A name for this task.
|
|
102
78
|
* @default - task names are omitted when blank
|
|
103
|
-
* @experimental
|
|
104
79
|
*/
|
|
105
80
|
readonly name?: string;
|
|
106
81
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
82
|
+
* You can configure how the terminal should be opened relative to the previous task.
|
|
109
83
|
* @default GitpodOpenMode.TAB_AFTER
|
|
110
|
-
* @experimental
|
|
111
84
|
*/
|
|
112
85
|
readonly openMode?: GitpodOpenMode;
|
|
113
86
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
87
|
+
* You can configure where in the IDE the terminal should be opened
|
|
116
88
|
* @default GitpodOpenIn.BOTTOM
|
|
117
|
-
* @experimental
|
|
118
89
|
*/
|
|
119
90
|
readonly openIn?: GitpodOpenIn;
|
|
120
91
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
92
|
+
* In case you need to run something even before init, that is a requirement for both init and command,
|
|
93
|
+
* you can use the before property.
|
|
123
94
|
* @default
|
|
124
|
-
* @experimental
|
|
125
95
|
*/
|
|
126
96
|
readonly before?: string;
|
|
127
97
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* Such tasks are usually builds or downloading
|
|
98
|
+
* The init property can be used to specify shell commands that should only be executed after a workspace
|
|
99
|
+
* was freshly cloned and needs to be initialized somehow. Such tasks are usually builds or downloading
|
|
131
100
|
* dependencies. Anything you only want to do once but not when you restart a workspace or start a snapshot.
|
|
132
|
-
*
|
|
133
101
|
* @default
|
|
134
|
-
* @experimental
|
|
135
102
|
*/
|
|
136
103
|
readonly init?: string;
|
|
137
104
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* It is meant to run additional long running
|
|
105
|
+
* The optional prebuild command will be executed during prebuilds. It is meant to run additional long running
|
|
141
106
|
* processes that could be useful, e.g. running test suites.
|
|
142
|
-
*
|
|
143
107
|
* @default
|
|
144
|
-
* @experimental
|
|
145
108
|
*/
|
|
146
109
|
readonly prebuild?: string;
|
|
147
110
|
}
|
|
148
111
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* @experimental
|
|
112
|
+
* What to do when a service on a port is detected.
|
|
152
113
|
*/
|
|
153
114
|
export declare enum GitpodOnOpen {
|
|
154
115
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* @experimental
|
|
116
|
+
* Open a new browser tab
|
|
158
117
|
*/
|
|
159
118
|
OPEN_BROWSER = "open-browser",
|
|
160
119
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @experimental
|
|
120
|
+
* Open a preview on the right side of the IDE
|
|
164
121
|
*/
|
|
165
122
|
OPEN_PREVIEW = "open-preview",
|
|
166
123
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* @experimental
|
|
124
|
+
* Show a notification asking the user what to do (default)
|
|
170
125
|
*/
|
|
171
126
|
NOTIFY = "notify",
|
|
172
127
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* @experimental
|
|
128
|
+
* Do nothing.
|
|
176
129
|
*/
|
|
177
130
|
IGNORE = "ignore"
|
|
178
131
|
}
|
|
179
132
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* @experimental
|
|
133
|
+
* Whether the port visibility should be private or public
|
|
183
134
|
*/
|
|
184
135
|
export declare enum GitpodPortVisibility {
|
|
185
136
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @experimental
|
|
137
|
+
* Allows everyone with the port URL to access the port (default)
|
|
189
138
|
*/
|
|
190
139
|
PUBLIC = "public",
|
|
191
140
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* @experimental
|
|
141
|
+
* Only allows users with workspace access to access the port
|
|
195
142
|
*/
|
|
196
143
|
PRIVATE = "private"
|
|
197
144
|
}
|
|
198
145
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* @experimental
|
|
146
|
+
* Options for an exposed port on Gitpod
|
|
202
147
|
*/
|
|
203
148
|
export interface GitpodPort {
|
|
204
149
|
/**
|
|
205
|
-
*
|
|
150
|
+
* A port that should be exposed (forwarded) from the container.
|
|
206
151
|
*
|
|
207
|
-
* @
|
|
208
|
-
* @example
|
|
209
|
-
*
|
|
210
|
-
* "8080"
|
|
152
|
+
* @example "8080"
|
|
211
153
|
*/
|
|
212
154
|
readonly port?: string;
|
|
213
155
|
/**
|
|
214
|
-
*
|
|
156
|
+
* What to do when a service on a port is detected.
|
|
215
157
|
*
|
|
216
158
|
* @default GitpodOnOpen.NOTIFY
|
|
217
|
-
* @experimental
|
|
218
159
|
*/
|
|
219
160
|
readonly onOpen?: GitpodOnOpen;
|
|
220
161
|
/**
|
|
221
|
-
*
|
|
162
|
+
* Whether the port visibility should be private or public.
|
|
222
163
|
*
|
|
223
164
|
* @default GitpodPortVisibility.PUBLIC
|
|
224
|
-
* @experimental
|
|
225
165
|
*/
|
|
226
166
|
readonly visibility?: GitpodPortVisibility;
|
|
227
167
|
}
|
|
228
168
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
169
|
+
* Configure the Gitpod App for prebuilds.
|
|
231
170
|
* Currently only GitHub is supported.
|
|
232
|
-
*
|
|
233
171
|
* @see https://www.gitpod.io/docs/prebuilds/
|
|
234
|
-
* @experimental
|
|
235
172
|
*/
|
|
236
173
|
export interface GitpodPrebuilds {
|
|
237
174
|
/**
|
|
238
|
-
*
|
|
239
|
-
*
|
|
175
|
+
* Enable for the master/default branch
|
|
240
176
|
* @default true
|
|
241
|
-
* @experimental
|
|
242
177
|
*/
|
|
243
178
|
readonly master?: boolean;
|
|
244
179
|
/**
|
|
245
|
-
*
|
|
246
|
-
*
|
|
180
|
+
* Enable for all branches in this repo
|
|
247
181
|
* @default false
|
|
248
|
-
* @experimental
|
|
249
182
|
*/
|
|
250
183
|
readonly branches?: boolean;
|
|
251
184
|
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
185
|
+
* Enable for pull requests coming from this repo
|
|
254
186
|
* @default true
|
|
255
|
-
* @experimental
|
|
256
187
|
*/
|
|
257
188
|
readonly pullRequests?: boolean;
|
|
258
189
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
190
|
+
* Enable for pull requests coming from forks
|
|
261
191
|
* @default false
|
|
262
|
-
* @experimental
|
|
263
192
|
*/
|
|
264
193
|
readonly pullRequestsFromForks?: boolean;
|
|
265
194
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
195
|
+
* Add a check to pull requests
|
|
268
196
|
* @default true
|
|
269
|
-
* @experimental
|
|
270
197
|
*/
|
|
271
198
|
readonly addCheck?: boolean;
|
|
272
199
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
200
|
+
* Add a "Review in Gitpod" button as a comment to pull requests
|
|
275
201
|
* @default false
|
|
276
|
-
* @experimental
|
|
277
202
|
*/
|
|
278
203
|
readonly addComment?: boolean;
|
|
279
204
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
205
|
+
* Add a "Review in Gitpod" button to the pull request's description
|
|
282
206
|
* @default false
|
|
283
|
-
* @experimental
|
|
284
207
|
*/
|
|
285
208
|
readonly addBadge?: boolean;
|
|
286
209
|
/**
|
|
287
|
-
*
|
|
288
|
-
*
|
|
210
|
+
* Add a label once the prebuild is ready to pull requests
|
|
289
211
|
* @default false
|
|
290
|
-
* @experimental
|
|
291
212
|
*/
|
|
292
213
|
readonly addLabel?: boolean;
|
|
293
214
|
}
|
|
294
215
|
/**
|
|
295
|
-
*
|
|
216
|
+
* Constructor options for the Gitpod component.
|
|
296
217
|
*
|
|
297
218
|
* By default, Gitpod uses the 'gitpod/workspace-full' docker image.
|
|
298
|
-
*
|
|
299
219
|
* @see https://github.com/gitpod-io/workspace-images/blob/master/full/Dockerfile
|
|
300
220
|
*
|
|
301
221
|
* By default, all tasks will be run in parallel. To run the tasks in sequence,
|
|
302
222
|
* create a new task and specify the other tasks as subtasks.
|
|
303
|
-
* @experimental
|
|
304
223
|
*/
|
|
305
224
|
export interface GitpodOptions extends DevEnvironmentOptions {
|
|
306
225
|
/**
|
|
307
|
-
*
|
|
308
|
-
*
|
|
226
|
+
* Optional Gitpod's Github App integration for prebuilds
|
|
227
|
+
* If this is not set and Gitpod's Github App is installed, then Gitpod will apply
|
|
228
|
+
* these defaults: https://www.gitpod.io/docs/prebuilds/#configure-the-github-app
|
|
309
229
|
* @default undefined
|
|
310
|
-
* @experimental
|
|
311
230
|
*/
|
|
312
231
|
readonly prebuilds?: GitpodPrebuilds;
|
|
313
232
|
}
|
|
314
233
|
/**
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* @experimental
|
|
234
|
+
* The Gitpod component which emits .gitpod.yml
|
|
318
235
|
*/
|
|
319
236
|
export declare class Gitpod extends Component implements IDevEnvironment {
|
|
320
237
|
private dockerImage;
|
|
@@ -323,67 +240,54 @@ export declare class Gitpod extends Component implements IDevEnvironment {
|
|
|
323
240
|
private readonly ports;
|
|
324
241
|
private readonly vscodeExtensions;
|
|
325
242
|
/**
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
* @experimental
|
|
243
|
+
* Direct access to the gitpod configuration (escape hatch)
|
|
329
244
|
*/
|
|
330
245
|
readonly config: any;
|
|
331
|
-
/**
|
|
332
|
-
* @experimental
|
|
333
|
-
*/
|
|
334
246
|
constructor(project: Project, options?: GitpodOptions);
|
|
335
247
|
/**
|
|
336
|
-
*
|
|
248
|
+
* Add a custom Docker image or Dockerfile for the container.
|
|
337
249
|
*
|
|
338
|
-
* @param image The Docker image
|
|
339
|
-
* @experimental
|
|
250
|
+
* @param image The Docker image
|
|
340
251
|
*/
|
|
341
252
|
addDockerImage(image: DevEnvironmentDockerImage): void;
|
|
342
253
|
/**
|
|
343
|
-
*
|
|
254
|
+
* Add tasks to run when gitpod starts.
|
|
344
255
|
*
|
|
345
256
|
* By default, all tasks will be run in parallel. To run tasks in sequence,
|
|
346
257
|
* create a new `Task` and specify the other tasks as subtasks.
|
|
347
258
|
*
|
|
348
|
-
* @param tasks The new tasks
|
|
349
|
-
* @experimental
|
|
259
|
+
* @param tasks The new tasks
|
|
350
260
|
*/
|
|
351
261
|
addTasks(...tasks: Task[]): void;
|
|
352
262
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* @param config The configuration.
|
|
356
|
-
* @experimental
|
|
263
|
+
* Add a prebuilds configuration for the Gitpod App
|
|
264
|
+
* @param config The configuration
|
|
357
265
|
*/
|
|
358
266
|
addPrebuilds(config: GitpodPrebuilds): void;
|
|
359
267
|
/**
|
|
360
|
-
*
|
|
268
|
+
* Add a task with more granular options.
|
|
361
269
|
*
|
|
362
270
|
* By default, all tasks will be run in parallel. To run tasks in sequence,
|
|
363
271
|
* create a new `Task` and set the other tasks as subtasks.
|
|
364
272
|
*
|
|
365
|
-
* @param options The task parameters
|
|
366
|
-
* @experimental
|
|
273
|
+
* @param options The task parameters
|
|
367
274
|
*/
|
|
368
275
|
addCustomTask(options: GitpodTask): void;
|
|
369
276
|
/**
|
|
370
|
-
*
|
|
277
|
+
* Add ports that should be exposed (forwarded) from the container.
|
|
371
278
|
*
|
|
372
|
-
* @param ports The new ports
|
|
373
|
-
* @experimental
|
|
279
|
+
* @param ports The new ports
|
|
374
280
|
*/
|
|
375
281
|
addPorts(...ports: string[]): void;
|
|
376
282
|
/**
|
|
377
|
-
*
|
|
283
|
+
* Add a list of VSCode extensions that should be automatically installed
|
|
284
|
+
* in the container.
|
|
378
285
|
*
|
|
379
286
|
* These must be in the format defined in the Open VSX registry.
|
|
380
|
-
*
|
|
381
|
-
* @param extensions The extension IDs.
|
|
287
|
+
* @example 'scala-lang.scala@0.3.9:O5XmjwY5Gz+0oDZAmqneJw=='
|
|
382
288
|
* @see https://www.gitpod.io/docs/vscode-extensions/
|
|
383
|
-
* @experimental
|
|
384
|
-
* @example
|
|
385
289
|
*
|
|
386
|
-
*
|
|
290
|
+
* @param extensions The extension IDs
|
|
387
291
|
*/
|
|
388
292
|
addVscodeExtensions(...extensions: GitpodCodeExtensionId[]): void;
|
|
389
293
|
private renderDockerImage;
|