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,174 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { Project } from "../project";
|
|
3
|
-
import { Task } from "../task";
|
|
4
|
-
/**
|
|
5
|
-
* Options for `Bundler`.
|
|
6
|
-
*/
|
|
7
|
-
export interface BundlerOptions {
|
|
8
|
-
/**
|
|
9
|
-
* The semantic version requirement for `esbuild`.
|
|
10
|
-
*
|
|
11
|
-
* @default - no specific version (implies latest)
|
|
12
|
-
*/
|
|
13
|
-
readonly esbuildVersion?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Output directory for all bundles.
|
|
16
|
-
* @default "assets"
|
|
17
|
-
*/
|
|
18
|
-
readonly assetsDir?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Install the `bundle` command as a pre-compile phase.
|
|
21
|
-
*
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
readonly addToPreCompile?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Map of file extensions (without dot) and loaders to use for this file type.
|
|
27
|
-
* Loaders are appended to the esbuild command by `--loader:.extension=loader`
|
|
28
|
-
*/
|
|
29
|
-
readonly loaders?: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Adds support for bundling JavaScript applications and dependencies into a
|
|
35
|
-
* single file. In the future, this will also supports bundling websites.
|
|
36
|
-
*/
|
|
37
|
-
export declare class Bundler extends Component {
|
|
38
|
-
/**
|
|
39
|
-
* Returns the `Bundler` instance associated with a project or `undefined` if
|
|
40
|
-
* there is no Bundler.
|
|
41
|
-
* @param project The project
|
|
42
|
-
* @returns A bundler
|
|
43
|
-
*/
|
|
44
|
-
static of(project: Project): Bundler | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* The semantic version requirement for `esbuild` (if defined).
|
|
47
|
-
*/
|
|
48
|
-
readonly esbuildVersion: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Root bundle directory.
|
|
51
|
-
*/
|
|
52
|
-
readonly bundledir: string;
|
|
53
|
-
private _task;
|
|
54
|
-
private readonly addToPreCompile;
|
|
55
|
-
private readonly loaders?;
|
|
56
|
-
/**
|
|
57
|
-
* Creates a `Bundler`.
|
|
58
|
-
*/
|
|
59
|
-
constructor(project: Project, options?: BundlerOptions);
|
|
60
|
-
/**
|
|
61
|
-
* Gets or creates the singleton "bundle" task of the project.
|
|
62
|
-
*
|
|
63
|
-
* If the project doesn't have a "bundle" task, it will be created and spawned
|
|
64
|
-
* during the pre-compile phase.
|
|
65
|
-
*/
|
|
66
|
-
get bundleTask(): Task;
|
|
67
|
-
/**
|
|
68
|
-
* Adds a task to the project which bundles a specific entrypoint and all of
|
|
69
|
-
* its dependencies into a single javascript output file.
|
|
70
|
-
*
|
|
71
|
-
* @param entrypoint The relative path of the artifact within the project
|
|
72
|
-
* @param options Bundling options
|
|
73
|
-
*/
|
|
74
|
-
addBundle(entrypoint: string, options: AddBundleOptions): Bundle;
|
|
75
|
-
/**
|
|
76
|
-
* Add bundling support to a project. This is called implicitly when
|
|
77
|
-
* `bundleTask` is referenced first. It adds the dependency on `esbuild`,
|
|
78
|
-
* gitignore/npmignore, etc.
|
|
79
|
-
*/
|
|
80
|
-
private addBundlingSupport;
|
|
81
|
-
}
|
|
82
|
-
export interface Bundle {
|
|
83
|
-
/**
|
|
84
|
-
* The task that produces this bundle.
|
|
85
|
-
*/
|
|
86
|
-
readonly bundleTask: Task;
|
|
87
|
-
/**
|
|
88
|
-
* The "watch" task for this bundle.
|
|
89
|
-
*/
|
|
90
|
-
readonly watchTask?: Task;
|
|
91
|
-
/**
|
|
92
|
-
* Location of the output file (relative to project root).
|
|
93
|
-
*/
|
|
94
|
-
readonly outfile: string;
|
|
95
|
-
/**
|
|
96
|
-
* Base directory containing the output file (relative to project root).
|
|
97
|
-
*/
|
|
98
|
-
readonly outdir: string;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Options for bundling.
|
|
102
|
-
*/
|
|
103
|
-
export interface BundlingOptions {
|
|
104
|
-
/**
|
|
105
|
-
* You can mark a file or a package as external to exclude it from your build.
|
|
106
|
-
* Instead of being bundled, the import will be preserved (using require for
|
|
107
|
-
* the iife and cjs formats and using import for the esm format) and will be
|
|
108
|
-
* evaluated at run time instead.
|
|
109
|
-
*
|
|
110
|
-
* This has several uses. First of all, it can be used to trim unnecessary
|
|
111
|
-
* code from your bundle for a code path that you know will never be executed.
|
|
112
|
-
* For example, a package may contain code that only runs in node but you will
|
|
113
|
-
* only be using that package in the browser. It can also be used to import
|
|
114
|
-
* code in node at run time from a package that cannot be bundled. For
|
|
115
|
-
* example, the fsevents package contains a native extension, which esbuild
|
|
116
|
-
* doesn't support.
|
|
117
|
-
*
|
|
118
|
-
* @default []
|
|
119
|
-
*/
|
|
120
|
-
readonly externals?: string[];
|
|
121
|
-
/**
|
|
122
|
-
* Include a source map in the bundle.
|
|
123
|
-
*
|
|
124
|
-
* @default false
|
|
125
|
-
*/
|
|
126
|
-
readonly sourcemap?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* In addition to the `bundle:xyz` task, creates `bundle:xyz:watch` task which will
|
|
129
|
-
* invoke the same esbuild command with the `--watch` flag. This can be used
|
|
130
|
-
* to continusouly watch for changes.
|
|
131
|
-
*
|
|
132
|
-
* @default true
|
|
133
|
-
*/
|
|
134
|
-
readonly watchTask?: boolean;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Options for `addBundle()`.
|
|
138
|
-
*/
|
|
139
|
-
export interface AddBundleOptions extends BundlingOptions {
|
|
140
|
-
/**
|
|
141
|
-
* esbuild target.
|
|
142
|
-
*
|
|
143
|
-
* @example "node12"
|
|
144
|
-
*/
|
|
145
|
-
readonly target: string;
|
|
146
|
-
/**
|
|
147
|
-
* esbuild platform.
|
|
148
|
-
*
|
|
149
|
-
* @example "node"
|
|
150
|
-
*/
|
|
151
|
-
readonly platform: string;
|
|
152
|
-
/**
|
|
153
|
-
* Bundler output path relative to the asset's output directory.
|
|
154
|
-
* @default "index.js"
|
|
155
|
-
*/
|
|
156
|
-
readonly outfile?: string;
|
|
157
|
-
/**
|
|
158
|
-
* Mark the output file as executable.
|
|
159
|
-
* @default false
|
|
160
|
-
*/
|
|
161
|
-
readonly executable?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* The path of the tsconfig.json file to use for bundling
|
|
164
|
-
* @default "tsconfig.json"
|
|
165
|
-
*/
|
|
166
|
-
readonly tsconfigPath?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Map of file extensions (without dot) and loaders to use for this file type.
|
|
169
|
-
* Loaders are appended to the esbuild command by `--loader:.extension=loader`
|
|
170
|
-
*/
|
|
171
|
-
readonly loaders?: {
|
|
172
|
-
[key: string]: string;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { Project } from "..";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
import { NodeProject } from "../javascript";
|
|
4
|
-
import { Task } from "../task";
|
|
5
|
-
export interface EslintOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Path to `tsconfig.json` which should be used by eslint.
|
|
8
|
-
* @default "./tsconfig.json"
|
|
9
|
-
*/
|
|
10
|
-
readonly tsconfigPath?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Files or glob patterns or directories with source files to lint (e.g. [ "src" ])
|
|
13
|
-
*/
|
|
14
|
-
readonly dirs: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Files or glob patterns or directories with source files that include tests and build tools
|
|
17
|
-
*
|
|
18
|
-
* These sources are linted but may also import packages from `devDependencies`.
|
|
19
|
-
* @default []
|
|
20
|
-
*/
|
|
21
|
-
readonly devdirs?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* File types that should be linted (e.g. [ ".js", ".ts" ])
|
|
24
|
-
* @default [".ts"]
|
|
25
|
-
*/
|
|
26
|
-
readonly fileExtensions?: string[];
|
|
27
|
-
/**
|
|
28
|
-
* List of file patterns that should not be linted, using the same syntax
|
|
29
|
-
* as .gitignore patterns.
|
|
30
|
-
*
|
|
31
|
-
* @default [ '*.js', '*.d.ts', 'node_modules/', '*.generated.ts', 'coverage' ]
|
|
32
|
-
*/
|
|
33
|
-
readonly ignorePatterns?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* Projenrc file to lint. Use empty string to disable.
|
|
36
|
-
* @default PROJEN_RC
|
|
37
|
-
* @deprecated provide as `devdirs`
|
|
38
|
-
*/
|
|
39
|
-
readonly lintProjenRcFile?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Should we lint .projenrc.js
|
|
42
|
-
*
|
|
43
|
-
* @default true
|
|
44
|
-
* @deprecated set to `false` to remove any automatic rules and add manually
|
|
45
|
-
*/
|
|
46
|
-
readonly lintProjenRc?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Enable prettier for code formatting
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
readonly prettier?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Enable import alias for module paths
|
|
54
|
-
* @default undefined
|
|
55
|
-
*/
|
|
56
|
-
readonly aliasMap?: {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Enable import alias for module paths
|
|
61
|
-
* @default undefined
|
|
62
|
-
*/
|
|
63
|
-
readonly aliasExtensions?: string[];
|
|
64
|
-
/**
|
|
65
|
-
* Always try to resolve types under `<root>@types` directory even it doesn't contain any source code.
|
|
66
|
-
* This prevents `import/no-unresolved` eslint errors when importing a `@types/*` module that would otherwise remain unresolved.
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
readonly tsAlwaysTryTypes?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Write eslint configuration as YAML instead of JSON
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
readonly yaml?: boolean;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* eslint rules override
|
|
78
|
-
*/
|
|
79
|
-
export interface EslintOverride {
|
|
80
|
-
/**
|
|
81
|
-
* Files or file patterns on which to apply the override
|
|
82
|
-
*/
|
|
83
|
-
readonly files: string[];
|
|
84
|
-
/**
|
|
85
|
-
* The overriden rules
|
|
86
|
-
*/
|
|
87
|
-
readonly rules?: {
|
|
88
|
-
[rule: string]: any;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* The overridden parser
|
|
92
|
-
*/
|
|
93
|
-
readonly parser?: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Represents eslint configuration.
|
|
97
|
-
*/
|
|
98
|
-
export declare class Eslint extends Component {
|
|
99
|
-
/**
|
|
100
|
-
* Returns the singletone Eslint component of a project or undefined if there is none.
|
|
101
|
-
*/
|
|
102
|
-
static of(project: Project): Eslint | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* eslint rules.
|
|
105
|
-
*/
|
|
106
|
-
readonly rules: {
|
|
107
|
-
[rule: string]: any[];
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* eslint overrides.
|
|
111
|
-
*/
|
|
112
|
-
readonly overrides: EslintOverride[];
|
|
113
|
-
/**
|
|
114
|
-
* eslint task.
|
|
115
|
-
*/
|
|
116
|
-
readonly eslintTask: Task;
|
|
117
|
-
/**
|
|
118
|
-
* Direct access to the eslint configuration (escape hatch)
|
|
119
|
-
*/
|
|
120
|
-
readonly config: any;
|
|
121
|
-
/**
|
|
122
|
-
* File patterns that should not be linted
|
|
123
|
-
*/
|
|
124
|
-
readonly ignorePatterns: string[];
|
|
125
|
-
private _formattingRules;
|
|
126
|
-
private readonly _allowDevDeps;
|
|
127
|
-
private readonly _plugins;
|
|
128
|
-
private readonly _extends;
|
|
129
|
-
private readonly _fileExtensions;
|
|
130
|
-
private readonly _lintPatterns;
|
|
131
|
-
private readonly nodeProject;
|
|
132
|
-
constructor(project: NodeProject, options: EslintOptions);
|
|
133
|
-
/**
|
|
134
|
-
* Add a file, glob pattern or directory with source files to lint (e.g. [ "src" ])
|
|
135
|
-
*/
|
|
136
|
-
addLintPattern(pattern: string): void;
|
|
137
|
-
/**
|
|
138
|
-
* Add an eslint rule.
|
|
139
|
-
*/
|
|
140
|
-
addRules(rules: {
|
|
141
|
-
[rule: string]: any;
|
|
142
|
-
}): void;
|
|
143
|
-
/**
|
|
144
|
-
* Adds an eslint plugin
|
|
145
|
-
* @param plugins The names of plugins to add
|
|
146
|
-
*/
|
|
147
|
-
addPlugins(...plugins: string[]): void;
|
|
148
|
-
/**
|
|
149
|
-
* Add an eslint override.
|
|
150
|
-
*/
|
|
151
|
-
addOverride(override: EslintOverride): void;
|
|
152
|
-
/**
|
|
153
|
-
* Do not lint these files.
|
|
154
|
-
*/
|
|
155
|
-
addIgnorePattern(pattern: string): void;
|
|
156
|
-
/**
|
|
157
|
-
* Adds an `extends` item to the eslint configuration.
|
|
158
|
-
* @param extendList The list of "extends" to add.
|
|
159
|
-
*/
|
|
160
|
-
addExtends(...extendList: string[]): void;
|
|
161
|
-
/**
|
|
162
|
-
* Add a glob file pattern which allows importing dev dependencies.
|
|
163
|
-
* @param pattern glob pattern.
|
|
164
|
-
*/
|
|
165
|
-
allowDevDeps(pattern: string): void;
|
|
166
|
-
/**
|
|
167
|
-
* Enables prettier for code formatting.
|
|
168
|
-
*/
|
|
169
|
-
private enablePrettier;
|
|
170
|
-
private renderDevDepsAllowList;
|
|
171
|
-
/**
|
|
172
|
-
* Update the task with the current list of lint patterns and file extensions
|
|
173
|
-
*/
|
|
174
|
-
private updateTask;
|
|
175
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./bundler";
|
|
2
|
-
export * from "./eslint";
|
|
3
|
-
export * from "./jest";
|
|
4
|
-
export * from "./node-package";
|
|
5
|
-
export * from "./node-project";
|
|
6
|
-
export * from "./npm-config";
|
|
7
|
-
export * from "./prettier";
|
|
8
|
-
export * from "./projenrc";
|
|
9
|
-
export * from "./typescript-config";
|
|
10
|
-
export * from "./upgrade-dependencies";
|