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,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated This class will be removed in upcoming releases. if you wish to
|
|
3
|
-
* specify semver requirements in `deps`, `devDeps`, etc, specify them like so
|
|
4
|
-
* `express@^2.1`.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Semver {
|
|
7
|
-
readonly spec: string;
|
|
8
|
-
static of(spec: string): Semver;
|
|
9
|
-
/**
|
|
10
|
-
* Latest version.
|
|
11
|
-
*/
|
|
12
|
-
static latest(): Semver;
|
|
13
|
-
/**
|
|
14
|
-
* Accept only an exact version
|
|
15
|
-
*/
|
|
16
|
-
static pinned(version: string): Semver;
|
|
17
|
-
/**
|
|
18
|
-
* Accept any minor version.
|
|
19
|
-
*
|
|
20
|
-
* >= version
|
|
21
|
-
* < next major version
|
|
22
|
-
*/
|
|
23
|
-
static caret(version: string): Semver;
|
|
24
|
-
/**
|
|
25
|
-
* Accept patches.
|
|
26
|
-
*
|
|
27
|
-
* >= version
|
|
28
|
-
* < next minor version
|
|
29
|
-
*/
|
|
30
|
-
static tilde(version: string): Semver;
|
|
31
|
-
readonly mode?: string;
|
|
32
|
-
private constructor();
|
|
33
|
-
get version(): string | undefined;
|
|
34
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { MavenRepository } from "../java";
|
|
3
|
-
import { Project } from "../project";
|
|
4
|
-
type Transform = {
|
|
5
|
-
name: string;
|
|
6
|
-
args: Record<string, any>;
|
|
7
|
-
};
|
|
8
|
-
type SmithyCommon = {
|
|
9
|
-
imports?: string[];
|
|
10
|
-
plugins?: PluginsType;
|
|
11
|
-
};
|
|
12
|
-
type PluginValue = {
|
|
13
|
-
service?: string;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
export type ProjectionValue = SmithyCommon & {
|
|
17
|
-
abstract?: boolean;
|
|
18
|
-
transforms?: Transform[];
|
|
19
|
-
};
|
|
20
|
-
export type ProjectionKey = string;
|
|
21
|
-
export type ProjectionsType = Record<ProjectionKey, ProjectionValue>;
|
|
22
|
-
export type PluginKey = string;
|
|
23
|
-
export type PluginsType = Record<PluginKey, PluginValue>;
|
|
24
|
-
/**
|
|
25
|
-
* Maven repository definition for a smithy build file
|
|
26
|
-
*/
|
|
27
|
-
export type SmithyMavenRepository = Partial<MavenRepository> & Pick<MavenRepository, "url">;
|
|
28
|
-
export interface SmithyMavenConfig {
|
|
29
|
-
/**
|
|
30
|
-
* List of smithy dependencies, for example ["software.amazon.smithy:smithy-cli:1.27.2"]
|
|
31
|
-
*/
|
|
32
|
-
readonly dependencies: string[];
|
|
33
|
-
/**
|
|
34
|
-
* List of maven repositories for smithy dependencies
|
|
35
|
-
*/
|
|
36
|
-
readonly repositories: SmithyMavenRepository[];
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Options for `SmithyBuild`
|
|
40
|
-
*/
|
|
41
|
-
export interface SmithyBuildOptions extends SmithyCommon {
|
|
42
|
-
/**
|
|
43
|
-
* Defines the version of smithy-build.
|
|
44
|
-
* @default "1.0"
|
|
45
|
-
*/
|
|
46
|
-
readonly version?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Specifies a location where smithy projections are written.
|
|
49
|
-
* @default - no output directory
|
|
50
|
-
*/
|
|
51
|
-
readonly outputDirectory?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Map of projections name to projection configurations
|
|
54
|
-
* https://awslabs.github.io/smithy/1.0/guides/building-models/build-config.html#projections
|
|
55
|
-
* @default - no projections
|
|
56
|
-
*/
|
|
57
|
-
readonly projections?: ProjectionsType;
|
|
58
|
-
/**
|
|
59
|
-
* If a plugin can't be found, Smithy will by default fail the build.
|
|
60
|
-
* This setting can be set to true to allow the build to progress
|
|
61
|
-
* even if a plugin can't be found on the classpath.
|
|
62
|
-
*
|
|
63
|
-
* @default - no ignoreMissingPlugins set in the smithy-build.json file
|
|
64
|
-
*/
|
|
65
|
-
readonly ignoreMissingPlugins?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Maven configuration, used to declare dependencies for the smithy vs-code plugin
|
|
68
|
-
* @see https://github.com/awslabs/smithy-vscode/blob/main/README.md#authoring-a-model
|
|
69
|
-
* @default - no maven configuration set in the smithy-build.json file
|
|
70
|
-
*/
|
|
71
|
-
readonly maven?: SmithyMavenConfig;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Smithy build configuration options
|
|
75
|
-
*/
|
|
76
|
-
export declare class SmithyBuild extends Component {
|
|
77
|
-
/**
|
|
78
|
-
* Defines the version of smithy-build.
|
|
79
|
-
* @default "1.0"
|
|
80
|
-
*/
|
|
81
|
-
readonly version: string;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies a location where smithy projections are written.
|
|
84
|
-
* @default - no output directory
|
|
85
|
-
*/
|
|
86
|
-
readonly outputDirectory?: string;
|
|
87
|
-
/**
|
|
88
|
-
* List of imports relative to the location of smithy-build.json file.
|
|
89
|
-
* @default no imports
|
|
90
|
-
*/
|
|
91
|
-
private _imports?;
|
|
92
|
-
/**
|
|
93
|
-
* If a plugin can't be found, Smithy will by default fail the build.
|
|
94
|
-
* This setting can be set to true to allow the build to progress
|
|
95
|
-
* even if a plugin can't be found on the classpath.
|
|
96
|
-
*
|
|
97
|
-
* @default - no ignoreMissingPlugins set in the smithy-build.json file
|
|
98
|
-
*/
|
|
99
|
-
readonly ignoreMissingPlugins?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Map of projections name to projection configurations
|
|
102
|
-
* https://awslabs.github.io/smithy/1.0/guides/building-models/build-config.html#projections
|
|
103
|
-
* @default - no projections
|
|
104
|
-
*/
|
|
105
|
-
private _projections?;
|
|
106
|
-
/**
|
|
107
|
-
* Map of plugin name to plugin configurations
|
|
108
|
-
* https://awslabs.github.io/smithy/1.0/guides/building-models/build-config.html#plugins
|
|
109
|
-
* @default - no plugins
|
|
110
|
-
*/
|
|
111
|
-
private _plugins?;
|
|
112
|
-
/**
|
|
113
|
-
* Maven configuration for the Smithy vs-code extension
|
|
114
|
-
* https://github.com/awslabs/smithy-vscode/blob/main/README.md#authoring-a-model
|
|
115
|
-
*/
|
|
116
|
-
private _maven?;
|
|
117
|
-
private readonly manifest;
|
|
118
|
-
constructor(project: Project, options?: SmithyBuildOptions);
|
|
119
|
-
/**
|
|
120
|
-
* Get configured projections
|
|
121
|
-
*/
|
|
122
|
-
get projections(): {
|
|
123
|
-
[x: string]: ProjectionValue;
|
|
124
|
-
} | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* Get configured imports
|
|
127
|
-
*/
|
|
128
|
-
get imports(): string[] | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Get configured plugins
|
|
131
|
-
*/
|
|
132
|
-
get plugins(): {
|
|
133
|
-
[x: string]: PluginValue;
|
|
134
|
-
} | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Add a smithy build import
|
|
137
|
-
*/
|
|
138
|
-
addImport(imp: string): void;
|
|
139
|
-
/**
|
|
140
|
-
* Add smithy build projections
|
|
141
|
-
*/
|
|
142
|
-
addProjections(projections: ProjectionsType): void;
|
|
143
|
-
/**
|
|
144
|
-
* Add smithy build plugins
|
|
145
|
-
*/
|
|
146
|
-
addPlugins(plugins: PluginsType): void;
|
|
147
|
-
/**
|
|
148
|
-
* Add maven dependencies to the smithy build for the vs-code plugin
|
|
149
|
-
*/
|
|
150
|
-
addMavenDependencies(...dependencies: string[]): void;
|
|
151
|
-
/**
|
|
152
|
-
* Add maven repositories to the smithy build for the vs-code plugin
|
|
153
|
-
*/
|
|
154
|
-
addMavenRepositories(...repositories: SmithyMavenRepository[]): void;
|
|
155
|
-
}
|
|
156
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Component } from "./component";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `SourceCodeFile`.
|
|
5
|
-
*/
|
|
6
|
-
export interface SourceCodeOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Indentation size.
|
|
9
|
-
* @default 2
|
|
10
|
-
*/
|
|
11
|
-
readonly indent?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Whether the generated file should be readonly.
|
|
14
|
-
*
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
readonly readonly?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Represents a source file.
|
|
21
|
-
*/
|
|
22
|
-
export declare class SourceCode extends Component {
|
|
23
|
-
readonly filePath: string;
|
|
24
|
-
private readonly file;
|
|
25
|
-
private indentLevel;
|
|
26
|
-
private readonly indent;
|
|
27
|
-
constructor(project: Project, filePath: string, options?: SourceCodeOptions);
|
|
28
|
-
get marker(): string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Emit a line of code.
|
|
31
|
-
* @param code The contents, if not specified, just adds a newline
|
|
32
|
-
*/
|
|
33
|
-
line(code?: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* Opens a code block and increases the indentation level.
|
|
36
|
-
*
|
|
37
|
-
* @param code The code before the block starts (e.g. `export class {`).
|
|
38
|
-
*/
|
|
39
|
-
open(code?: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Decreases the indentation level and closes a code block.
|
|
42
|
-
*
|
|
43
|
-
* @param code The code after the block is closed (e.g. `}`).
|
|
44
|
-
*/
|
|
45
|
-
close(code?: string): void;
|
|
46
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for `tasks.json`.
|
|
3
|
-
*/
|
|
4
|
-
export interface TasksManifest {
|
|
5
|
-
/**
|
|
6
|
-
* All tasks available for this project.
|
|
7
|
-
*/
|
|
8
|
-
readonly tasks?: {
|
|
9
|
-
[name: string]: TaskSpec;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Environment for all tasks.
|
|
13
|
-
*/
|
|
14
|
-
readonly env?: {
|
|
15
|
-
[name: string]: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface TaskCommonOptions {
|
|
19
|
-
/**
|
|
20
|
-
* The description of this build command.
|
|
21
|
-
* @default - the task name
|
|
22
|
-
*/
|
|
23
|
-
readonly description?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Defines environment variables for the execution of this task.
|
|
26
|
-
* Values in this map will be evaluated in a shell, so you can do stuff like `$(echo "foo")`.
|
|
27
|
-
* @default {}
|
|
28
|
-
*/
|
|
29
|
-
readonly env?: {
|
|
30
|
-
[name: string]: string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* A set of environment variables that must be defined in order to execute
|
|
34
|
-
* this task. Task execution will fail if one of these is not defined.
|
|
35
|
-
*/
|
|
36
|
-
readonly requiredEnv?: string[];
|
|
37
|
-
/**
|
|
38
|
-
* A shell command which determines if the this task should be executed. If
|
|
39
|
-
* the program exits with a zero exit code, steps will be executed. A non-zero
|
|
40
|
-
* code means that task will be skipped.
|
|
41
|
-
*/
|
|
42
|
-
readonly condition?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The working directory for all steps in this task (unless overridden by the
|
|
45
|
-
* step).
|
|
46
|
-
*
|
|
47
|
-
* @default - process.cwd()
|
|
48
|
-
*/
|
|
49
|
-
readonly cwd?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Specification of a single task.
|
|
53
|
-
*/
|
|
54
|
-
export interface TaskSpec extends TaskCommonOptions {
|
|
55
|
-
/**
|
|
56
|
-
* Task name.
|
|
57
|
-
*/
|
|
58
|
-
readonly name: string;
|
|
59
|
-
/**
|
|
60
|
-
* Task steps.
|
|
61
|
-
*/
|
|
62
|
-
readonly steps?: TaskStep[];
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Options for task steps.
|
|
66
|
-
*/
|
|
67
|
-
export interface TaskStepOptions {
|
|
68
|
-
/**
|
|
69
|
-
* Step name
|
|
70
|
-
*
|
|
71
|
-
* @default - no name
|
|
72
|
-
*/
|
|
73
|
-
readonly name?: string;
|
|
74
|
-
/**
|
|
75
|
-
* The working directory for this step.
|
|
76
|
-
*
|
|
77
|
-
* @default - determined by the task
|
|
78
|
-
*/
|
|
79
|
-
readonly cwd?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Should this step receive args passed to the task.
|
|
82
|
-
*
|
|
83
|
-
* If `true`, args are passed through at the end of the `exec` shell command.\
|
|
84
|
-
* The position of the args can be changed by including the marker `$@` inside the command string.
|
|
85
|
-
*
|
|
86
|
-
* If the step spawns a subtask, args are passed to the subtask.
|
|
87
|
-
* The subtask must define steps receiving args for this to have any effect.
|
|
88
|
-
*
|
|
89
|
-
* @example task.exec("echo Hello $@ World!", { receiveArgs: true });
|
|
90
|
-
*
|
|
91
|
-
* @default false
|
|
92
|
-
*/
|
|
93
|
-
readonly receiveArgs?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* A list of fixed arguments always passed to the step.
|
|
96
|
-
*
|
|
97
|
-
* Useful to re-use existing tasks without having to re-define the whole task.\
|
|
98
|
-
* Fixed args are always passed to the step, even if `receiveArgs` is `false`
|
|
99
|
-
* and are always passed before any args the task is called with.
|
|
100
|
-
*
|
|
101
|
-
* If the step executes a shell commands, args are passed through at the end of the `exec` shell command.\
|
|
102
|
-
* The position of the args can be changed by including the marker `$@` inside the command string.
|
|
103
|
-
*
|
|
104
|
-
* If the step spawns a subtask, args are passed to the subtask.
|
|
105
|
-
* The subtask must define steps receiving args for this to have any effect.
|
|
106
|
-
*
|
|
107
|
-
* If the step calls a builtin script, args are passed to the script.
|
|
108
|
-
* It is up to the script to use or discard the arguments.
|
|
109
|
-
*
|
|
110
|
-
* @example task.spawn("deploy", { args: ["--force"] });
|
|
111
|
-
*
|
|
112
|
-
* @default - no arguments are passed to the step
|
|
113
|
-
*/
|
|
114
|
-
readonly args?: string[];
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* A single step within a task. The step could either be the execution of a
|
|
118
|
-
* shell command or execution of a sub-task, by name.
|
|
119
|
-
*/
|
|
120
|
-
export interface TaskStep extends TaskStepOptions {
|
|
121
|
-
/**
|
|
122
|
-
* Shell command to execute
|
|
123
|
-
*
|
|
124
|
-
* @default - don't execute a shell command
|
|
125
|
-
*/
|
|
126
|
-
readonly exec?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Subtask to execute
|
|
129
|
-
*
|
|
130
|
-
* @default - don't spawn a subtask
|
|
131
|
-
*/
|
|
132
|
-
readonly spawn?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Print a message.
|
|
135
|
-
* @default - don't say anything
|
|
136
|
-
*/
|
|
137
|
-
readonly say?: string;
|
|
138
|
-
/**
|
|
139
|
-
* The name of a built-in task to execute.
|
|
140
|
-
*
|
|
141
|
-
* Built-in tasks are node.js programs baked into the projen module and as
|
|
142
|
-
* component runtime helpers.
|
|
143
|
-
*
|
|
144
|
-
* The name is a path relative to the projen lib/ directory (without the .task.js extension).
|
|
145
|
-
* For example, if your built in builtin task is under `src/release/resolve-version.task.ts`,
|
|
146
|
-
* then this would be `release/resolve-version`.
|
|
147
|
-
*
|
|
148
|
-
* @default - do not execute a builtin task
|
|
149
|
-
*/
|
|
150
|
-
readonly builtin?: string;
|
|
151
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { TasksManifest, TaskSpec } from "./task-model";
|
|
2
|
-
/**
|
|
3
|
-
* The runtime component of the tasks engine.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TaskRuntime {
|
|
6
|
-
/**
|
|
7
|
-
* The project-relative path of the tasks manifest file.
|
|
8
|
-
*/
|
|
9
|
-
static readonly MANIFEST_FILE: string;
|
|
10
|
-
/**
|
|
11
|
-
* The contents of tasks.json
|
|
12
|
-
*/
|
|
13
|
-
readonly manifest: TasksManifest;
|
|
14
|
-
/**
|
|
15
|
-
* The root directory of the project and the cwd for executing tasks.
|
|
16
|
-
*/
|
|
17
|
-
readonly workdir: string;
|
|
18
|
-
constructor(workdir: string);
|
|
19
|
-
/**
|
|
20
|
-
* The tasks in this project.
|
|
21
|
-
*/
|
|
22
|
-
get tasks(): TaskSpec[];
|
|
23
|
-
/**
|
|
24
|
-
* Find a task by name, or `undefined` if not found.
|
|
25
|
-
*/
|
|
26
|
-
tryFindTask(name: string): TaskSpec | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Runs the task.
|
|
29
|
-
* @param name The task name.
|
|
30
|
-
*/
|
|
31
|
-
runTask(name: string, parents?: string[], args?: Array<string | number>): void;
|
|
32
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { TaskCommonOptions, TaskSpec, TaskStep, TaskStepOptions } from "./task-model";
|
|
2
|
-
export interface TaskOptions extends TaskCommonOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Shell command to execute as the first command of the task.
|
|
5
|
-
* @default - add steps using `task.exec(command)` or `task.spawn(subtask)`
|
|
6
|
-
*/
|
|
7
|
-
readonly exec?: string;
|
|
8
|
-
/**
|
|
9
|
-
* List of task steps to run.
|
|
10
|
-
*/
|
|
11
|
-
readonly steps?: TaskStep[];
|
|
12
|
-
/**
|
|
13
|
-
* Should the provided `exec` shell command receive args passed to the task.
|
|
14
|
-
* @see {@link TaskStepOptions.receiveArgs}
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
readonly receiveArgs?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Should the provided `exec` shell command receive fixed args.
|
|
21
|
-
* @see {@link TaskStepOptions.args}
|
|
22
|
-
*
|
|
23
|
-
* @default - no arguments are passed to the step
|
|
24
|
-
*/
|
|
25
|
-
readonly args?: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A task that can be performed on the project. Modeled as a series of shell
|
|
29
|
-
* commands and subtasks.
|
|
30
|
-
*/
|
|
31
|
-
export declare class Task {
|
|
32
|
-
/**
|
|
33
|
-
* Task name.
|
|
34
|
-
*/
|
|
35
|
-
readonly name: string;
|
|
36
|
-
/**
|
|
37
|
-
* A command to execute which determines if the task should be skipped. If it
|
|
38
|
-
* returns a zero exit code, the task will not be executed.
|
|
39
|
-
*/
|
|
40
|
-
readonly condition?: string;
|
|
41
|
-
private readonly _steps;
|
|
42
|
-
private readonly _env;
|
|
43
|
-
private readonly cwd?;
|
|
44
|
-
private readonly requiredEnv?;
|
|
45
|
-
private _locked;
|
|
46
|
-
private _description?;
|
|
47
|
-
constructor(name: string, props?: TaskOptions);
|
|
48
|
-
/**
|
|
49
|
-
* Forbid additional changes to this task.
|
|
50
|
-
*/
|
|
51
|
-
lock(): void;
|
|
52
|
-
/**
|
|
53
|
-
* Returns the description of this task.
|
|
54
|
-
*/
|
|
55
|
-
get description(): string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the description of this task.
|
|
58
|
-
*/
|
|
59
|
-
set description(desc: string | undefined);
|
|
60
|
-
/**
|
|
61
|
-
* Reset the task so it no longer has any commands.
|
|
62
|
-
* @param command the first command to add to the task after it was cleared.
|
|
63
|
-
*/
|
|
64
|
-
reset(command?: string, options?: TaskStepOptions): void;
|
|
65
|
-
/**
|
|
66
|
-
* Executes a shell command
|
|
67
|
-
* @param command Shell command
|
|
68
|
-
* @param options Options
|
|
69
|
-
*/
|
|
70
|
-
exec(command: string, options?: TaskStepOptions): void;
|
|
71
|
-
/**
|
|
72
|
-
* Execute a builtin task.
|
|
73
|
-
*
|
|
74
|
-
* Builtin tasks are programs bundled as part of projen itself and used as
|
|
75
|
-
* helpers for various components.
|
|
76
|
-
*
|
|
77
|
-
* In the future we should support built-in tasks from external modules.
|
|
78
|
-
*
|
|
79
|
-
* @param name The name of the builtin task to execute (e.g.
|
|
80
|
-
* `release/resolve-version`).
|
|
81
|
-
*/
|
|
82
|
-
builtin(name: string): void;
|
|
83
|
-
/**
|
|
84
|
-
* Say something.
|
|
85
|
-
* @param message Your message
|
|
86
|
-
* @param options Options
|
|
87
|
-
*/
|
|
88
|
-
say(message: string, options?: TaskStepOptions): void;
|
|
89
|
-
/**
|
|
90
|
-
* Adds a command at the beginning of the task.
|
|
91
|
-
* @param shell The command to add.
|
|
92
|
-
*
|
|
93
|
-
* @deprecated use `prependExec()`
|
|
94
|
-
*/
|
|
95
|
-
prepend(shell: string, options?: TaskStepOptions): void;
|
|
96
|
-
/**
|
|
97
|
-
* Spawns a sub-task.
|
|
98
|
-
* @param subtask The subtask to execute.
|
|
99
|
-
*/
|
|
100
|
-
spawn(subtask: Task, options?: TaskStepOptions): void;
|
|
101
|
-
/**
|
|
102
|
-
* Adds a command at the beginning of the task.
|
|
103
|
-
* @param shell The command to add.
|
|
104
|
-
*/
|
|
105
|
-
prependExec(shell: string, options?: TaskStepOptions): void;
|
|
106
|
-
/**
|
|
107
|
-
* Adds a spawn instruction at the beginning of the task.
|
|
108
|
-
* @param subtask The subtask to execute.
|
|
109
|
-
*/
|
|
110
|
-
prependSpawn(subtask: Task, options?: TaskStepOptions): void;
|
|
111
|
-
/**
|
|
112
|
-
* Says something at the beginning of the task.
|
|
113
|
-
* @param message Your message
|
|
114
|
-
*/
|
|
115
|
-
prependSay(message: string, options?: TaskStepOptions): void;
|
|
116
|
-
/**
|
|
117
|
-
* Adds an environment variable to this task.
|
|
118
|
-
* @param name The name of the variable
|
|
119
|
-
* @param value The value. If the value is surrounded by `$()`, we will
|
|
120
|
-
* evaluate it within a subshell and use the result as the value of the
|
|
121
|
-
* environment variable.
|
|
122
|
-
*/
|
|
123
|
-
env(name: string, value: string): void;
|
|
124
|
-
/**
|
|
125
|
-
* Returns an immutable copy of all the step specifications of the task.
|
|
126
|
-
*/
|
|
127
|
-
get steps(): TaskStep[];
|
|
128
|
-
/**
|
|
129
|
-
* Renders a task spec into the manifest.
|
|
130
|
-
*
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
133
|
-
_renderSpec(): TaskSpec;
|
|
134
|
-
private assertUnlocked;
|
|
135
|
-
private addEnv;
|
|
136
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Component } from "./component";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
import { Task, TaskOptions } from "./task";
|
|
4
|
-
/**
|
|
5
|
-
* Defines project tasks.
|
|
6
|
-
*
|
|
7
|
-
* Tasks extend the projen CLI by adding subcommands to it. Task definitions are
|
|
8
|
-
* synthesized into `.projen/tasks.json`.
|
|
9
|
-
*/
|
|
10
|
-
export declare class Tasks extends Component {
|
|
11
|
-
private readonly _tasks;
|
|
12
|
-
private readonly _env;
|
|
13
|
-
constructor(project: Project);
|
|
14
|
-
/**
|
|
15
|
-
* All tasks.
|
|
16
|
-
*/
|
|
17
|
-
get all(): Task[];
|
|
18
|
-
/**
|
|
19
|
-
* Adds a task to a project.
|
|
20
|
-
* @param name The name of the task
|
|
21
|
-
* @param options Task options.
|
|
22
|
-
*/
|
|
23
|
-
addTask(name: string, options?: TaskOptions): Task;
|
|
24
|
-
/**
|
|
25
|
-
* Removes a task from a project.
|
|
26
|
-
*
|
|
27
|
-
* @param name The name of the task to remove.
|
|
28
|
-
*
|
|
29
|
-
* @returns The `Task` that was removed, otherwise `undefined`.
|
|
30
|
-
*/
|
|
31
|
-
removeTask(name: string): undefined | Task;
|
|
32
|
-
/**
|
|
33
|
-
* Adds global environment.
|
|
34
|
-
* @param name Environment variable name
|
|
35
|
-
* @param value Value
|
|
36
|
-
*/
|
|
37
|
-
addEnvironment(name: string, value: string): void;
|
|
38
|
-
/**
|
|
39
|
-
* Returns a copy of the currently global environment for this project.
|
|
40
|
-
*/
|
|
41
|
-
get env(): {
|
|
42
|
-
[key: string]: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Finds a task by name. Returns `undefined` if the task cannot be found.
|
|
46
|
-
* @param name The name of the task
|
|
47
|
-
*/
|
|
48
|
-
tryFind(name: string): undefined | Task;
|
|
49
|
-
synthesize(): void;
|
|
50
|
-
private renderTasks;
|
|
51
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Project } from "./project";
|
|
2
|
-
import { SnapshotOptions } from "./util/synth";
|
|
3
|
-
/**
|
|
4
|
-
* A Testing static class with a .synth helper for getting a snapshots of construct outputs.
|
|
5
|
-
* Useful for snapshot testing with Jest.
|
|
6
|
-
*
|
|
7
|
-
* @example `expect(Testing.synth(someProject)).toMatchSnapshot()`
|
|
8
|
-
*/
|
|
9
|
-
export declare class Testing {
|
|
10
|
-
/**
|
|
11
|
-
* Produces a simple JS object that represents the contents of the projects with field names being file paths.
|
|
12
|
-
* @param project the project to produce a snapshot for
|
|
13
|
-
* @return { [filename:string]: any }
|
|
14
|
-
*/
|
|
15
|
-
static synth(project: Project, options?: SnapshotOptions): Record<string, any>;
|
|
16
|
-
private constructor();
|
|
17
|
-
}
|
|
18
|
-
export { SnapshotOptions } from "./util/synth";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FileBase, FileBaseOptions, IResolver } from "./file";
|
|
2
|
-
import { Project } from "./project";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `TextFile`.
|
|
5
|
-
*/
|
|
6
|
-
export interface TextFileOptions extends FileBaseOptions {
|
|
7
|
-
/**
|
|
8
|
-
* The contents of the text file. You can use `addLine()` to append lines.
|
|
9
|
-
*
|
|
10
|
-
* @default [] empty file
|
|
11
|
-
*/
|
|
12
|
-
readonly lines?: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A text file.
|
|
16
|
-
*/
|
|
17
|
-
export declare class TextFile extends FileBase {
|
|
18
|
-
private readonly lines;
|
|
19
|
-
/**
|
|
20
|
-
* Defines a text file.
|
|
21
|
-
*
|
|
22
|
-
* @param project The project
|
|
23
|
-
* @param filePath File path
|
|
24
|
-
* @param options Options
|
|
25
|
-
*/
|
|
26
|
-
constructor(project: Project, filePath: string, options?: TextFileOptions);
|
|
27
|
-
/**
|
|
28
|
-
* Adds a line to the text file.
|
|
29
|
-
* @param line the line to add (can use tokens)
|
|
30
|
-
*/
|
|
31
|
-
addLine(line: string): void;
|
|
32
|
-
protected synthesizeContent(_: IResolver): string | undefined;
|
|
33
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IResolver } from "./file";
|
|
2
|
-
import { ObjectFile, ObjectFileOptions } from "./object-file";
|
|
3
|
-
import { Project } from "./project";
|
|
4
|
-
/**
|
|
5
|
-
* Options for `TomlFile`.
|
|
6
|
-
*/
|
|
7
|
-
export interface TomlFileOptions extends ObjectFileOptions {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Represents a TOML file.
|
|
11
|
-
*/
|
|
12
|
-
export declare class TomlFile extends ObjectFile {
|
|
13
|
-
constructor(project: Project, filePath: string, options: TomlFileOptions);
|
|
14
|
-
protected synthesizeContent(resolver: IResolver): string | undefined;
|
|
15
|
-
}
|