projen 0.71.13 → 0.71.15
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 +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +3 -11
- package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +0 -129
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +0 -49
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +0 -89
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +0 -168
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +0 -122
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +0 -68
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +0 -171
- package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +0 -180
- package/lib/.types-compat/ts3.9/lib/build/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
- package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +0 -38
- package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +0 -154
- package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +0 -71
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +0 -144
- package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +0 -13
- package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +0 -132
- package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +0 -260
- package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/clobber.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/common.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/component.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +0 -160
- package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +0 -80
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +0 -103
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +0 -64
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/file.d.ts +0 -120
- package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +0 -247
- package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +0 -58
- package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +0 -177
- package/lib/.types-compat/ts3.9/lib/github/github.d.ts +0 -110
- package/lib/.types-compat/ts3.9/lib/github/index.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +0 -48
- package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +0 -8
- package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +0 -85
- package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +0 -119
- package/lib/.types-compat/ts3.9/lib/github/util.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +0 -169
- package/lib/.types-compat/ts3.9/lib/github/workflow-jobs.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +0 -1031
- package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +0 -108
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +0 -536
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +0 -11
- package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +0 -301
- package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/index.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/ini.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/inventory.d.ts +0 -94
- package/lib/.types-compat/ts3.9/lib/java/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +0 -141
- package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +0 -214
- package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +0 -174
- package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +0 -175
- package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +0 -10
- package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +0 -599
- package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +0 -616
- package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +0 -465
- package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +0 -40
- package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +0 -358
- package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +0 -403
- package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +0 -188
- package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +0 -75
- package/lib/.types-compat/ts3.9/lib/json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/license.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/logger.d.ts +0 -73
- package/lib/.types-compat/ts3.9/lib/logging.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/makefile.d.ts +0 -77
- package/lib/.types-compat/ts3.9/lib/object-file.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/project-build.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/project.d.ts +0 -374
- package/lib/.types-compat/ts3.9/lib/projects.d.ts +0 -63
- package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/python/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +0 -183
- package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +0 -30
- package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +0 -62
- package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +0 -190
- package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +0 -70
- package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/readme.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +0 -72
- package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +0 -533
- package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +0 -97
- package/lib/.types-compat/ts3.9/lib/release/release.d.ts +0 -338
- package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/semver.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +0 -156
- package/lib/.types-compat/ts3.9/lib/source-code.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/task-model.d.ts +0 -151
- package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/task.d.ts +0 -136
- package/lib/.types-compat/ts3.9/lib/tasks.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/testing.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/textfile.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/toml.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +0 -42
- package/lib/.types-compat/ts3.9/lib/util.d.ts +0 -131
- package/lib/.types-compat/ts3.9/lib/version.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +0 -86
- package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +0 -90
- package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/web/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/web/next.d.ts +0 -100
- package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/web/react.d.ts +0 -105
- package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/yaml.d.ts +0 -25
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Used to represent objects with a dynamic key.
|
|
3
|
-
* Dynamic are marked with `<>` in configuration reference like '<workflow_name>' and '<job_name>'
|
|
4
|
-
* This field is required for objects with dynamic keys.
|
|
5
|
-
*/
|
|
6
|
-
interface INamed {
|
|
7
|
-
/** name of dynamic key **/
|
|
8
|
-
readonly identifier: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Used for orchestrating all jobs. Each workflow consists of the workflow name as a key and a map as a value.
|
|
12
|
-
* A name should be unique within the current config.yml.
|
|
13
|
-
* The top-level keys for the Workflows configuration are version and jobs.
|
|
14
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#workflows
|
|
15
|
-
*/
|
|
16
|
-
export interface Workflow extends INamed {
|
|
17
|
-
readonly jobs?: WorkflowJob[];
|
|
18
|
-
readonly triggers?: Triggers[];
|
|
19
|
-
/** when is too dynamic to be casted to interfaces. Check Docu as reference
|
|
20
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#logic-statement-examples
|
|
21
|
-
*/
|
|
22
|
-
readonly when?: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A job may have a type of approval indicating it must be manually approved before downstream jobs may proceed
|
|
26
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#type
|
|
27
|
-
*/
|
|
28
|
-
export declare enum JobType {
|
|
29
|
-
APPROVAL = "approval"
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The resource_class feature allows configuring CPU and RAM resources for each job.
|
|
33
|
-
* Different resource classes are available for different executors, as described in the tables below.
|
|
34
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#resourceclass
|
|
35
|
-
*/
|
|
36
|
-
export declare enum ResourceClass {
|
|
37
|
-
SMALL = "small",
|
|
38
|
-
MEDIUM = "medium",
|
|
39
|
-
MEDIUM_PLUS = "medium+",
|
|
40
|
-
LARGE_X = "xlarge",
|
|
41
|
-
LARGE_2X = "2xlarge",
|
|
42
|
-
LARGE_2X_PLUS = "2xlarge+"
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Specify when to enable or disable the step.
|
|
46
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#steps
|
|
47
|
-
*/
|
|
48
|
-
export declare enum JobWhen {
|
|
49
|
-
ALWAYS = "always",
|
|
50
|
-
ON_SUCCESS = "on_success",
|
|
51
|
-
ON_FAIL = "on_fail"
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Pipeline parameter types
|
|
55
|
-
* @see https://circleci.com/docs/2.0/reusing-config#parameter-syntax
|
|
56
|
-
*/
|
|
57
|
-
export declare enum PipelineParameterType {
|
|
58
|
-
STRING = "string",
|
|
59
|
-
BOOLEAN = "boolean",
|
|
60
|
-
INTEGER = "integer",
|
|
61
|
-
ENUM = "enum"
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* A Workflow is comprised of one or more uniquely named jobs. Jobs are specified in the jobs map,
|
|
65
|
-
* see Sample 2.0 config.yml for two examples of a job map.
|
|
66
|
-
* The name of the job is the key in the map, and the value is a map describing the job.
|
|
67
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#jobs
|
|
68
|
-
*/
|
|
69
|
-
export interface Job extends INamed {
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* A Job is part of Workflow. A Job can be created with {@link Job} or it can be provided by the orb
|
|
73
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#jobs-in-workflow
|
|
74
|
-
*/
|
|
75
|
-
export interface WorkflowJob extends INamed {
|
|
76
|
-
/** A list of jobs that must succeed for the job to start. */
|
|
77
|
-
readonly requires?: string[];
|
|
78
|
-
/** A replacement for the job name. Useful when calling a job multiple times */
|
|
79
|
-
readonly name?: string;
|
|
80
|
-
/** The name of the context(s). The initial default name is org-global. Each context name must be unique. */
|
|
81
|
-
readonly context?: string[];
|
|
82
|
-
/** A job may have a type of approval indicating it must be manually approved before downstream jobs may proceed. */
|
|
83
|
-
readonly type?: JobType;
|
|
84
|
-
/** Job Filters can have the key branches or tags */
|
|
85
|
-
readonly filters?: Filter;
|
|
86
|
-
readonly matrix?: Matrix;
|
|
87
|
-
/** Parameters passed to job when referencing a job from orb */
|
|
88
|
-
readonly orbParameters?: Record<string, string | number | boolean>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Parameters are declared by name under a job, command, or executor.
|
|
92
|
-
* @see https://circleci.com/docs/2.0/reusing-config#using-the-parameters-declaration
|
|
93
|
-
*/
|
|
94
|
-
export interface PipelineParameter {
|
|
95
|
-
/** Used to generate documentation for your orb. */
|
|
96
|
-
readonly description?: string;
|
|
97
|
-
/** The parameter type, required. */
|
|
98
|
-
readonly type: PipelineParameterType;
|
|
99
|
-
/** The default value for the parameter. If not present, the parameter is implied to be required. */
|
|
100
|
-
readonly default?: string | number | boolean;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* The matrix stanza allows you to run a parameterized job multiple times with different arguments.
|
|
104
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#matrix-requires-version-21
|
|
105
|
-
*/
|
|
106
|
-
export interface Matrix {
|
|
107
|
-
/** A map of parameter names to every value the job should be called with */
|
|
108
|
-
readonly parameters?: Record<string, string[] | number[]>;
|
|
109
|
-
/** An alias for the matrix, usable from another job’s requires stanza. Defaults to the name of the job being executed */
|
|
110
|
-
readonly alias?: string;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Specifies which triggers will cause this workflow to be executed.
|
|
114
|
-
* Default behavior is to trigger the workflow when pushing to a branch.
|
|
115
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#triggers
|
|
116
|
-
*/
|
|
117
|
-
export interface Triggers {
|
|
118
|
-
readonly schedule?: Schedule;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* A workflow may have a schedule indicating it runs at a certain time.
|
|
122
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#schedule
|
|
123
|
-
*/
|
|
124
|
-
export interface Schedule {
|
|
125
|
-
/** The cron key is defined using POSIX crontab syntax. */
|
|
126
|
-
readonly cron?: string;
|
|
127
|
-
readonly filters: Filter;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* The branches key controls whether the current branch should have a schedule trigger created for it,
|
|
131
|
-
* where current branch is the branch containing the config.yml file with the trigger stanza.
|
|
132
|
-
* That is, a push on the main branch will only schedule a workflow for the main branch.
|
|
133
|
-
*
|
|
134
|
-
* Branches can have the keys only and ignore which either map to a single string naming a branch.
|
|
135
|
-
* You may also use regular expressions to match against branches by enclosing them with /’s, or map to a list of such strings.
|
|
136
|
-
* Regular expressions must match the entire string.
|
|
137
|
-
*
|
|
138
|
-
* Any branches that match only will run the job.
|
|
139
|
-
* Any branches that match ignore will not run the job.
|
|
140
|
-
* If neither only nor ignore are specified then all branches will run the job.
|
|
141
|
-
* If both only and ignore are specified the only is considered before ignore.
|
|
142
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#filters
|
|
143
|
-
*/
|
|
144
|
-
export interface Filter {
|
|
145
|
-
readonly branches?: FilterConfig;
|
|
146
|
-
readonly tags?: FilterConfig;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* set an inclusive or exclusive filter
|
|
150
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#filters
|
|
151
|
-
*/
|
|
152
|
-
export interface FilterConfig {
|
|
153
|
-
/** Either a single branch specifier, or a list of branch specifiers */
|
|
154
|
-
readonly only?: string[];
|
|
155
|
-
/** Either a single branch specifier, or a list of branch specifiers */
|
|
156
|
-
readonly ignore?: string[];
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Each job consists of the job’s name as a key and a map as a value. A name should be case insensitive unique within a current jobs list.
|
|
160
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#job_name
|
|
161
|
-
*/
|
|
162
|
-
export interface Job {
|
|
163
|
-
readonly docker?: Docker[];
|
|
164
|
-
readonly machine?: Machine;
|
|
165
|
-
readonly macos?: Macos;
|
|
166
|
-
/** Shell to use for execution command in all steps. Can be overridden by shell in each step */
|
|
167
|
-
readonly shell?: string;
|
|
168
|
-
/** Parameters for making a job explicitly configurable in a workflow. */
|
|
169
|
-
readonly parameters?: Record<string, PipelineParameter>;
|
|
170
|
-
/** no type support here, for syntax {@see https://circleci.com/docs/2.0/configuration-reference/#steps} */
|
|
171
|
-
readonly steps?: any[];
|
|
172
|
-
/** In which directory to run the steps. Will be interpreted as an absolute path. Default: `~/project` */
|
|
173
|
-
readonly workingDirectory?: string;
|
|
174
|
-
/** Number of parallel instances of this job to run (default: 1) */
|
|
175
|
-
readonly parallelism?: number;
|
|
176
|
-
/** A map of environment variable names and values. */
|
|
177
|
-
readonly environment?: Record<string, string | number | boolean>;
|
|
178
|
-
/** {@link ResourceClass} */
|
|
179
|
-
readonly resourceClass?: ResourceClass | string;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Options for docker executor
|
|
183
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#docker
|
|
184
|
-
*/
|
|
185
|
-
export interface Docker {
|
|
186
|
-
/** The name of a custom docker image to use */
|
|
187
|
-
readonly image: string;
|
|
188
|
-
/** The name the container is reachable by. By default, container services are accessible through localhost */
|
|
189
|
-
readonly name?: string;
|
|
190
|
-
/** The command used as executable when launching the container */
|
|
191
|
-
readonly entrypoint?: string[];
|
|
192
|
-
/** The command used as pid 1 (or args for entrypoint) when launching the container */
|
|
193
|
-
readonly command?: string[];
|
|
194
|
-
/** Which user to run commands as within the Docker container */
|
|
195
|
-
readonly user?: string;
|
|
196
|
-
/** A map of environment variable names and values */
|
|
197
|
-
readonly environment?: Record<string, string | number | boolean>;
|
|
198
|
-
/** Authentication for registries using standard docker login credentials */
|
|
199
|
-
readonly auth?: Record<string, string>;
|
|
200
|
-
/** Authentication for AWS Elastic Container Registry (ECR) */
|
|
201
|
-
readonly awsAuth?: Record<string, string>;
|
|
202
|
-
}
|
|
203
|
-
export interface Machine {
|
|
204
|
-
/**
|
|
205
|
-
* The VM image to use.
|
|
206
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
|
|
207
|
-
*/
|
|
208
|
-
readonly image: string;
|
|
209
|
-
/** enable docker layer caching
|
|
210
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
|
|
211
|
-
*/
|
|
212
|
-
readonly dockerLayerCaching?: string;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* CircleCI supports running jobs on macOS, to allow you to build, test,
|
|
216
|
-
* and deploy apps for macOS, iOS, tvOS and watchOS. To run a job in a macOS virtual machine,
|
|
217
|
-
* you must add the macos key to the top-level configuration for the job and specify
|
|
218
|
-
* the version of Xcode you would like to use.
|
|
219
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#macos
|
|
220
|
-
*/
|
|
221
|
-
export interface Macos {
|
|
222
|
-
/** The version of Xcode that is installed on the virtual machine */
|
|
223
|
-
readonly xcode: string;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Execution steps for Job
|
|
227
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#steps
|
|
228
|
-
*/
|
|
229
|
-
export interface StepRun {
|
|
230
|
-
readonly run?: Run;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Used for invoking all command-line programs, taking either a map of configuration values,
|
|
234
|
-
* or, when called in its short-form, a string that will be used as both the command and name.
|
|
235
|
-
* Run commands are executed using non-login shells by default,
|
|
236
|
-
* so you must explicitly source any dotfiles as part of the command.
|
|
237
|
-
*
|
|
238
|
-
* Not used because type incompatible types in steps array
|
|
239
|
-
*
|
|
240
|
-
* @see https://circleci.com/docs/2.0/configuration-reference/#run
|
|
241
|
-
*/
|
|
242
|
-
export interface Run {
|
|
243
|
-
/** Command to run via the shell */
|
|
244
|
-
readonly command: string;
|
|
245
|
-
/** Title of the step to be shown in the CircleCI UI (default: full command) */
|
|
246
|
-
readonly name?: string;
|
|
247
|
-
/** Shell to use for execution command */
|
|
248
|
-
readonly shell?: string;
|
|
249
|
-
/** Additional environmental variables, locally scoped to command */
|
|
250
|
-
readonly environment?: string;
|
|
251
|
-
/** Whether this step should run in the background (default: false) */
|
|
252
|
-
readonly background?: string;
|
|
253
|
-
/** In which directory to run this step. Will be interpreted relative to the working_directory of the job). (default: .) */
|
|
254
|
-
readonly workingDirectory?: string;
|
|
255
|
-
/** Elapsed time the command can run without output such as “20m”, “1.25h”, “5s”. The default is 10 minutes */
|
|
256
|
-
readonly noOutputTimeout?: string;
|
|
257
|
-
/** Specify when to enable or disable the step. */
|
|
258
|
-
readonly when?: JobWhen | string;
|
|
259
|
-
}
|
|
260
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as yargs from "yargs";
|
|
2
|
-
declare class Command implements yargs.CommandModule {
|
|
3
|
-
readonly command = "new [PROJECT-TYPE-NAME] [OPTIONS]";
|
|
4
|
-
readonly describe = "Creates a new projen project";
|
|
5
|
-
builder(args: yargs.Argv): yargs.Argv<{}>;
|
|
6
|
-
handler(args: any): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: Command;
|
|
9
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function tryProcessMacro(cwd: string, macro: string): string | undefined;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TaskRuntime } from "../task-runtime";
|
|
2
|
-
export interface SynthOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Execute post synthesis commands.
|
|
5
|
-
* @default true
|
|
6
|
-
*/
|
|
7
|
-
readonly post?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Start watching .projenrc.js and re-synth when changed.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
readonly watch?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The name of the .projenrc.js file to use instead of the default.
|
|
15
|
-
* @default ".projenrc.js"
|
|
16
|
-
*/
|
|
17
|
-
readonly rcfile?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare function synth(runtime: TaskRuntime, options: SynthOptions): Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as yargs from "yargs";
|
|
2
|
-
import { TaskRuntime } from "../task-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* Reads .projen/tasks.json and adds CLI commands for all tasks.
|
|
5
|
-
* @param ya yargs
|
|
6
|
-
*/
|
|
7
|
-
export declare function discoverTaskCommands(runtime: TaskRuntime, ya: yargs.Argv): void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Installs the npm module (through `npm install`) to node_modules under `projectDir`.
|
|
3
|
-
* @param spec The npm package spec (e.g. `foo@^1.2` or `foo@/var/folders/8k/qcw0ls5pv_ph0000gn/T/projen-RYurCw/pkg.tgz`)
|
|
4
|
-
* @returns The installed package name (e.g. `@foo/bar`)
|
|
5
|
-
*/
|
|
6
|
-
export declare function installPackage(baseDir: string, spec: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Render a command to install an npm package.
|
|
9
|
-
*
|
|
10
|
-
* Engine checks are ignorred at this point so that the module can be installed
|
|
11
|
-
* regardless of the environment. This was needed to unblock the upgrade of the
|
|
12
|
-
* minimum node version of projen, but also okay generally because engine checks
|
|
13
|
-
* will be performed later and for all eternety.
|
|
14
|
-
*
|
|
15
|
-
* @param dir Base directory
|
|
16
|
-
* @param module The module to install (e.g. foo@^1.2)
|
|
17
|
-
* @returns The string that includes the install command ("npm install ...")
|
|
18
|
-
*/
|
|
19
|
-
export declare function renderInstallCommand(dir: string, module: string): string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Project } from "./project";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a project component.
|
|
4
|
-
*/
|
|
5
|
-
export declare class Component {
|
|
6
|
-
readonly project: Project;
|
|
7
|
-
constructor(project: Project);
|
|
8
|
-
/**
|
|
9
|
-
* Called before synthesis.
|
|
10
|
-
*/
|
|
11
|
-
preSynthesize(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Synthesizes files to the project output directory.
|
|
14
|
-
*/
|
|
15
|
-
synthesize(): void;
|
|
16
|
-
/**
|
|
17
|
-
* Called after synthesis. Order is *not* guaranteed.
|
|
18
|
-
*/
|
|
19
|
-
postSynthesize(): void;
|
|
20
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Component } from "./component";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
/**
|
|
4
|
-
* The `Dependencies` component is responsible to track the list of dependencies
|
|
5
|
-
* a project has, and then used by project types as the model for rendering
|
|
6
|
-
* project-specific dependency manifests such as the dependencies section
|
|
7
|
-
* `package.json` files.
|
|
8
|
-
*
|
|
9
|
-
* To add a dependency you can use a project-type specific API such as
|
|
10
|
-
* `nodeProject.addDeps()` or use the generic API of `project.deps`:
|
|
11
|
-
*/
|
|
12
|
-
export declare class Dependencies extends Component {
|
|
13
|
-
/**
|
|
14
|
-
* The project-relative path of the deps manifest file.
|
|
15
|
-
*/
|
|
16
|
-
static readonly MANIFEST_FILE: string;
|
|
17
|
-
/**
|
|
18
|
-
* Returns the coordinates of a dependency spec.
|
|
19
|
-
*
|
|
20
|
-
* Given `foo@^3.4.0` returns `{ name: "foo", version: "^3.4.0" }`.
|
|
21
|
-
* Given `bar@npm:@bar/legacy` returns `{ name: "bar", version: "npm:@bar/legacy" }`.
|
|
22
|
-
*/
|
|
23
|
-
static parseDependency(spec: string): DependencyCoordinates;
|
|
24
|
-
private readonly _deps;
|
|
25
|
-
/**
|
|
26
|
-
* Adds a dependencies component to the project.
|
|
27
|
-
* @param project The parent project
|
|
28
|
-
*/
|
|
29
|
-
constructor(project: Project);
|
|
30
|
-
/**
|
|
31
|
-
* A copy of all dependencies recorded for this project.
|
|
32
|
-
*
|
|
33
|
-
* The list is sorted by type->name->version
|
|
34
|
-
*/
|
|
35
|
-
get all(): Dependency[];
|
|
36
|
-
/**
|
|
37
|
-
* Returns a dependency by name.
|
|
38
|
-
*
|
|
39
|
-
* Fails if there is no dependency defined by that name or if `type` is not
|
|
40
|
-
* provided and there is more then one dependency type for this dependency.
|
|
41
|
-
*
|
|
42
|
-
* @param name The name of the dependency
|
|
43
|
-
* @param type The dependency type. If this dependency is defined only for a
|
|
44
|
-
* single type, this argument can be omitted.
|
|
45
|
-
*
|
|
46
|
-
* @returns a copy (cannot be modified)
|
|
47
|
-
*/
|
|
48
|
-
getDependency(name: string, type?: DependencyType): Dependency;
|
|
49
|
-
/**
|
|
50
|
-
* Returns a dependency by name.
|
|
51
|
-
*
|
|
52
|
-
* Returns `undefined` if there is no dependency defined by that name or if
|
|
53
|
-
* `type` is not provided and there is more then one dependency type for this
|
|
54
|
-
* dependency.
|
|
55
|
-
*
|
|
56
|
-
* @param name The name of the dependency
|
|
57
|
-
* @param type The dependency type. If this dependency is defined only for a
|
|
58
|
-
* single type, this argument can be omitted.
|
|
59
|
-
*
|
|
60
|
-
* @returns a copy (cannot be modified) or undefined if there is no match
|
|
61
|
-
*/
|
|
62
|
-
tryGetDependency(name: string, type?: DependencyType): Dependency | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Adds a dependency to this project.
|
|
65
|
-
* @param spec The dependency spec in the format `MODULE[@VERSION]` where
|
|
66
|
-
* `MODULE` is the package-manager-specific module name and `VERSION` is an
|
|
67
|
-
* optional semantic version requirement (e.g. `^3.4.0`).
|
|
68
|
-
* @param type The type of the dependency.
|
|
69
|
-
*/
|
|
70
|
-
addDependency(spec: string, type: DependencyType, metadata?: {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
}): Dependency;
|
|
73
|
-
/**
|
|
74
|
-
* Removes a dependency.
|
|
75
|
-
* @param name The name of the module to remove (without the version)
|
|
76
|
-
* @param type The dependency type. This is only required if there the
|
|
77
|
-
* dependency is defined for multiple types.
|
|
78
|
-
*/
|
|
79
|
-
removeDependency(name: string, type?: DependencyType): void;
|
|
80
|
-
private tryGetDependencyIndex;
|
|
81
|
-
private toJson;
|
|
82
|
-
}
|
|
83
|
-
export interface DepsManifest {
|
|
84
|
-
/**
|
|
85
|
-
* All dependencies of this module.
|
|
86
|
-
*/
|
|
87
|
-
readonly dependencies: Dependency[];
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Coordinates of the dependency (name and version).
|
|
91
|
-
*/
|
|
92
|
-
export interface DependencyCoordinates {
|
|
93
|
-
/**
|
|
94
|
-
* The package manager name of the dependency (e.g. `leftpad` for npm).
|
|
95
|
-
*
|
|
96
|
-
* NOTE: For package managers that use complex coordinates (like Maven), we
|
|
97
|
-
* will codify it into a string somehow.
|
|
98
|
-
*/
|
|
99
|
-
readonly name: string;
|
|
100
|
-
/**
|
|
101
|
-
* Semantic version version requirement.
|
|
102
|
-
*
|
|
103
|
-
* @default - requirement is managed by the package manager (e.g. npm/yarn).
|
|
104
|
-
*/
|
|
105
|
-
readonly version?: string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Represents a project dependency.
|
|
109
|
-
*/
|
|
110
|
-
export interface Dependency extends DependencyCoordinates {
|
|
111
|
-
/**
|
|
112
|
-
* Which type of dependency this is (runtime, build-time, etc).
|
|
113
|
-
*/
|
|
114
|
-
readonly type: DependencyType;
|
|
115
|
-
/**
|
|
116
|
-
* Additional JSON metadata associated with the dependency (package manager
|
|
117
|
-
* specific).
|
|
118
|
-
* @default {}
|
|
119
|
-
*/
|
|
120
|
-
readonly metadata?: {
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Type of dependency.
|
|
126
|
-
*/
|
|
127
|
-
export declare enum DependencyType {
|
|
128
|
-
/**
|
|
129
|
-
* The dependency is required for the program/library during runtime.
|
|
130
|
-
*/
|
|
131
|
-
RUNTIME = "runtime",
|
|
132
|
-
/**
|
|
133
|
-
* The dependency is required at runtime but expected to be installed by the
|
|
134
|
-
* consumer.
|
|
135
|
-
*/
|
|
136
|
-
PEER = "peer",
|
|
137
|
-
/**
|
|
138
|
-
* The dependency is bundled and shipped with the module, so consumers are not
|
|
139
|
-
* required to install it.
|
|
140
|
-
*/
|
|
141
|
-
BUNDLED = "bundled",
|
|
142
|
-
/**
|
|
143
|
-
* The dependency is required to run the `build` task.
|
|
144
|
-
*/
|
|
145
|
-
BUILD = "build",
|
|
146
|
-
/**
|
|
147
|
-
* The dependency is required to run the `test` task.
|
|
148
|
-
*/
|
|
149
|
-
TEST = "test",
|
|
150
|
-
/**
|
|
151
|
-
* The dependency is required for development (e.g. IDE plugins).
|
|
152
|
-
*/
|
|
153
|
-
DEVENV = "devenv",
|
|
154
|
-
/**
|
|
155
|
-
* Transient dependency that needs to be overwritten.
|
|
156
|
-
*
|
|
157
|
-
* Available for Node packages
|
|
158
|
-
*/
|
|
159
|
-
OVERRIDE = "override"
|
|
160
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Task } from "./task";
|
|
2
|
-
/**
|
|
3
|
-
* Base options for configuring a container-based development environment.
|
|
4
|
-
*/
|
|
5
|
-
export interface DevEnvironmentOptions {
|
|
6
|
-
/**
|
|
7
|
-
* A Docker image or Dockerfile for the container.
|
|
8
|
-
*/
|
|
9
|
-
readonly dockerImage?: DevEnvironmentDockerImage;
|
|
10
|
-
/**
|
|
11
|
-
* An array of tasks that should be run when the container starts.
|
|
12
|
-
*/
|
|
13
|
-
readonly tasks?: Task[];
|
|
14
|
-
/**
|
|
15
|
-
* An array of ports that should be exposed from the container.
|
|
16
|
-
*/
|
|
17
|
-
readonly ports?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* An array of extension IDs that specify the extensions that should be
|
|
20
|
-
* installed inside the container when it is created.
|
|
21
|
-
*/
|
|
22
|
-
readonly vscodeExtensions?: string[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Options for specifying the Docker image of the container.
|
|
26
|
-
*/
|
|
27
|
-
export declare class DevEnvironmentDockerImage {
|
|
28
|
-
/**
|
|
29
|
-
* A publicly available Docker image.
|
|
30
|
-
* @example 'ubuntu:latest'
|
|
31
|
-
* @param image a Docker image
|
|
32
|
-
*/
|
|
33
|
-
static fromImage(image: string): DevEnvironmentDockerImage;
|
|
34
|
-
/**
|
|
35
|
-
* The relative path of a Dockerfile that defines the container contents.
|
|
36
|
-
* @example '.gitpod.Docker'
|
|
37
|
-
* @param dockerFile a relative path
|
|
38
|
-
*/
|
|
39
|
-
static fromFile(dockerFile: string): DevEnvironmentDockerImage;
|
|
40
|
-
/**
|
|
41
|
-
* A publicly available Docker image.
|
|
42
|
-
*/
|
|
43
|
-
readonly image?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The relative path of a Dockerfile that defines the container contents.
|
|
46
|
-
*/
|
|
47
|
-
readonly dockerFile?: string;
|
|
48
|
-
private constructor();
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Abstract interface for container-based development environments, such as
|
|
52
|
-
* Gitpod and GitHub Codespaces.
|
|
53
|
-
*/
|
|
54
|
-
export interface IDevEnvironment {
|
|
55
|
-
/**
|
|
56
|
-
* Add a custom Docker image or Dockerfile for the container.
|
|
57
|
-
*
|
|
58
|
-
* @param image The Docker image
|
|
59
|
-
*/
|
|
60
|
-
addDockerImage(image: DevEnvironmentDockerImage): void;
|
|
61
|
-
/**
|
|
62
|
-
* Adds tasks to run when the container starts.
|
|
63
|
-
*
|
|
64
|
-
* @param tasks The new tasks
|
|
65
|
-
*/
|
|
66
|
-
addTasks(...tasks: Task[]): void;
|
|
67
|
-
/**
|
|
68
|
-
* Adds ports that should be exposed (forwarded) from the container.
|
|
69
|
-
*
|
|
70
|
-
* @param ports The new ports
|
|
71
|
-
*/
|
|
72
|
-
addPorts(...ports: string[]): void;
|
|
73
|
-
/**
|
|
74
|
-
* Adds a list of VSCode extensions that should be automatically installed
|
|
75
|
-
* in the container.
|
|
76
|
-
*
|
|
77
|
-
* @param extensions The extension IDs
|
|
78
|
-
*/
|
|
79
|
-
addVscodeExtensions(...extensions: string[]): void;
|
|
80
|
-
}
|