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,358 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { IgnoreFile, IgnoreFileOptions } from "../ignore-file";
|
|
3
|
-
import { NodeProject } from "../javascript";
|
|
4
|
-
import { Project } from "../project";
|
|
5
|
-
/**
|
|
6
|
-
* Options for Prettier
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export interface PrettierOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Defines an .prettierIgnore file
|
|
12
|
-
*
|
|
13
|
-
* @default true
|
|
14
|
-
*/
|
|
15
|
-
readonly ignoreFile?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Configuration options for .prettierignore file
|
|
18
|
-
*/
|
|
19
|
-
readonly ignoreFileOptions?: IgnoreFileOptions;
|
|
20
|
-
/**
|
|
21
|
-
* Prettier settings.
|
|
22
|
-
* @default - default settings
|
|
23
|
-
*/
|
|
24
|
-
readonly settings?: PrettierSettings;
|
|
25
|
-
/**
|
|
26
|
-
* Provide a list of patterns to override prettier configuration.
|
|
27
|
-
*
|
|
28
|
-
* @default []
|
|
29
|
-
* @see https://prettier.io/docs/en/configuration.html#configuration-overrides
|
|
30
|
-
*/
|
|
31
|
-
readonly overrides?: PrettierOverride[];
|
|
32
|
-
/**
|
|
33
|
-
* Write prettier configuration as YAML instead of JSON
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
readonly yaml?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Options to set in Prettier directly or through overrides
|
|
40
|
-
*
|
|
41
|
-
* @see https://prettier.io/docs/en/options.html
|
|
42
|
-
*/
|
|
43
|
-
export interface PrettierSettings {
|
|
44
|
-
/**
|
|
45
|
-
* Include parentheses around a sole arrow function parameter.
|
|
46
|
-
*
|
|
47
|
-
* @default ArrowParens.ALWAYS
|
|
48
|
-
*/
|
|
49
|
-
readonly arrowParens?: ArrowParens;
|
|
50
|
-
/**
|
|
51
|
-
* Put > of opening tags on the last line instead of on a new line.
|
|
52
|
-
*
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
readonly bracketSameLine?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Print spaces between brackets.
|
|
58
|
-
*
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
readonly bracketSpacing?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
64
|
-
* This option cannot be used with --range-start and --range-end.
|
|
65
|
-
*
|
|
66
|
-
* @default -1
|
|
67
|
-
*/
|
|
68
|
-
readonly cursorOffset?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Control how Prettier formats quoted code embedded in the file.
|
|
71
|
-
*
|
|
72
|
-
* @default EmbeddedLanguageFormatting.AUTO
|
|
73
|
-
*/
|
|
74
|
-
readonly embeddedLanguageFormatting?: EmbeddedLanguageFormatting;
|
|
75
|
-
/**
|
|
76
|
-
* Which end of line characters to apply.
|
|
77
|
-
*
|
|
78
|
-
* @default EndOfLine.LF
|
|
79
|
-
*/
|
|
80
|
-
readonly endOfLine?: EndOfLine;
|
|
81
|
-
/**
|
|
82
|
-
* Specify the input filepath. This will be used to do parser inference.
|
|
83
|
-
* @default none
|
|
84
|
-
*/
|
|
85
|
-
readonly filepath?: string;
|
|
86
|
-
/**
|
|
87
|
-
* How to handle whitespaces in HTML.
|
|
88
|
-
*
|
|
89
|
-
* @default HTMLWhitespaceSensitivity.CSS
|
|
90
|
-
*/
|
|
91
|
-
readonly htmlWhitespaceSensitivity?: HTMLWhitespaceSensitivity;
|
|
92
|
-
/**
|
|
93
|
-
* Insert @format pragma into file's first docblock comment.
|
|
94
|
-
*
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
readonly insertPragma?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Use single quotes in JSX.
|
|
100
|
-
*
|
|
101
|
-
* @default false
|
|
102
|
-
*/
|
|
103
|
-
readonly jsxSingleQuote?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Which parser to use.
|
|
106
|
-
*
|
|
107
|
-
* @default - Prettier automatically infers the parser from the input file path, so you shouldn’t have to change this setting.
|
|
108
|
-
*/
|
|
109
|
-
readonly parser?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Add a plugin. Multiple plugins can be passed as separate `--plugin`s.
|
|
112
|
-
*
|
|
113
|
-
* @default []
|
|
114
|
-
*/
|
|
115
|
-
readonly plugins?: string[];
|
|
116
|
-
/**
|
|
117
|
-
* Custom directory that contains prettier plugins in node_modules subdirectory.
|
|
118
|
-
* Overrides default behavior when plugins are searched relatively to the location of
|
|
119
|
-
* Prettier.
|
|
120
|
-
* Multiple values are accepted.
|
|
121
|
-
*
|
|
122
|
-
* @default []
|
|
123
|
-
*/
|
|
124
|
-
readonly pluginSearchDirs?: string[];
|
|
125
|
-
/**
|
|
126
|
-
* The line length where Prettier will try wrap.
|
|
127
|
-
*
|
|
128
|
-
* @default 80
|
|
129
|
-
*/
|
|
130
|
-
readonly printWidth?: number;
|
|
131
|
-
/**
|
|
132
|
-
* How to wrap prose.
|
|
133
|
-
*
|
|
134
|
-
* @default ProseWrap.PRESERVE
|
|
135
|
-
*/
|
|
136
|
-
readonly proseWrap?: ProseWrap;
|
|
137
|
-
/**
|
|
138
|
-
* Change when properties in objects are quoted.
|
|
139
|
-
*
|
|
140
|
-
* @default QuoteProps.ASNEEDED
|
|
141
|
-
*/
|
|
142
|
-
readonly quoteProps?: QuoteProps;
|
|
143
|
-
/**
|
|
144
|
-
* Format code ending at a given character offset (exclusive).
|
|
145
|
-
* The range will extend forwards to the end of the selected statement.
|
|
146
|
-
* This option cannot be used with --cursor-offset.
|
|
147
|
-
*
|
|
148
|
-
* @default null
|
|
149
|
-
*/
|
|
150
|
-
readonly rangeEnd?: number;
|
|
151
|
-
/**
|
|
152
|
-
* Format code starting at a given character offset.
|
|
153
|
-
* The range will extend backwards to the start of the first line containing the selected
|
|
154
|
-
* statement.
|
|
155
|
-
* This option cannot be used with --cursor-offset.
|
|
156
|
-
*
|
|
157
|
-
* @default 0
|
|
158
|
-
*/
|
|
159
|
-
readonly rangeStart?: number;
|
|
160
|
-
/**
|
|
161
|
-
* Require either '@prettier' or '@format' to be present in the file's first docblock
|
|
162
|
-
* comment
|
|
163
|
-
* in order for it to be formatted.
|
|
164
|
-
*
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
readonly requirePragma?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Print semicolons.
|
|
170
|
-
*
|
|
171
|
-
* @default true
|
|
172
|
-
*/
|
|
173
|
-
readonly semi?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Use single quotes instead of double quotes.
|
|
176
|
-
*
|
|
177
|
-
* @default false
|
|
178
|
-
*/
|
|
179
|
-
readonly singleQuote?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Number of spaces per indentation level.
|
|
182
|
-
*
|
|
183
|
-
* @default 2
|
|
184
|
-
*/
|
|
185
|
-
readonly tabWidth?: number;
|
|
186
|
-
/**
|
|
187
|
-
* Print trailing commas wherever possible when multi-line.
|
|
188
|
-
*
|
|
189
|
-
* @default TrailingComma.ES5
|
|
190
|
-
*/
|
|
191
|
-
readonly trailingComma?: TrailingComma;
|
|
192
|
-
/**
|
|
193
|
-
* Indent with tabs instead of spaces.
|
|
194
|
-
*
|
|
195
|
-
* @default false
|
|
196
|
-
*/
|
|
197
|
-
readonly useTabs?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Indent script and style tags in Vue files.
|
|
200
|
-
*
|
|
201
|
-
* @default false
|
|
202
|
-
*/
|
|
203
|
-
readonly vueIndentScriptAndStyle?: boolean;
|
|
204
|
-
}
|
|
205
|
-
export declare enum ArrowParens {
|
|
206
|
-
/**
|
|
207
|
-
* Always include parens. Example: `(x) => x`
|
|
208
|
-
*/
|
|
209
|
-
ALWAYS = "always",
|
|
210
|
-
/**
|
|
211
|
-
* Omit parens when possible. Example: `x => x`
|
|
212
|
-
*/
|
|
213
|
-
AVOID = "avoid"
|
|
214
|
-
}
|
|
215
|
-
export declare enum EmbeddedLanguageFormatting {
|
|
216
|
-
/**
|
|
217
|
-
* Format embedded code if Prettier can automatically identify it.
|
|
218
|
-
*/
|
|
219
|
-
AUTO = "auto",
|
|
220
|
-
/**
|
|
221
|
-
* Never automatically format embedded code.
|
|
222
|
-
*/
|
|
223
|
-
OFF = "off"
|
|
224
|
-
}
|
|
225
|
-
export declare enum EndOfLine {
|
|
226
|
-
/**
|
|
227
|
-
* Maintain existing (mixed values within one file are normalised by looking
|
|
228
|
-
* at what's used after the first line)
|
|
229
|
-
*/
|
|
230
|
-
AUTO = "auto",
|
|
231
|
-
/**
|
|
232
|
-
* Carriage Return character only (\r), used very rarely
|
|
233
|
-
*/
|
|
234
|
-
CR = "cr",
|
|
235
|
-
/**
|
|
236
|
-
* Carriage Return + Line Feed characters (\r\n), common on Windows
|
|
237
|
-
*/
|
|
238
|
-
CRLF = "crlf",
|
|
239
|
-
/**
|
|
240
|
-
* Line Feed only (\n), common on Linux and macOS as well as inside git repos
|
|
241
|
-
*/
|
|
242
|
-
LF = "lf"
|
|
243
|
-
}
|
|
244
|
-
export declare enum HTMLWhitespaceSensitivity {
|
|
245
|
-
/**
|
|
246
|
-
* Respect the default value of CSS display property.
|
|
247
|
-
*/
|
|
248
|
-
CSS = "css",
|
|
249
|
-
/**
|
|
250
|
-
* Whitespaces are considered insignificant.
|
|
251
|
-
*/
|
|
252
|
-
IGNORE = "ignore",
|
|
253
|
-
/**
|
|
254
|
-
* Whitespaces are considered significant.
|
|
255
|
-
*/
|
|
256
|
-
STRICT = "strict"
|
|
257
|
-
}
|
|
258
|
-
export interface PrettierOverride {
|
|
259
|
-
/**
|
|
260
|
-
* Exclude these files from this override.
|
|
261
|
-
*/
|
|
262
|
-
readonly excludeFiles?: Files;
|
|
263
|
-
/**
|
|
264
|
-
* Include these files in this override.
|
|
265
|
-
*/
|
|
266
|
-
readonly files: Files;
|
|
267
|
-
/**
|
|
268
|
-
* The options to apply for this override.
|
|
269
|
-
*/
|
|
270
|
-
readonly options: PrettierSettings;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Exclude these files from this override.
|
|
274
|
-
*
|
|
275
|
-
* Include these files in this override.
|
|
276
|
-
*/
|
|
277
|
-
export type Files = string[] | string;
|
|
278
|
-
export declare enum ProseWrap {
|
|
279
|
-
/**
|
|
280
|
-
* Wrap prose if it exceeds the print width.
|
|
281
|
-
*/
|
|
282
|
-
ALWAYS = "always",
|
|
283
|
-
/**
|
|
284
|
-
* Do not wrap prose.
|
|
285
|
-
*/
|
|
286
|
-
NEVER = "never",
|
|
287
|
-
/**
|
|
288
|
-
* Wrap prose as-is.
|
|
289
|
-
*/
|
|
290
|
-
PRESERVE = "preserve"
|
|
291
|
-
}
|
|
292
|
-
export declare enum QuoteProps {
|
|
293
|
-
/**
|
|
294
|
-
* Only add quotes around object properties where required.
|
|
295
|
-
*/
|
|
296
|
-
ASNEEDED = "as-needed",
|
|
297
|
-
/**
|
|
298
|
-
* If at least one property in an object requires quotes, quote all properties.
|
|
299
|
-
*/
|
|
300
|
-
CONSISTENT = "consistent",
|
|
301
|
-
/**
|
|
302
|
-
* Respect the input use of quotes in object properties.
|
|
303
|
-
*/
|
|
304
|
-
PRESERVE = "preserve"
|
|
305
|
-
}
|
|
306
|
-
export declare enum TrailingComma {
|
|
307
|
-
/**
|
|
308
|
-
* Trailing commas wherever possible (including function arguments).
|
|
309
|
-
*/
|
|
310
|
-
ALL = "all",
|
|
311
|
-
/**
|
|
312
|
-
* Trailing commas where valid in ES5 (objects, arrays, etc.)
|
|
313
|
-
*/
|
|
314
|
-
ES5 = "es5",
|
|
315
|
-
/**
|
|
316
|
-
* No trailing commas.
|
|
317
|
-
*/
|
|
318
|
-
NONE = "none"
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Represents prettier configuration.
|
|
322
|
-
*/
|
|
323
|
-
export declare class Prettier extends Component {
|
|
324
|
-
static of(project: Project): Prettier | undefined;
|
|
325
|
-
/**
|
|
326
|
-
* Direct access to the prettier settings
|
|
327
|
-
*/
|
|
328
|
-
readonly settings: PrettierSettings;
|
|
329
|
-
/**
|
|
330
|
-
* The .prettierIgnore file.
|
|
331
|
-
*/
|
|
332
|
-
readonly ignoreFile?: IgnoreFile;
|
|
333
|
-
/**
|
|
334
|
-
* Direct access to the prettier overrides
|
|
335
|
-
*
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
private readonly _overrides;
|
|
339
|
-
constructor(project: NodeProject, options: PrettierOptions);
|
|
340
|
-
/**
|
|
341
|
-
* Add a prettier override
|
|
342
|
-
* @see https://prettier.io/docs/en/configuration.html#configuration-overrides
|
|
343
|
-
* @param {PrettierOverride} override
|
|
344
|
-
*/
|
|
345
|
-
addOverride(override: PrettierOverride): void;
|
|
346
|
-
/**
|
|
347
|
-
* Defines Prettier ignore Patterns
|
|
348
|
-
* these patterns will be added to the file .prettierignore
|
|
349
|
-
*
|
|
350
|
-
* @param pattern filepatterns so exclude from prettier formatting
|
|
351
|
-
*/
|
|
352
|
-
addIgnorePattern(pattern: string): void;
|
|
353
|
-
/**
|
|
354
|
-
* Returns all Prettier overrides
|
|
355
|
-
*/
|
|
356
|
-
get overrides(): PrettierOverride[];
|
|
357
|
-
preSynthesize(): void;
|
|
358
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Project } from "../project";
|
|
2
|
-
import { ProjenrcFile } from "../projenrc";
|
|
3
|
-
export interface ProjenrcOptions {
|
|
4
|
-
/**
|
|
5
|
-
* The name of the projenrc file.
|
|
6
|
-
* @default ".projenrc.js"
|
|
7
|
-
*/
|
|
8
|
-
readonly filename?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Sets up a javascript project to use TypeScript for projenrc.
|
|
12
|
-
*/
|
|
13
|
-
export declare class Projenrc extends ProjenrcFile {
|
|
14
|
-
readonly filePath: string;
|
|
15
|
-
constructor(project: Project, options?: ProjenrcOptions);
|
|
16
|
-
preSynthesize(): void;
|
|
17
|
-
private generateProjenrc;
|
|
18
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as inventory from "../inventory";
|
|
2
|
-
import { InitProjectOptionHints } from "../option-hints";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `renderProjectOptions`.
|
|
5
|
-
*/
|
|
6
|
-
export interface RenderProjectOptions {
|
|
7
|
-
/**
|
|
8
|
-
* The project type to render.
|
|
9
|
-
*/
|
|
10
|
-
readonly type: inventory.ProjectType;
|
|
11
|
-
/**
|
|
12
|
-
* Project arguments as passed to `projen new`.
|
|
13
|
-
*/
|
|
14
|
-
readonly args: Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* Include commented out options.
|
|
17
|
-
* @default InitProjectOptionHints.FEATURED
|
|
18
|
-
*/
|
|
19
|
-
readonly comments?: InitProjectOptionHints;
|
|
20
|
-
/**
|
|
21
|
-
* Inject a `__new__` attribute to the project constructor with a stringified
|
|
22
|
-
* version of the project parameters and a `jsiiFqn` attribute that includes
|
|
23
|
-
* the FQN of the project type. This is needed in order to generate initial
|
|
24
|
-
* projenrc files.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
readonly bootstrap?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* A list of fields to omit from the initial projenrc file.
|
|
31
|
-
* @default - none
|
|
32
|
-
*/
|
|
33
|
-
readonly omitFromBootstrap?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* Prefix all imports with this string and the full module name
|
|
36
|
-
* This is required when executing options code in a vm
|
|
37
|
-
*
|
|
38
|
-
* @default - only use submodule as prefix
|
|
39
|
-
*/
|
|
40
|
-
readonly prefixImports?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Renders options as if the project was created via `projen new` (embeds the __new__ field).
|
|
44
|
-
*/
|
|
45
|
-
export declare function renderProjenInitOptions(fqn: string, args: Record<string, any>, comments?: InitProjectOptionHints): any;
|
|
46
|
-
export declare function resolveInitProject(opts: any): {
|
|
47
|
-
args: Record<string, any>;
|
|
48
|
-
fqn: string;
|
|
49
|
-
type: inventory.ProjectType;
|
|
50
|
-
comments: InitProjectOptionHints;
|
|
51
|
-
} | undefined;
|
|
52
|
-
export declare class ModuleImports {
|
|
53
|
-
private imports;
|
|
54
|
-
/**
|
|
55
|
-
* Add a named import from a module
|
|
56
|
-
*/
|
|
57
|
-
add(moduleName: string, importName: string): void;
|
|
58
|
-
/**
|
|
59
|
-
* Get all named imports for a module
|
|
60
|
-
*/
|
|
61
|
-
get(moduleName: string): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Get a list of all used modules
|
|
64
|
-
*/
|
|
65
|
-
get modules(): string[];
|
|
66
|
-
/**
|
|
67
|
-
* Return all imports as ESM import statements
|
|
68
|
-
*/
|
|
69
|
-
asEsmImports(): string[];
|
|
70
|
-
/**
|
|
71
|
-
* Return all imports as CJS require statements
|
|
72
|
-
*/
|
|
73
|
-
asCjsRequire(): string[];
|
|
74
|
-
private all;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Prints all parameters that can be used in a project type, alongside their descriptions.
|
|
78
|
-
*
|
|
79
|
-
* Parameters in `params` that aren't undefined are rendered as defaults,
|
|
80
|
-
* while all other parameters are rendered as commented out.
|
|
81
|
-
*
|
|
82
|
-
* Returns the printed output and a set of required imports as an object
|
|
83
|
-
* in the form { options, imports }.
|
|
84
|
-
*/
|
|
85
|
-
export declare function renderJavaScriptOptions(opts: RenderProjectOptions): {
|
|
86
|
-
renderedOptions: string;
|
|
87
|
-
imports: ModuleImports;
|
|
88
|
-
};
|