projen 0.70.2 → 0.70.4

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.
Files changed (321) hide show
  1. package/.jsii +108 -90
  2. package/docs/api/API.md +2 -0
  3. package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +2 -0
  4. package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +129 -0
  5. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +53 -0
  6. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +49 -0
  7. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +81 -0
  8. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +89 -0
  9. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +7 -0
  10. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +7 -0
  11. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +7 -0
  12. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +168 -0
  13. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +5 -0
  14. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +122 -0
  15. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +33 -0
  16. package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +14 -0
  17. package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +46 -0
  18. package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +20 -0
  19. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +68 -0
  20. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +171 -0
  21. package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +180 -0
  22. package/lib/.types-compat/ts3.9/lib/build/index.d.ts +1 -0
  23. package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
  24. package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +45 -0
  25. package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +38 -0
  26. package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +6 -0
  27. package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +5 -0
  28. package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +53 -0
  29. package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +4 -0
  30. package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +20 -0
  31. package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +153 -0
  32. package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +33 -0
  33. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +39 -0
  34. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +45 -0
  35. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +71 -0
  36. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +4 -0
  37. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +4 -0
  38. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +144 -0
  39. package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +7 -0
  40. package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +13 -0
  41. package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +26 -0
  42. package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +1 -0
  43. package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +132 -0
  44. package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +5 -0
  45. package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +3 -0
  46. package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +260 -0
  47. package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +2 -0
  48. package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +9 -0
  49. package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +1 -0
  50. package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +1 -0
  51. package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +19 -0
  52. package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +7 -0
  53. package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +19 -0
  54. package/lib/.types-compat/ts3.9/lib/clobber.d.ts +5 -0
  55. package/lib/.types-compat/ts3.9/lib/common.d.ts +5 -0
  56. package/lib/.types-compat/ts3.9/lib/component.d.ts +20 -0
  57. package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +160 -0
  58. package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +80 -0
  59. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +103 -0
  60. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +44 -0
  61. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +2 -0
  62. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +155 -0
  63. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +64 -0
  64. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +99 -0
  65. package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +5 -0
  66. package/lib/.types-compat/ts3.9/lib/file.d.ts +119 -0
  67. package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +26 -0
  68. package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +28 -0
  69. package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +44 -0
  70. package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +41 -0
  71. package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +20 -0
  72. package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +247 -0
  73. package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +58 -0
  74. package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +177 -0
  75. package/lib/.types-compat/ts3.9/lib/github/github.d.ts +110 -0
  76. package/lib/.types-compat/ts3.9/lib/github/index.d.ts +15 -0
  77. package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +81 -0
  78. package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +19 -0
  79. package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +48 -0
  80. package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +8 -0
  81. package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +85 -0
  82. package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +119 -0
  83. package/lib/.types-compat/ts3.9/lib/github/util.d.ts +1 -0
  84. package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +78 -0
  85. package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +1031 -0
  86. package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +108 -0
  87. package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +536 -0
  88. package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +170 -0
  89. package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +19 -0
  90. package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +4 -0
  91. package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +11 -0
  92. package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +301 -0
  93. package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +59 -0
  94. package/lib/.types-compat/ts3.9/lib/index.d.ts +51 -0
  95. package/lib/.types-compat/ts3.9/lib/ini.d.ts +15 -0
  96. package/lib/.types-compat/ts3.9/lib/inventory.d.ts +46 -0
  97. package/lib/.types-compat/ts3.9/lib/java/index.d.ts +7 -0
  98. package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +141 -0
  99. package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +29 -0
  100. package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +26 -0
  101. package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +34 -0
  102. package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +14 -0
  103. package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +214 -0
  104. package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +59 -0
  105. package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +174 -0
  106. package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +175 -0
  107. package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +10 -0
  108. package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +599 -0
  109. package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +605 -0
  110. package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +464 -0
  111. package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +40 -0
  112. package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +358 -0
  113. package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +18 -0
  114. package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +88 -0
  115. package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +403 -0
  116. package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +188 -0
  117. package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +21 -0
  118. package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +75 -0
  119. package/lib/.types-compat/ts3.9/lib/json.d.ts +27 -0
  120. package/lib/.types-compat/ts3.9/lib/license.d.ts +31 -0
  121. package/lib/.types-compat/ts3.9/lib/logger.d.ts +73 -0
  122. package/lib/.types-compat/ts3.9/lib/logging.d.ts +8 -0
  123. package/lib/.types-compat/ts3.9/lib/makefile.d.ts +77 -0
  124. package/lib/.types-compat/ts3.9/lib/object-file.d.ts +155 -0
  125. package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +18 -0
  126. package/lib/.types-compat/ts3.9/lib/project-build.d.ts +41 -0
  127. package/lib/.types-compat/ts3.9/lib/project.d.ts +374 -0
  128. package/lib/.types-compat/ts3.9/lib/projects.d.ts +63 -0
  129. package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +27 -0
  130. package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +18 -0
  131. package/lib/.types-compat/ts3.9/lib/python/index.d.ts +14 -0
  132. package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +32 -0
  133. package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +177 -0
  134. package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +32 -0
  135. package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +21 -0
  136. package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +24 -0
  137. package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +30 -0
  138. package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +6 -0
  139. package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +62 -0
  140. package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +190 -0
  141. package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +17 -0
  142. package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +29 -0
  143. package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +70 -0
  144. package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +15 -0
  145. package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +28 -0
  146. package/lib/.types-compat/ts3.9/lib/readme.d.ts +28 -0
  147. package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +72 -0
  148. package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +1 -0
  149. package/lib/.types-compat/ts3.9/lib/release/index.d.ts +3 -0
  150. package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +533 -0
  151. package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +97 -0
  152. package/lib/.types-compat/ts3.9/lib/release/release.d.ts +338 -0
  153. package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +1 -0
  154. package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +31 -0
  155. package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +1 -0
  156. package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +36 -0
  157. package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +1 -0
  158. package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +99 -0
  159. package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +1 -0
  160. package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +88 -0
  161. package/lib/.types-compat/ts3.9/lib/semver.d.ts +34 -0
  162. package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +156 -0
  163. package/lib/.types-compat/ts3.9/lib/source-code.d.ts +46 -0
  164. package/lib/.types-compat/ts3.9/lib/task-model.d.ts +130 -0
  165. package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +32 -0
  166. package/lib/.types-compat/ts3.9/lib/task.d.ts +129 -0
  167. package/lib/.types-compat/ts3.9/lib/tasks.d.ts +51 -0
  168. package/lib/.types-compat/ts3.9/lib/testing.d.ts +18 -0
  169. package/lib/.types-compat/ts3.9/lib/textfile.d.ts +33 -0
  170. package/lib/.types-compat/ts3.9/lib/toml.d.ts +15 -0
  171. package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +4 -0
  172. package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +43 -0
  173. package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +27 -0
  174. package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +7 -0
  175. package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +163 -0
  176. package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +43 -0
  177. package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +42 -0
  178. package/lib/.types-compat/ts3.9/lib/util.d.ts +131 -0
  179. package/lib/.types-compat/ts3.9/lib/version.d.ts +45 -0
  180. package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +86 -0
  181. package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +36 -0
  182. package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +5 -0
  183. package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +90 -0
  184. package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +24 -0
  185. package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +14 -0
  186. package/lib/.types-compat/ts3.9/lib/web/index.d.ts +4 -0
  187. package/lib/.types-compat/ts3.9/lib/web/next.d.ts +100 -0
  188. package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +28 -0
  189. package/lib/.types-compat/ts3.9/lib/web/react.d.ts +105 -0
  190. package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +21 -0
  191. package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +18 -0
  192. package/lib/.types-compat/ts3.9/lib/yaml.d.ts +25 -0
  193. package/lib/awscdk/auto-discover.js +5 -5
  194. package/lib/awscdk/awscdk-app-java.js +1 -1
  195. package/lib/awscdk/awscdk-app-py.js +1 -1
  196. package/lib/awscdk/awscdk-app-ts.js +1 -1
  197. package/lib/awscdk/awscdk-construct.js +2 -2
  198. package/lib/awscdk/awscdk-deps-java.js +1 -1
  199. package/lib/awscdk/awscdk-deps-js.js +1 -1
  200. package/lib/awscdk/awscdk-deps-py.js +1 -1
  201. package/lib/awscdk/awscdk-deps.js +1 -1
  202. package/lib/awscdk/cdk-config.js +1 -1
  203. package/lib/awscdk/cdk-tasks.js +1 -1
  204. package/lib/awscdk/integration-test.js +1 -1
  205. package/lib/awscdk/lambda-extension.js +1 -1
  206. package/lib/awscdk/lambda-function.js +2 -2
  207. package/lib/build/build-workflow.js +1 -1
  208. package/lib/cdk/auto-discover-base.js +2 -2
  209. package/lib/cdk/construct-lib.js +1 -1
  210. package/lib/cdk/integration-test-base.js +1 -1
  211. package/lib/cdk/jsii-docgen.js +1 -1
  212. package/lib/cdk/jsii-project.js +8 -5
  213. package/lib/cdk8s/auto-discover.js +2 -2
  214. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  215. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  216. package/lib/cdk8s/cdk8s-construct.js +1 -1
  217. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  218. package/lib/cdk8s/cdk8s-deps.js +1 -1
  219. package/lib/cdk8s/integration-test.js +1 -1
  220. package/lib/cdktf/cdktf-construct.js +1 -1
  221. package/lib/circleci/circleci.js +1 -1
  222. package/lib/cli/index.js +2 -18
  223. package/lib/component.js +1 -1
  224. package/lib/dependencies.js +1 -1
  225. package/lib/dev-env.js +1 -1
  226. package/lib/docker-compose/docker-compose-service.js +1 -1
  227. package/lib/docker-compose/docker-compose.js +1 -1
  228. package/lib/file.js +1 -1
  229. package/lib/gitattributes.js +1 -1
  230. package/lib/github/actions-provider.js +1 -1
  231. package/lib/github/auto-approve.js +1 -1
  232. package/lib/github/auto-merge.js +1 -1
  233. package/lib/github/dependabot.js +1 -1
  234. package/lib/github/github-credentials.js +1 -1
  235. package/lib/github/github-project.js +1 -1
  236. package/lib/github/github.js +1 -1
  237. package/lib/github/mergify.js +1 -1
  238. package/lib/github/pr-template.js +1 -1
  239. package/lib/github/pull-request-lint.js +1 -1
  240. package/lib/github/stale.js +1 -1
  241. package/lib/github/task-workflow.js +1 -1
  242. package/lib/github/workflows.js +1 -1
  243. package/lib/gitlab/configuration.js +1 -1
  244. package/lib/gitlab/gitlab-configuration.js +1 -1
  245. package/lib/gitlab/nested-configuration.js +1 -1
  246. package/lib/gitpod.js +1 -1
  247. package/lib/ignore-file.js +1 -1
  248. package/lib/ini.js +1 -1
  249. package/lib/java/java-project.js +1 -1
  250. package/lib/java/junit.js +1 -1
  251. package/lib/java/maven-compile.js +1 -1
  252. package/lib/java/maven-packaging.js +1 -1
  253. package/lib/java/maven-sample.js +1 -1
  254. package/lib/java/pom.js +1 -1
  255. package/lib/java/projenrc.js +1 -1
  256. package/lib/javascript/bundler.js +1 -1
  257. package/lib/javascript/eslint.js +1 -1
  258. package/lib/javascript/jest.js +4 -4
  259. package/lib/javascript/node-package.js +1 -1
  260. package/lib/javascript/node-project.js +1 -1
  261. package/lib/javascript/npm-config.js +1 -1
  262. package/lib/javascript/prettier.js +1 -1
  263. package/lib/javascript/projenrc.js +1 -1
  264. package/lib/javascript/typescript-config.js +1 -1
  265. package/lib/javascript/upgrade-dependencies.js +2 -2
  266. package/lib/json-patch.js +1 -1
  267. package/lib/json.js +1 -1
  268. package/lib/license.js +1 -1
  269. package/lib/logger.js +1 -1
  270. package/lib/makefile.js +1 -1
  271. package/lib/object-file.js +1 -1
  272. package/lib/project-build.js +1 -1
  273. package/lib/project.js +1 -1
  274. package/lib/projects.js +1 -1
  275. package/lib/projenrc-json.js +2 -2
  276. package/lib/projenrc.js +1 -1
  277. package/lib/python/pip.js +1 -1
  278. package/lib/python/poetry.js +2 -2
  279. package/lib/python/projenrc.js +1 -1
  280. package/lib/python/pytest-sample.js +1 -1
  281. package/lib/python/pytest.js +1 -1
  282. package/lib/python/python-project.js +1 -1
  283. package/lib/python/python-sample.js +1 -1
  284. package/lib/python/requirements-file.js +1 -1
  285. package/lib/python/setuppy.js +1 -1
  286. package/lib/python/setuptools.js +1 -1
  287. package/lib/python/venv.js +1 -1
  288. package/lib/readme.js +1 -1
  289. package/lib/release/publisher.d.ts +7 -0
  290. package/lib/release/publisher.js +9 -2
  291. package/lib/release/release-trigger.js +1 -1
  292. package/lib/release/release.js +3 -2
  293. package/lib/renovatebot.js +1 -1
  294. package/lib/sample-file.js +2 -2
  295. package/lib/semver.js +1 -1
  296. package/lib/source-code.js +1 -1
  297. package/lib/task-runtime.js +1 -1
  298. package/lib/task.js +1 -1
  299. package/lib/tasks.js +1 -1
  300. package/lib/testing.js +1 -1
  301. package/lib/textfile.js +1 -1
  302. package/lib/toml.js +1 -1
  303. package/lib/typescript/projenrc-ts.js +1 -1
  304. package/lib/typescript/projenrc.js +1 -1
  305. package/lib/typescript/typescript-typedoc.js +1 -1
  306. package/lib/typescript/typescript.js +3 -3
  307. package/lib/util.d.ts +19 -0
  308. package/lib/util.js +33 -2
  309. package/lib/version.js +1 -1
  310. package/lib/vscode/devcontainer.js +1 -1
  311. package/lib/vscode/extensions.js +1 -1
  312. package/lib/vscode/launch-config.js +1 -1
  313. package/lib/vscode/settings.js +1 -1
  314. package/lib/vscode/vscode.js +1 -1
  315. package/lib/web/next.js +3 -3
  316. package/lib/web/postcss.js +1 -1
  317. package/lib/web/react.js +4 -4
  318. package/lib/web/tailwind.js +1 -1
  319. package/lib/xmlfile.js +1 -1
  320. package/lib/yaml.js +1 -1
  321. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import { IResolver } from "./file";
