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,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IPAM subnet configuration
|
|
3
|
-
*/
|
|
4
|
-
export interface DockerComposeNetworkIpamSubnetConfig {
|
|
5
|
-
/**
|
|
6
|
-
* Subnet in CIDR format that represents a network segment
|
|
7
|
-
* @default - value is not provided
|
|
8
|
-
*/
|
|
9
|
-
readonly subnet?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* IPAM configuration
|
|
13
|
-
*/
|
|
14
|
-
export interface DockerComposeNetworkIpamConfig {
|
|
15
|
-
/**
|
|
16
|
-
* Driver to use for custom IPAM config.
|
|
17
|
-
* @default - value is not provided
|
|
18
|
-
*/
|
|
19
|
-
readonly driver?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A list with zero or more config blocks specifying custom IPAM configuration.
|
|
22
|
-
* @default - value is not provided
|
|
23
|
-
*/
|
|
24
|
-
readonly config?: DockerComposeNetworkIpamSubnetConfig[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Network configuration
|
|
28
|
-
*/
|
|
29
|
-
export interface DockerComposeNetworkConfig {
|
|
30
|
-
/**
|
|
31
|
-
* Driver to use for the network
|
|
32
|
-
* @default - value is not provided
|
|
33
|
-
*/
|
|
34
|
-
readonly driver?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Options for the configured driver. Those options are driver-dependent - consult the driver’s documentation for more information
|
|
37
|
-
* @default - value is not provided
|
|
38
|
-
*/
|
|
39
|
-
readonly driverOpts?: object;
|
|
40
|
-
/**
|
|
41
|
-
* Set to true to indicate that the network is a bridge network.
|
|
42
|
-
* @default - unset
|
|
43
|
-
*/
|
|
44
|
-
readonly bridge?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Set to true to indicate that the network is an overlay network.
|
|
47
|
-
* @default - unset
|
|
48
|
-
*/
|
|
49
|
-
readonly overlay?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Set to true to indicate that the network is externally created.
|
|
52
|
-
* @default - unset, indicating that docker-compose creates the network
|
|
53
|
-
*/
|
|
54
|
-
readonly external?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Set to true to indicate that standalone containers can attach to this network, in addition to services.
|
|
57
|
-
* @default - unset
|
|
58
|
-
*/
|
|
59
|
-
readonly attachable?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Specify custom IPAM config.
|
|
62
|
-
* @default - unset
|
|
63
|
-
*/
|
|
64
|
-
readonly ipam?: DockerComposeNetworkIpamConfig;
|
|
65
|
-
/**
|
|
66
|
-
* Set to true to indicate that you want to create an externally isolated overlay network
|
|
67
|
-
* @default - unset
|
|
68
|
-
*/
|
|
69
|
-
readonly internal?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Attach labels to the network
|
|
72
|
-
* @default - unset
|
|
73
|
-
*/
|
|
74
|
-
readonly labels?: string[];
|
|
75
|
-
/**
|
|
76
|
-
* Name of the network for when the network name isn't going to work in YAML.
|
|
77
|
-
* @default - unset, indicating that docker-compose creates networks as usual
|
|
78
|
-
*/
|
|
79
|
-
readonly name?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Network binding information.
|
|
83
|
-
*/
|
|
84
|
-
export interface IDockerComposeNetworkBinding {
|
|
85
|
-
/**
|
|
86
|
-
* Binds the requested network to the docker-compose network configuration and
|
|
87
|
-
* provide mounting instructions for synthesis.
|
|
88
|
-
* @param networkConfig the network configuration
|
|
89
|
-
* @returns the service name
|
|
90
|
-
*/
|
|
91
|
-
bind(networkConfig: IDockerComposeNetworkConfig): string;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Storage for network configuration.
|
|
95
|
-
*/
|
|
96
|
-
export interface IDockerComposeNetworkConfig {
|
|
97
|
-
/**
|
|
98
|
-
* Add network configuration to the repository.
|
|
99
|
-
* @param networkName
|
|
100
|
-
* @param configuration
|
|
101
|
-
*/
|
|
102
|
-
addNetworkConfiguration(networkName: string, configuration: DockerComposeNetworkConfig): void;
|
|
103
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for port mappings.
|
|
3
|
-
*/
|
|
4
|
-
export interface DockerComposePortMappingOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Port mapping protocol.
|
|
7
|
-
* @default DockerComposeProtocol.TCP
|
|
8
|
-
*/
|
|
9
|
-
readonly protocol?: DockerComposeProtocol;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A service port mapping
|
|
13
|
-
*/
|
|
14
|
-
export interface DockerComposeServicePort {
|
|
15
|
-
/**
|
|
16
|
-
* Published port number
|
|
17
|
-
*/
|
|
18
|
-
readonly published: number;
|
|
19
|
-
/**
|
|
20
|
-
* Target port number
|
|
21
|
-
*/
|
|
22
|
-
readonly target: number;
|
|
23
|
-
/**
|
|
24
|
-
* Network protocol
|
|
25
|
-
*/
|
|
26
|
-
readonly protocol: DockerComposeProtocol;
|
|
27
|
-
/**
|
|
28
|
-
* Port mapping mode.
|
|
29
|
-
*/
|
|
30
|
-
readonly mode: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Network protocol for port mapping
|
|
34
|
-
*/
|
|
35
|
-
export declare enum DockerComposeProtocol {
|
|
36
|
-
/**
|
|
37
|
-
* TCP protocol
|
|
38
|
-
*/
|
|
39
|
-
TCP = "tcp",
|
|
40
|
-
/**
|
|
41
|
-
* UDP protocol
|
|
42
|
-
*/
|
|
43
|
-
UDP = "udp"
|
|
44
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { DockerComposeBuild } from "./docker-compose";
|
|
2
|
-
import { IDockerComposeNetworkBinding } from "./docker-compose-network";
|
|
3
|
-
import { DockerComposePortMappingOptions, DockerComposeServicePort } from "./docker-compose-port";
|
|
4
|
-
import { IDockerComposeVolumeBinding } from "./docker-compose-volume";
|
|
5
|
-
/**
|
|
6
|
-
* An interface providing the name of a docker compose service.
|
|
7
|
-
*/
|
|
8
|
-
export interface IDockerComposeServiceName {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the docker compose service.
|
|
11
|
-
*/
|
|
12
|
-
readonly serviceName: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A docker-compose service.
|
|
16
|
-
*/
|
|
17
|
-
export declare class DockerComposeService implements IDockerComposeServiceName {
|
|
18
|
-
/**
|
|
19
|
-
* Name of the service.
|
|
20
|
-
*/
|
|
21
|
-
readonly serviceName: string;
|
|
22
|
-
/**
|
|
23
|
-
* Docker image.
|
|
24
|
-
*/
|
|
25
|
-
readonly image?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Docker image build instructions.
|
|
28
|
-
*/
|
|
29
|
-
readonly imageBuild?: DockerComposeBuild;
|
|
30
|
-
/**
|
|
31
|
-
* Command to run in the container.
|
|
32
|
-
*/
|
|
33
|
-
readonly command?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* Entrypoint to run in the container.
|
|
36
|
-
*/
|
|
37
|
-
readonly entrypoint?: string[];
|
|
38
|
-
/**
|
|
39
|
-
* Other services that this service depends on.
|
|
40
|
-
*/
|
|
41
|
-
readonly dependsOn: IDockerComposeServiceName[];
|
|
42
|
-
/**
|
|
43
|
-
* Volumes mounted in the container.
|
|
44
|
-
*/
|
|
45
|
-
readonly volumes: IDockerComposeVolumeBinding[];
|
|
46
|
-
/**
|
|
47
|
-
* Networks mounted in the container.
|
|
48
|
-
*/
|
|
49
|
-
readonly networks: IDockerComposeNetworkBinding[];
|
|
50
|
-
/**
|
|
51
|
-
* Published ports.
|
|
52
|
-
*/
|
|
53
|
-
readonly ports: DockerComposeServicePort[];
|
|
54
|
-
/**
|
|
55
|
-
* Environment variables.
|
|
56
|
-
*/
|
|
57
|
-
readonly environment: Record<string, string>;
|
|
58
|
-
/**
|
|
59
|
-
* Attached labels.
|
|
60
|
-
*/
|
|
61
|
-
readonly labels: Record<string, string>;
|
|
62
|
-
constructor(serviceName: string, serviceDescription: DockerComposeServiceDescription);
|
|
63
|
-
/**
|
|
64
|
-
* Add a port mapping
|
|
65
|
-
* @param publishedPort Published port number
|
|
66
|
-
* @param targetPort Container's port number
|
|
67
|
-
* @param options Port mapping options
|
|
68
|
-
*/
|
|
69
|
-
addPort(publishedPort: number, targetPort: number, options?: DockerComposePortMappingOptions): void;
|
|
70
|
-
/**
|
|
71
|
-
* Add an environment variable
|
|
72
|
-
* @param name environment variable name
|
|
73
|
-
* @param value value of the environment variable
|
|
74
|
-
*/
|
|
75
|
-
addEnvironment(name: string, value: string): void;
|
|
76
|
-
/**
|
|
77
|
-
* Make the service depend on another service.
|
|
78
|
-
* @param serviceName
|
|
79
|
-
*/
|
|
80
|
-
addDependsOn(serviceName: IDockerComposeServiceName): void;
|
|
81
|
-
/**
|
|
82
|
-
* Add a volume to the service.
|
|
83
|
-
* @param volume
|
|
84
|
-
*/
|
|
85
|
-
addVolume(volume: IDockerComposeVolumeBinding): void;
|
|
86
|
-
/**
|
|
87
|
-
* Add a network to the service.
|
|
88
|
-
* @param network
|
|
89
|
-
*/
|
|
90
|
-
addNetwork(network: IDockerComposeNetworkBinding): void;
|
|
91
|
-
/**
|
|
92
|
-
* Add a label
|
|
93
|
-
* @param name environment variable name
|
|
94
|
-
* @param value value of the environment variable
|
|
95
|
-
*/
|
|
96
|
-
addLabel(name: string, value: string): void;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Description of a docker-compose.yml service.
|
|
100
|
-
*/
|
|
101
|
-
export interface DockerComposeServiceDescription {
|
|
102
|
-
/**
|
|
103
|
-
* Use a docker image.
|
|
104
|
-
* Note: You must specify either `build` or `image` key.
|
|
105
|
-
* @see imageBuild
|
|
106
|
-
*/
|
|
107
|
-
readonly image?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Build a docker image.
|
|
110
|
-
* Note: You must specify either `imageBuild` or `image` key.
|
|
111
|
-
* @see image
|
|
112
|
-
*/
|
|
113
|
-
readonly imageBuild?: DockerComposeBuild;
|
|
114
|
-
/**
|
|
115
|
-
* Provide a command to the docker container.
|
|
116
|
-
* @default - use the container's default command
|
|
117
|
-
*/
|
|
118
|
-
readonly command?: string[];
|
|
119
|
-
/**
|
|
120
|
-
* Entrypoint to run in the container.
|
|
121
|
-
*/
|
|
122
|
-
readonly entrypoint?: string[];
|
|
123
|
-
/**
|
|
124
|
-
* Names of other services this service depends on.
|
|
125
|
-
* @default - no dependencies
|
|
126
|
-
*/
|
|
127
|
-
readonly dependsOn?: IDockerComposeServiceName[];
|
|
128
|
-
/**
|
|
129
|
-
* Mount some volumes into the service.
|
|
130
|
-
* Use one of the following to create volumes:
|
|
131
|
-
* @see DockerCompose.bindVolume() to mount a host path
|
|
132
|
-
* @see DockerCompose.namedVolume() to create & mount a named volume
|
|
133
|
-
*/
|
|
134
|
-
readonly volumes?: IDockerComposeVolumeBinding[];
|
|
135
|
-
/**
|
|
136
|
-
* Add some networks to the service.
|
|
137
|
-
* @see DockerCompose.network() to create & mount a named network
|
|
138
|
-
*/
|
|
139
|
-
readonly networks?: IDockerComposeNetworkBinding[];
|
|
140
|
-
/**
|
|
141
|
-
* Map some ports.
|
|
142
|
-
* @default - no ports are mapped
|
|
143
|
-
*/
|
|
144
|
-
readonly ports?: DockerComposeServicePort[];
|
|
145
|
-
/**
|
|
146
|
-
* Add environment variables.
|
|
147
|
-
* @default - no environment variables are provided
|
|
148
|
-
*/
|
|
149
|
-
readonly environment?: Record<string, string>;
|
|
150
|
-
/**
|
|
151
|
-
* Add labels.
|
|
152
|
-
* @default - no labels are provided
|
|
153
|
-
*/
|
|
154
|
-
readonly labels?: Record<string, string>;
|
|
155
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Volume configuration
|
|
3
|
-
*/
|
|
4
|
-
export interface DockerComposeVolumeConfig {
|
|
5
|
-
/**
|
|
6
|
-
* Driver to use for the volume
|
|
7
|
-
* @default - value is not provided
|
|
8
|
-
*/
|
|
9
|
-
readonly driver?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Options to provide to the driver.
|
|
12
|
-
*/
|
|
13
|
-
readonly driverOpts?: Record<string, string>;
|
|
14
|
-
/**
|
|
15
|
-
* Set to true to indicate that the volume is externally created.
|
|
16
|
-
* @default - unset, indicating that docker-compose creates the volume
|
|
17
|
-
*/
|
|
18
|
-
readonly external?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Name of the volume for when the volume name isn't going to work in YAML.
|
|
21
|
-
* @default - unset, indicating that docker-compose creates volumes as usual
|
|
22
|
-
*/
|
|
23
|
-
readonly name?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Volume binding information.
|
|
27
|
-
*/
|
|
28
|
-
export interface IDockerComposeVolumeBinding {
|
|
29
|
-
/**
|
|
30
|
-
* Binds the requested volume to the docker-compose volume configuration and
|
|
31
|
-
* provide mounting instructions for synthesis.
|
|
32
|
-
* @param volumeConfig the volume configuration
|
|
33
|
-
* @returns mounting instructions for the service.
|
|
34
|
-
*/
|
|
35
|
-
bind(volumeConfig: IDockerComposeVolumeConfig): DockerComposeVolumeMount;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Storage for volume configuration.
|
|
39
|
-
*/
|
|
40
|
-
export interface IDockerComposeVolumeConfig {
|
|
41
|
-
/**
|
|
42
|
-
* Add volume configuration to the repository.
|
|
43
|
-
* @param volumeName
|
|
44
|
-
* @param configuration
|
|
45
|
-
*/
|
|
46
|
-
addVolumeConfiguration(volumeName: string, configuration: DockerComposeVolumeConfig): void;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Service volume mounting information.
|
|
50
|
-
*/
|
|
51
|
-
export interface DockerComposeVolumeMount {
|
|
52
|
-
/**
|
|
53
|
-
* Type of volume.
|
|
54
|
-
*/
|
|
55
|
-
readonly type: string;
|
|
56
|
-
/**
|
|
57
|
-
* Volume source
|
|
58
|
-
*/
|
|
59
|
-
readonly source: string;
|
|
60
|
-
/**
|
|
61
|
-
* Volume target
|
|
62
|
-
*/
|
|
63
|
-
readonly target: string;
|
|
64
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { DockerComposeNetworkConfig, IDockerComposeNetworkBinding } from "./docker-compose-network";
|
|
2
|
-
import { DockerComposePortMappingOptions, DockerComposeServicePort } from "./docker-compose-port";
|
|
3
|
-
import { DockerComposeService, DockerComposeServiceDescription, IDockerComposeServiceName } from "./docker-compose-service";
|
|
4
|
-
import { DockerComposeVolumeConfig, IDockerComposeVolumeBinding } from "./docker-compose-volume";
|
|
5
|
-
import { Component } from "../component";
|
|
6
|
-
import { Project } from "../project";
|
|
7
|
-
/**
|
|
8
|
-
* Props for DockerCompose.
|
|
9
|
-
*/
|
|
10
|
-
export interface DockerComposeProps {
|
|
11
|
-
/**
|
|
12
|
-
* A name to add to the docker-compose.yml filename.
|
|
13
|
-
* @example 'myname' yields 'docker-compose.myname.yml'
|
|
14
|
-
* @default - no name is added
|
|
15
|
-
*/
|
|
16
|
-
readonly nameSuffix?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Docker Compose schema version do be used
|
|
19
|
-
* @default 3.3
|
|
20
|
-
*/
|
|
21
|
-
readonly schemaVersion?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Service descriptions.
|
|
24
|
-
*/
|
|
25
|
-
readonly services?: Record<string, DockerComposeServiceDescription>;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Create a docker-compose YAML file.
|
|
29
|
-
*/
|
|
30
|
-
export declare class DockerCompose extends Component {
|
|
31
|
-
/**
|
|
32
|
-
* Depends on a service name.
|
|
33
|
-
*/
|
|
34
|
-
static serviceName(serviceName: string): IDockerComposeServiceName;
|
|
35
|
-
/**
|
|
36
|
-
* Create a port mapping.
|
|
37
|
-
* @param publishedPort Published port number
|
|
38
|
-
* @param targetPort Container's port number
|
|
39
|
-
* @param options Port mapping options
|
|
40
|
-
*/
|
|
41
|
-
static portMapping(publishedPort: number, targetPort: number, options?: DockerComposePortMappingOptions): DockerComposeServicePort;
|
|
42
|
-
/**
|
|
43
|
-
* Create a bind volume that binds a host path to the target path in the container.
|
|
44
|
-
* @param sourcePath Host path name
|
|
45
|
-
* @param targetPath Target path name
|
|
46
|
-
*/
|
|
47
|
-
static bindVolume(sourcePath: string, targetPath: string): IDockerComposeVolumeBinding;
|
|
48
|
-
/**
|
|
49
|
-
* Create a named volume and mount it to the target path. If you use this
|
|
50
|
-
* named volume in several services, the volume will be shared. In this
|
|
51
|
-
* case, the volume configuration of the first-provided options are used.
|
|
52
|
-
*
|
|
53
|
-
* @param volumeName Name of the volume
|
|
54
|
-
* @param targetPath Target path
|
|
55
|
-
* @param options volume configuration (default: docker compose defaults)
|
|
56
|
-
*/
|
|
57
|
-
static namedVolume(volumeName: string, targetPath: string, options?: DockerComposeVolumeConfig): IDockerComposeVolumeBinding;
|
|
58
|
-
/**
|
|
59
|
-
* Create a named network and mount it to the target path. If you use this
|
|
60
|
-
* named network in several services, the network will be shared. In this
|
|
61
|
-
* case, the network configuration of the first-provided options are used.
|
|
62
|
-
*
|
|
63
|
-
* @param networkName Name of the network
|
|
64
|
-
* @param options network configuration
|
|
65
|
-
*/
|
|
66
|
-
static network(networkName: string, options?: DockerComposeNetworkConfig): IDockerComposeNetworkBinding;
|
|
67
|
-
private readonly services;
|
|
68
|
-
private readonly version;
|
|
69
|
-
constructor(project: Project, props?: DockerComposeProps);
|
|
70
|
-
/**
|
|
71
|
-
* Add a service to the docker-compose file.
|
|
72
|
-
* @param serviceName name of the service
|
|
73
|
-
* @param description a service description
|
|
74
|
-
*/
|
|
75
|
-
addService(serviceName: string, description: DockerComposeServiceDescription): DockerComposeService;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
_synthesizeDockerCompose(): object;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Build arguments for creating a docker image.
|
|
83
|
-
*/
|
|
84
|
-
export interface DockerComposeBuild {
|
|
85
|
-
/**
|
|
86
|
-
* Docker build context directory.
|
|
87
|
-
*/
|
|
88
|
-
readonly context: string;
|
|
89
|
-
/**
|
|
90
|
-
* A dockerfile to build from.
|
|
91
|
-
* @default "Dockerfile"
|
|
92
|
-
*/
|
|
93
|
-
readonly dockerfile?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Build args.
|
|
96
|
-
* @default - none are provided
|
|
97
|
-
*/
|
|
98
|
-
readonly args?: Record<string, string>;
|
|
99
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { Component } from "./component";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
export interface FileBaseOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Indicates whether this file should be committed to git or ignored. By
|
|
6
|
-
* default, all generated files are committed and anti-tamper is used to
|
|
7
|
-
* protect against manual modifications.
|
|
8
|
-
*
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
readonly committed?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Update the project's .gitignore file
|
|
14
|
-
* @default true
|
|
15
|
-
*/
|
|
16
|
-
readonly editGitignore?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Whether the generated file should be readonly.
|
|
19
|
-
*
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
readonly readonly?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the generated file should be marked as executable.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
readonly executable?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Adds the projen marker to the file.
|
|
31
|
-
*
|
|
32
|
-
* @default - marker will be included as long as the project is not ejected
|
|
33
|
-
*/
|
|
34
|
-
readonly marker?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export declare abstract class FileBase extends Component {
|
|
37
|
-
/**
|
|
38
|
-
* The file path, relative to the project root.
|
|
39
|
-
*/
|
|
40
|
-
readonly path: string;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates if the file should be read-only or read-write.
|
|
43
|
-
*/
|
|
44
|
-
readonly: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates if the file should be marked as executable
|
|
47
|
-
*/
|
|
48
|
-
executable: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The absolute path of this file.
|
|
51
|
-
*/
|
|
52
|
-
readonly absolutePath: string;
|
|
53
|
-
private _changed?;
|
|
54
|
-
private shouldAddMarker;
|
|
55
|
-
/**
|
|
56
|
-
* The projen marker, used to identify files as projen-generated.
|
|
57
|
-
*
|
|
58
|
-
* Value is undefined if the project is being ejected.
|
|
59
|
-
*/
|
|
60
|
-
get marker(): string | undefined;
|
|
61
|
-
constructor(project: Project, filePath: string, options?: FileBaseOptions);
|
|
62
|
-
/**
|
|
63
|
-
* Implemented by derived classes and returns the contents of the file to
|
|
64
|
-
* emit.
|
|
65
|
-
* @param resolver Call `resolver.resolve(obj)` on any objects in order to
|
|
66
|
-
* resolve token functions.
|
|
67
|
-
* @returns the content to synthesize or undefined to skip the file
|
|
68
|
-
*/
|
|
69
|
-
protected abstract synthesizeContent(resolver: IResolver): string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Writes the file to the project's output directory
|
|
72
|
-
*/
|
|
73
|
-
synthesize(): void;
|
|
74
|
-
/**
|
|
75
|
-
* For debugging, check whether a file was incorrectly generated with
|
|
76
|
-
* or without the projen marker. The projen marker does not *need* to be
|
|
77
|
-
* included on projen-generated files, but it's recommended since it signals
|
|
78
|
-
* that it probably should not be edited directly.
|
|
79
|
-
*/
|
|
80
|
-
private checkForProjenMarker;
|
|
81
|
-
/**
|
|
82
|
-
* Indicates if the file has been changed during synthesis. This property is
|
|
83
|
-
* only available in `postSynthesize()` hooks. If this is `undefined`, the
|
|
84
|
-
* file has not been synthesized yet.
|
|
85
|
-
*/
|
|
86
|
-
get changed(): boolean | undefined;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* API for resolving tokens when synthesizing file content.
|
|
90
|
-
*/
|
|
91
|
-
export interface IResolver {
|
|
92
|
-
/**
|
|
93
|
-
* Given a value (object/string/array/whatever, looks up any functions inside
|
|
94
|
-
* the object and returns an object where all functions are called.
|
|
95
|
-
* @param value The value to resolve
|
|
96
|
-
* @package options Resolve options
|
|
97
|
-
*/
|
|
98
|
-
resolve(value: any, options?: ResolveOptions): any;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Resolve options.
|
|
102
|
-
*/
|
|
103
|
-
export interface ResolveOptions {
|
|
104
|
-
/**
|
|
105
|
-
* Omits empty arrays and objects.
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
readonly omitEmpty?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Context arguments.
|
|
111
|
-
* @default []
|
|
112
|
-
*/
|
|
113
|
-
readonly args?: any[];
|
|
114
|
-
}
|
|
115
|
-
export interface IResolvable {
|
|
116
|
-
/**
|
|
117
|
-
* Resolves and returns content.
|
|
118
|
-
*/
|
|
119
|
-
toJSON(): any;
|
|
120
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IResolver, FileBase } from "./file";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
/**
|
|
4
|
-
* Assign attributes to file names in a git repository.
|
|
5
|
-
*
|
|
6
|
-
* @see https://git-scm.com/docs/gitattributes
|
|
7
|
-
*/
|
|
8
|
-
export declare class GitAttributesFile extends FileBase {
|
|
9
|
-
private readonly attributes;
|
|
10
|
-
constructor(project: Project);
|
|
11
|
-
/**
|
|
12
|
-
* Maps a set of attributes to a set of files.
|
|
13
|
-
* @param glob Glob pattern to match files in the repo
|
|
14
|
-
* @param attributes Attributes to assign to these files.
|
|
15
|
-
*/
|
|
16
|
-
addAttributes(glob: string, ...attributes: string[]): void;
|
|
17
|
-
/**
|
|
18
|
-
* Add attributes necessary to mark these files as stored in LFS
|
|
19
|
-
*/
|
|
20
|
-
addLfsPattern(glob: string): void;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the current gitattributes file has any LFS patterns
|
|
23
|
-
*/
|
|
24
|
-
get hasLfsPatterns(): boolean;
|
|
25
|
-
protected synthesizeContent(_: IResolver): string | undefined;
|
|
26
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manage the versions used for GitHub Actions used in steps
|
|
3
|
-
*/
|
|
4
|
-
export declare class GitHubActionsProvider {
|
|
5
|
-
private actions;
|
|
6
|
-
/**
|
|
7
|
-
* Define an override for a given action.
|
|
8
|
-
*
|
|
9
|
-
* Specify the action name without a version to override all usages of the action.
|
|
10
|
-
* You can also override a specific action version, by providing the version string.
|
|
11
|
-
* Specific overrides take precedence over overrides without a version.
|
|
12
|
-
*
|
|
13
|
-
* If an override for the same action name is set multiple times, the last override is used.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* // Force any use of `actions/checkout` to use a pin a specific commit
|
|
17
|
-
* project.github.actions.set("actions/checkout", "actions/checkout@aaaaaa");
|
|
18
|
-
*
|
|
19
|
-
* // But pin usage of `v3` to a different commit
|
|
20
|
-
* project.github.actions.set("actions/checkout@v3", "actions/checkout@ffffff");
|
|
21
|
-
*/
|
|
22
|
-
set(action: string, override: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Resolve an action name to the version that should be used,
|
|
25
|
-
* taking into account any overrides.
|
|
26
|
-
*/
|
|
27
|
-
get(action: string): string;
|
|
28
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
/**
|
|
4
|
-
* Options for 'AutoApprove'
|
|
5
|
-
*/
|
|
6
|
-
export interface AutoApproveOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Only pull requests authored by these Github usernames will be auto-approved.
|
|
9
|
-
* @default ['github-bot']
|
|
10
|
-
*/
|
|
11
|
-
readonly allowedUsernames?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* Only pull requests with this label will be auto-approved.
|
|
14
|
-
* @default 'auto-approve'
|
|
15
|
-
*/
|
|
16
|
-
readonly label?: string;
|
|
17
|
-
/**
|
|
18
|
-
* A GitHub secret name which contains a GitHub Access Token
|
|
19
|
-
* with write permissions for the `pull_request` scope.
|
|
20
|
-
*
|
|
21
|
-
* This token is used to approve pull requests.
|
|
22
|
-
*
|
|
23
|
-
* Github forbids an identity to approve its own pull request.
|
|
24
|
-
* If your project produces automated pull requests using the Github default token -
|
|
25
|
-
* {@link https://docs.github.com/en/actions/reference/authentication-in-a-workflow `GITHUB_TOKEN` }
|
|
26
|
-
* - that you would like auto approved, such as when using the `depsUpgrade` property in
|
|
27
|
-
* `NodeProjectOptions`, then you must use a different token here.
|
|
28
|
-
*
|
|
29
|
-
* @default "GITHUB_TOKEN"
|
|
30
|
-
*/
|
|
31
|
-
readonly secret?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Github Runner selection labels
|
|
34
|
-
* @default ["ubuntu-latest"]
|
|
35
|
-
*/
|
|
36
|
-
readonly runsOn?: string[];
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Auto approve pull requests that meet a criteria
|
|
40
|
-
*/
|
|
41
|
-
export declare class AutoApprove extends Component {
|
|
42
|
-
readonly label: string;
|
|
43
|
-
constructor(github: GitHub, options?: AutoApproveOptions);
|
|
44
|
-
}
|