2
+ import { ObjectFile, ObjectFileOptions } from "./object-file";
3
+ import { Project } from "./project";
4
+ /**
5
+ * Options for `JsonFile`.
6
+ */
7
+ export interface JsonFileOptions extends ObjectFileOptions {
8
+ /**
9
+ * Adds a newline at the end of the file.
10
+ * @default true
11
+ */
12
+ readonly newline?: boolean;
13
+ /**
14
+ * Allow the use of comments in this file.
15
+ * @default - false for .json files, true for .json5 and .jsonc files
16
+ */
17
+ readonly allowComments?: boolean;
18
+ }
19
+ /**
20
+ * Represents a JSON file.
21
+ */
22
+ export declare class JsonFile extends ObjectFile {
23
+ private readonly newline;
24
+ readonly supportsComments: boolean;
25
+ constructor(project: Project, filePath: string, options: JsonFileOptions);
26
+ protected synthesizeContent(resolver: IResolver): string | undefined;
27
+ }
@@ -0,0 +1,31 @@
1
+ import { FileBase, IResolver } from "./file";
2
+ import { Project } from "./project";
3
+ export interface LicenseOptions {
4
+ /**
5
+ * License type (SPDX).
6
+ *
7
+ * @see https://github.com/projen/projen/tree/main/license-text for list of supported licenses
8
+ */
9
+ readonly spdx: string;
10
+ /**
11
+ * Copyright owner.
12
+ *
13
+ * If the license text has $copyright_owner, this option must be specified.
14
+ *
15
+ * @default -
16
+ */
17
+ readonly copyrightOwner?: string;
18
+ /**
19
+ * Period of license (e.g. "1998-2023")
20
+ *
21
+ * The string `$copyright_period` will be substituted with this string.
22
+ *
23
+ * @default - current year (e.g. "2020")
24
+ */
25
+ readonly copyrightPeriod?: string;
26
+ }
27
+ export declare class License extends FileBase {
28
+ private readonly text;
29
+ constructor(project: Project, options: LicenseOptions);
30
+ protected synthesizeContent(_: IResolver): string | undefined;
31
+ }
@@ -0,0 +1,73 @@
1
+ import { Component } from "./component";
2
+ import { Project } from "./project";
3
+ /**
4
+ * Options for logging utilities.
5
+ */
6
+ export interface LoggerOptions {
7
+ /**
8
+ * The logging verbosity. The levels available (in increasing verbosity) are
9
+ * OFF, ERROR, WARN, INFO, DEBUG, and VERBOSE.
10
+ *
11
+ * @default LogLevel.INFO
12
+ */
13
+ readonly level?: LogLevel;
14
+ /**
15
+ * Include a prefix for all logging messages with the project name.
16
+ *
17
+ * @default false
18
+ */
19
+ readonly usePrefix?: boolean;
20
+ }
21
+ /**
22
+ * Project-level logging utilities.
23
+ */
24
+ export declare class Logger extends Component {
25
+ private readonly level;
26
+ private readonly usePrefix;
27
+ constructor(project: Project, options?: LoggerOptions);
28
+ /**
29
+ * Log a message to stderr with a given logging level. The message will be
30
+ * printed as long as `logger.level` is set to the message's severity or higher.
31
+ *
32
+ * @param level Logging verbosity
33
+ * @param text strings or objects to print
34
+ */
35
+ log(level: LogLevel, ...text: any[]): void;
36
+ /**
37
+ * Log a message to stderr with VERBOSE severity
38
+ * @param text strings or objects to print
39
+ */
40
+ verbose(...text: any[]): void;
41
+ /**
42
+ * Log a message to stderr with DEBUG severity
43
+ * @param text strings or objects to print
44
+ */
45
+ debug(...text: any[]): void;
46
+ /**
47
+ * Log a message to stderr with INFO severity
48
+ * @param text strings or objects to print
49
+ */
50
+ info(...text: any[]): void;
51
+ /**
52
+ * Log a message to stderr with WARN severity
53
+ * @param text strings or objects to print
54
+ */
55
+ warn(...text: any[]): void;
56
+ /**
57
+ * Log a message to stderr with ERROR severity
58
+ * @param text strings or objects to print
59
+ */
60
+ error(...text: any[]): void;
61
+ private colorForLogLevel;
62
+ }
63
+ /**
64
+ * Logging verbosity.
65
+ */
66
+ export declare enum LogLevel {
67
+ OFF = "00.off",
68
+ ERROR = "10.error",
69
+ WARN = "20.warn",
70
+ INFO = "30.info",
71
+ DEBUG = "40.debug",
72
+ VERBOSE = "50.verbose"
73
+ }
@@ -0,0 +1,8 @@
1
+ export declare const ICON = "\uD83D\uDC7E";
2
+ export declare function debug(...text: any[]): void;
3
+ export declare function verbose(...text: any[]): void;
4
+ export declare function info(...text: any[]): void;
5
+ export declare function error(...text: any[]): void;
6
+ export declare function warn(...text: any[]): void;
7
+ export declare function disable(): void;
8
+ export declare function isEnabled(): boolean;
@@ -0,0 +1,77 @@
1
+ import { FileBase, FileBaseOptions, IResolver } from "./file";
2
+ import { Project } from "./project";
3
+ /**
4
+ * A Make rule.
5
+ */
6
+ export interface Rule {
7
+ /**
8
+ * Files to be created or updated by this rule.
9
+ *
10
+ * If the rule is phony then instead this represents the command's name(s).
11
+ */
12
+ readonly targets: string[];
13
+ /**
14
+ * Files that are used as inputs to create a target.
15
+ *
16
+ * @default []
17
+ */
18
+ readonly prerequisites?: string[];
19
+ /**
20
+ * Commands that are run (using prerequisites as inputs) to create a target.
21
+ *
22
+ * @default []
23
+ */
24
+ readonly recipe?: string[];
25
+ /**
26
+ * Marks whether the target is phony.
27
+ *
28
+ * @default false
29
+ */
30
+ readonly phony?: boolean;
31
+ }
32
+ /**
33
+ * Options for Makefiles.
34
+ */
35
+ export interface MakefileOptions extends FileBaseOptions {
36
+ /**
37
+ * List of targets to build when Make is invoked without specifying any targets.
38
+ *
39
+ * @default []
40
+ */
41
+ readonly all?: string[];
42
+ /**
43
+ * Rules to include in the Makefile.
44
+ *
45
+ * @default []
46
+ */
47
+ readonly rules?: Rule[];
48
+ }
49
+ /**
50
+ * Minimal Makefile.
51
+ */
52
+ export declare class Makefile extends FileBase {
53
+ /**
54
+ * List of rule definitions.
55
+ */
56
+ readonly rules: Rule[];
57
+ private readonly all;
58
+ constructor(project: Project, filePath: string, options?: MakefileOptions);
59
+ /**
60
+ * Add a target to all
61
+ */
62
+ addAll(target: string): Makefile;
63
+ /**
64
+ * Add multiple targets to all
65
+ */
66
+ addAlls(...targets: string[]): Makefile;
67
+ /**
68
+ * Add a rule to the Makefile.
69
+ */
70
+ addRule(rule: Rule): Makefile;
71
+ /**
72
+ * Add multiple rules to the Makefile.
73
+ */
74
+ addRules(...rules: Rule[]): Makefile;
75
+ private validateRule;
76
+ protected synthesizeContent(resolver: IResolver): string | undefined;
77
+ }
@@ -0,0 +1,155 @@
1
+ import { FileBase, FileBaseOptions, IResolver } from "./file";
2
+ import { JsonPatch } from "./json-patch";
3
+ import { Project } from "./project";
4
+ /**
5
+ * Options for `ObjectFile`.
6
+ */
7
+ export interface ObjectFileOptions extends FileBaseOptions {
8
+ /**
9
+ * The object that will be serialized. You can modify the object's contents
10
+ * before synthesis.
11
+ *
12
+ * @default {} an empty object (use `file.obj` to mutate).
13
+ */
14
+ readonly obj?: any;
15
+ /**
16
+ * Omits empty objects and arrays.
17
+ * @default false
18
+ */
19
+ readonly omitEmpty?: boolean;
20
+ }
21
+ /**
22
+ * Represents an Object file.
23
+ */
24
+ export declare abstract class ObjectFile extends FileBase {
25
+ /**
26
+ * The output object. This object can be mutated until the project is
27
+ * synthesized.
28
+ */
29
+ private readonly obj;
30
+ /**
31
+ * An object to be merged on top of `obj` after the resolver is called
32
+ */
33
+ private readonly rawOverrides;
34
+ /**
35
+ * Indicates if empty objects and arrays are omitted from the output object.
36
+ */
37
+ readonly omitEmpty: boolean;
38
+ /**
39
+ * patches to be applied to `obj` after the resolver is called
40
+ */
41
+ private readonly patchOperations;
42
+ constructor(project: Project, filePath: string, options: ObjectFileOptions);
43
+ /**
44
+ * Adds an override to the synthesized object file.
45
+ *
46
+ * If the override is nested, separate each nested level using a dot (.) in the path parameter.
47
+ * If there is an array as part of the nesting, specify the index in the path.
48
+ *
49
+ * To include a literal `.` in the property name, prefix with a `\`. In most
50
+ * programming languages you will need to write this as `"\\."` because the
51
+ * `\` itself will need to be escaped.
52
+ *
53
+ * For example,
54
+ * ```typescript
55
+ * project.tsconfig.file.addOverride('compilerOptions.alwaysStrict', true);
56
+ * project.tsconfig.file.addOverride('compilerOptions.lib', ['dom', 'dom.iterable', 'esnext']);
57
+ * ```
58
+ * would add the overrides
59
+ * ```json
60
+ * "compilerOptions": {
61
+ * "alwaysStrict": true,
62
+ * "lib": [
63
+ * "dom",
64
+ * "dom.iterable",
65
+ * "esnext"
66
+ * ]
67
+ * ...
68
+ * }
69
+ * ...
70
+ * ```
71
+ *
72
+ * @param path - The path of the property, you can use dot notation to
73
+ * override values in complex types. Any intermediate keys
74
+ * will be created as needed.
75
+ * @param value - The value. Could be primitive or complex.
76
+ */
77
+ addOverride(path: string, value: any): void;
78
+ /**
79
+ * Adds to an array in the synthesized object file.
80
+ *
81
+ * If the array is nested, separate each nested level using a dot (.) in the path parameter.
82
+ * If there is an array as part of the nesting, specify the index in the path.
83
+ *
84
+ * To include a literal `.` in the property name, prefix with a `\`. In most
85
+ * programming languages you will need to write this as `"\\."` because the
86
+ * `\` itself will need to be escaped.
87
+ *
88
+ * For example, with the following object file
89
+ * ```json
90
+ * "compilerOptions": {
91
+ * "exclude": ["node_modules"],
92
+ * "lib": ["es2019"]
93
+ * ...
94
+ * }
95
+ * ...
96
+ * ```
97
+ *
98
+ * ```typescript
99
+ * project.tsconfig.file.addToArray('compilerOptions.exclude', 'coverage');
100
+ * project.tsconfig.file.addToArray('compilerOptions.lib', 'dom', 'dom.iterable', 'esnext');
101
+ * ```
102
+ * would result in the following object file
103
+ * ```json
104
+ * "compilerOptions": {
105
+ * "exclude": ["node_modules", "coverage"],
106
+ * "lib": ["es2019", "dom", "dom.iterable", "esnext"]
107
+ * ...
108
+ * }
109
+ * ...
110
+ * ```
111
+ *
112
+ * @param path - The path of the property, you can use dot notation to
113
+ * att to arrays in complex types. Any intermediate keys
114
+ * will be created as needed.
115
+ * @param values - The values to add. Could be primitive or complex.
116
+ */
117
+ addToArray(path: string, ...values: any): void;
118
+ /**
119
+ * Applies an RFC 6902 JSON-patch to the synthesized object file.
120
+ * See https://datatracker.ietf.org/doc/html/rfc6902 for more information.
121
+ *
122
+ * For example, with the following object file
123
+ * ```json
124
+ * "compilerOptions": {
125
+ * "exclude": ["node_modules"],
126
+ * "lib": ["es2019"]
127
+ * ...
128
+ * }
129
+ * ...
130
+ * ```
131
+ *
132
+ * ```typescript
133
+ * project.tsconfig.file.patch(JsonPatch.add("/compilerOptions/exclude/-", "coverage"));
134
+ * project.tsconfig.file.patch(JsonPatch.replace("/compilerOptions/lib", ["dom", "dom.iterable", "esnext"]));
135
+ * ```
136
+ * would result in the following object file
137
+ * ```json
138
+ * "compilerOptions": {
139
+ * "exclude": ["node_modules", "coverage"],
140
+ * "lib": ["dom", "dom.iterable", "esnext"]
141
+ * ...
142
+ * }
143
+ * ...
144
+ * ```
145
+ *
146
+ * @param patches - The patch operations to apply
147
+ */
148
+ patch(...patches: JsonPatch[]): void;
149
+ /**
150
+ * Syntactic sugar for `addOverride(path, undefined)`.
151
+ * @param path The path of the value to delete
152
+ */
153
+ addDeletionOverride(path: string): void;
154
+ protected synthesizeContent(resolver: IResolver): string | undefined;
155
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Choices for how to display commented out options in projenrc files.
3
+ * Does not apply to projenrc.json files.
4
+ */
5
+ export declare enum InitProjectOptionHints {
6
+ /**
7
+ * Display all possible options (grouped by which interface they belong to).
8
+ */
9
+ ALL = "all",
10
+ /**
11
+ * Display only featured options, in alphabetical order.
12
+ */
13
+ FEATURED = "featured",
14
+ /**
15
+ * Display no extra options.
16
+ */
17
+ NONE = "none"
18
+ }
@@ -0,0 +1,41 @@
1
+ import { Component } from "./component";
2
+ import { Project } from "./project";
3
+ import { Task } from "./task";
4
+ /**
5
+ * Manages a standard build process for all projects.
6
+ *
7
+ * Build spawns these tasks in order:
8
+ * 1. default
9
+ * 2. pre-compile
10
+ * 3. compile
11
+ * 4. post-compile
12
+ * 5. test
13
+ * 6. package
14
+ */
15
+ export declare class ProjectBuild extends Component {
16
+ /**
17
+ * The task responsible for a full release build.
18
+ */
19
+ readonly buildTask: Task;
20
+ /**
21
+ * Pre-compile task.
22
+ */
23
+ readonly preCompileTask: Task;
24
+ /**
25
+ * Compiles the code. By default for node.js projects this task is empty.
26
+ */
27
+ readonly compileTask: Task;
28
+ /**
29
+ * Post-compile task.
30
+ */
31
+ readonly postCompileTask: Task;
32
+ /**
33
+ * Tests the code.
34
+ */
35
+ readonly testTask: Task;
36
+ /**
37
+ * The "package" task.
38
+ */
39
+ readonly packageTask: Task;
40
+ constructor(project: Project);
41
+ }