projen 0.33.8 → 0.34.1

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 (105) hide show
  1. package/.jsii +438 -252
  2. package/API.md +137 -84
  3. package/docs/aws-lambda.md +5 -4
  4. package/docs/bundling.md +30 -0
  5. package/lib/awscdk/auto-discover.d.ts +0 -13
  6. package/lib/awscdk/auto-discover.js +5 -15
  7. package/lib/awscdk/cdk-config.js +1 -1
  8. package/lib/awscdk/cdk-tasks.js +1 -1
  9. package/lib/awscdk/java-app.js +1 -1
  10. package/lib/awscdk/lambda-function.d.ts +16 -26
  11. package/lib/awscdk/lambda-function.js +29 -27
  12. package/lib/awscdk-app-ts.js +2 -3
  13. package/lib/awscdk-construct.js +3 -4
  14. package/lib/cdk8s-app-ts.js +1 -1
  15. package/lib/cdk8s-construct.js +1 -1
  16. package/lib/cdktf-construct.js +1 -1
  17. package/lib/component.js +1 -1
  18. package/lib/construct-lib.js +1 -1
  19. package/lib/deps/dependencies.js +1 -1
  20. package/lib/dev-env.js +1 -1
  21. package/lib/docker-compose.js +2 -2
  22. package/lib/eslint.js +1 -1
  23. package/lib/file.js +1 -1
  24. package/lib/git/gitattributes.js +1 -1
  25. package/lib/github/auto-approve.js +1 -1
  26. package/lib/github/auto-merge.js +1 -1
  27. package/lib/github/dependabot.js +1 -1
  28. package/lib/github/github.d.ts +15 -0
  29. package/lib/github/github.js +7 -3
  30. package/lib/github/index.d.ts +1 -0
  31. package/lib/github/index.js +2 -1
  32. package/lib/github/mergify.js +1 -1
  33. package/lib/github/pr-template.js +1 -1
  34. package/lib/github/pull-request-lint.d.ts +61 -0
  35. package/lib/github/pull-request-lint.js +62 -0
  36. package/lib/github/stale.js +1 -1
  37. package/lib/github/task-workflow.js +1 -1
  38. package/lib/github/workflows.js +1 -1
  39. package/lib/gitpod.js +1 -1
  40. package/lib/ignore-file.js +1 -1
  41. package/lib/ini.js +1 -1
  42. package/lib/java/java-project.js +1 -1
  43. package/lib/java/junit.js +1 -1
  44. package/lib/java/maven-compile.js +1 -1
  45. package/lib/java/maven-packaging.js +1 -1
  46. package/lib/java/maven-sample.js +1 -1
  47. package/lib/java/pom.js +1 -1
  48. package/lib/java/projenrc.js +1 -1
  49. package/lib/javascript/bundler.d.ts +69 -33
  50. package/lib/javascript/bundler.js +43 -17
  51. package/lib/javascript/npm-config.js +1 -1
  52. package/lib/javascript/projenrc.js +1 -1
  53. package/lib/javascript/util.d.ts +1 -0
  54. package/lib/javascript/util.js +16 -0
  55. package/lib/jest.js +1 -1
  56. package/lib/jsii-project.js +1 -1
  57. package/lib/json/projenrc.js +1 -1
  58. package/lib/json.js +1 -1
  59. package/lib/license.js +1 -1
  60. package/lib/logger.js +1 -1
  61. package/lib/makefile.js +1 -1
  62. package/lib/node-package.js +1 -1
  63. package/lib/node-project.d.ts +2 -2
  64. package/lib/node-project.js +2 -2
  65. package/lib/object-file.js +1 -1
  66. package/lib/project-build.js +1 -1
  67. package/lib/project.js +6 -5
  68. package/lib/projects.js +1 -1
  69. package/lib/python/pip.js +1 -1
  70. package/lib/python/poetry.js +2 -2
  71. package/lib/python/projenrc.js +1 -1
  72. package/lib/python/pytest.js +1 -1
  73. package/lib/python/python-project.js +1 -1
  74. package/lib/python/python-sample.js +1 -1
  75. package/lib/python/requirements-file.js +1 -1
  76. package/lib/python/setuppy.js +1 -1
  77. package/lib/python/setuptools.js +1 -1
  78. package/lib/python/venv.js +1 -1
  79. package/lib/readme.js +1 -1
  80. package/lib/release/publisher.js +1 -1
  81. package/lib/release/release-trigger.js +1 -1
  82. package/lib/release/release.js +1 -1
  83. package/lib/sample-file.js +2 -2
  84. package/lib/semver.js +1 -1
  85. package/lib/source-code.js +1 -1
  86. package/lib/tasks/runtime.js +1 -1
  87. package/lib/tasks/task.js +1 -1
  88. package/lib/tasks/tasks.js +1 -1
  89. package/lib/textfile.js +1 -1
  90. package/lib/toml.js +1 -1
  91. package/lib/typescript/projenrc.js +1 -1
  92. package/lib/typescript-config.js +1 -1
  93. package/lib/typescript.js +3 -3
  94. package/lib/upgrade-dependencies.js +2 -2
  95. package/lib/version.js +1 -1
  96. package/lib/vscode/devcontainer.js +1 -1
  97. package/lib/vscode/launch-config.js +1 -1
  98. package/lib/vscode/vscode.js +1 -1
  99. package/lib/web/next.js +3 -3
  100. package/lib/web/postcss.js +1 -1
  101. package/lib/web/react.js +4 -4
  102. package/lib/web/tailwind.js +1 -1
  103. package/lib/xmlfile.js +1 -1
  104. package/lib/yaml.js +1 -1
  105. package/package.json +5 -5
package/.jsii CHANGED
@@ -28,7 +28,7 @@
28
28
  "stability": "experimental"
29
29
  },
30
30
  "homepage": "https://github.com/projen/projen.git",
31
- "jsiiVersion": "1.43.0 (build b69a797)",
31
+ "jsiiVersion": "1.44.0 (build 5cf3021)",
32
32
  "license": "Apache-2.0",
33
33
  "metadata": {
34
34
  "jsii": {
@@ -74,7 +74,7 @@
74
74
  "projen.github.workflows": {
75
75
  "locationInModule": {
76
76
  "filename": "src/github/index.ts",
77
- "line": 14
77
+ "line": 15
78
78
  }
79
79
  },
80
80
  "projen.java": {
@@ -223,7 +223,7 @@
223
223
  },
224
224
  "locationInModule": {
225
225
  "filename": "src/awscdk-construct.ts",
226
- "line": 178
226
+ "line": 177
227
227
  },
228
228
  "name": "addCdkDependencies",
229
229
  "parameters": [
@@ -247,7 +247,7 @@
247
247
  },
248
248
  "locationInModule": {
249
249
  "filename": "src/awscdk-construct.ts",
250
- "line": 194
250
+ "line": 193
251
251
  },
252
252
  "name": "addCdkTestDependencies",
253
253
  "parameters": [
@@ -305,7 +305,7 @@
305
305
  "immutable": true,
306
306
  "locationInModule": {
307
307
  "filename": "src/awscdk-construct.ts",
308
- "line": 161
308
+ "line": 160
309
309
  },
310
310
  "name": "version",
311
311
  "type": {
@@ -558,7 +558,7 @@
558
558
  },
559
559
  "locationInModule": {
560
560
  "filename": "src/awscdk-app-ts.ts",
561
- "line": 166
561
+ "line": 165
562
562
  },
563
563
  "name": "addCdkDependency",
564
564
  "parameters": [
@@ -1334,7 +1334,7 @@
1334
1334
  "kind": "class",
1335
1335
  "locationInModule": {
1336
1336
  "filename": "src/awscdk-construct.ts",
1337
- "line": 207
1337
+ "line": 206
1338
1338
  },
1339
1339
  "name": "ConstructLibraryAws",
1340
1340
  "symbolId": "src/awscdk-construct:ConstructLibraryAws"
@@ -1353,7 +1353,7 @@
1353
1353
  "kind": "interface",
1354
1354
  "locationInModule": {
1355
1355
  "filename": "src/awscdk-construct.ts",
1356
- "line": 204
1356
+ "line": 203
1357
1357
  },
1358
1358
  "name": "ConstructLibraryAwsOptions",
1359
1359
  "symbolId": "src/awscdk-construct:ConstructLibraryAwsOptions"
@@ -4077,7 +4077,7 @@
4077
4077
  },
4078
4078
  "locationInModule": {
4079
4079
  "filename": "src/project.ts",
4080
- "line": 716
4080
+ "line": 717
4081
4081
  },
4082
4082
  "parameters": [
4083
4083
  {
@@ -4091,7 +4091,7 @@
4091
4091
  "kind": "class",
4092
4092
  "locationInModule": {
4093
4093
  "filename": "src/project.ts",
4094
- "line": 675
4094
+ "line": 676
4095
4095
  },
4096
4096
  "methods": [
4097
4097
  {
@@ -4103,7 +4103,7 @@
4103
4103
  },
4104
4104
  "locationInModule": {
4105
4105
  "filename": "src/project.ts",
4106
- "line": 759
4106
+ "line": 760
4107
4107
  },
4108
4108
  "name": "annotateGenerated",
4109
4109
  "overrides": "projen.Project",
@@ -4129,7 +4129,7 @@
4129
4129
  "immutable": true,
4130
4130
  "locationInModule": {
4131
4131
  "filename": "src/project.ts",
4132
- "line": 709
4132
+ "line": 710
4133
4133
  },
4134
4134
  "name": "projectType",
4135
4135
  "type": {
@@ -4144,7 +4144,7 @@
4144
4144
  "immutable": true,
4145
4145
  "locationInModule": {
4146
4146
  "filename": "src/project.ts",
4147
- "line": 714
4147
+ "line": 715
4148
4148
  },
4149
4149
  "name": "autoApprove",
4150
4150
  "optional": true,
@@ -4161,7 +4161,7 @@
4161
4161
  "immutable": true,
4162
4162
  "locationInModule": {
4163
4163
  "filename": "src/project.ts",
4164
- "line": 702
4164
+ "line": 703
4165
4165
  },
4166
4166
  "name": "devContainer",
4167
4167
  "optional": true,
@@ -4178,7 +4178,7 @@
4178
4178
  "immutable": true,
4179
4179
  "locationInModule": {
4180
4180
  "filename": "src/project.ts",
4181
- "line": 681
4181
+ "line": 682
4182
4182
  },
4183
4183
  "name": "github",
4184
4184
  "optional": true,
@@ -4195,7 +4195,7 @@
4195
4195
  "immutable": true,
4196
4196
  "locationInModule": {
4197
4197
  "filename": "src/project.ts",
4198
- "line": 695
4198
+ "line": 696
4199
4199
  },
4200
4200
  "name": "gitpod",
4201
4201
  "optional": true,
@@ -4212,7 +4212,7 @@
4212
4212
  "immutable": true,
4213
4213
  "locationInModule": {
4214
4214
  "filename": "src/project.ts",
4215
- "line": 688
4215
+ "line": 689
4216
4216
  },
4217
4217
  "name": "vscode",
4218
4218
  "optional": true,
@@ -4237,7 +4237,7 @@
4237
4237
  "kind": "interface",
4238
4238
  "locationInModule": {
4239
4239
  "filename": "src/project.ts",
4240
- "line": 560
4240
+ "line": 561
4241
4241
  },
4242
4242
  "name": "GitHubProjectOptions",
4243
4243
  "properties": [
@@ -4251,7 +4251,7 @@
4251
4251
  "immutable": true,
4252
4252
  "locationInModule": {
4253
4253
  "filename": "src/project.ts",
4254
- "line": 641
4254
+ "line": 642
4255
4255
  },
4256
4256
  "name": "autoApproveOptions",
4257
4257
  "optional": true,
@@ -4270,7 +4270,7 @@
4270
4270
  "immutable": true,
4271
4271
  "locationInModule": {
4272
4272
  "filename": "src/project.ts",
4273
- "line": 649
4273
+ "line": 650
4274
4274
  },
4275
4275
  "name": "autoMergeOptions",
4276
4276
  "optional": true,
@@ -4288,7 +4288,7 @@
4288
4288
  "immutable": true,
4289
4289
  "locationInModule": {
4290
4290
  "filename": "src/project.ts",
4291
- "line": 620
4291
+ "line": 621
4292
4292
  },
4293
4293
  "name": "clobber",
4294
4294
  "optional": true,
@@ -4306,7 +4306,7 @@
4306
4306
  "immutable": true,
4307
4307
  "locationInModule": {
4308
4308
  "filename": "src/project.ts",
4309
- "line": 614
4309
+ "line": 615
4310
4310
  },
4311
4311
  "name": "devContainer",
4312
4312
  "optional": true,
@@ -4325,7 +4325,7 @@
4325
4325
  "immutable": true,
4326
4326
  "locationInModule": {
4327
4327
  "filename": "src/project.ts",
4328
- "line": 584
4328
+ "line": 585
4329
4329
  },
4330
4330
  "name": "github",
4331
4331
  "optional": true,
@@ -4343,7 +4343,7 @@
4343
4343
  "immutable": true,
4344
4344
  "locationInModule": {
4345
4345
  "filename": "src/project.ts",
4346
- "line": 591
4346
+ "line": 592
4347
4347
  },
4348
4348
  "name": "githubOptions",
4349
4349
  "optional": true,
@@ -4361,7 +4361,7 @@
4361
4361
  "immutable": true,
4362
4362
  "locationInModule": {
4363
4363
  "filename": "src/project.ts",
4364
- "line": 566
4364
+ "line": 567
4365
4365
  },
4366
4366
  "name": "gitpod",
4367
4367
  "optional": true,
@@ -4380,7 +4380,7 @@
4380
4380
  "immutable": true,
4381
4381
  "locationInModule": {
4382
4382
  "filename": "src/project.ts",
4383
- "line": 599
4383
+ "line": 600
4384
4384
  },
4385
4385
  "name": "mergify",
4386
4386
  "optional": true,
@@ -4399,7 +4399,7 @@
4399
4399
  "immutable": true,
4400
4400
  "locationInModule": {
4401
4401
  "filename": "src/project.ts",
4402
- "line": 607
4402
+ "line": 608
4403
4403
  },
4404
4404
  "name": "mergifyOptions",
4405
4405
  "optional": true,
@@ -4418,7 +4418,7 @@
4418
4418
  "immutable": true,
4419
4419
  "locationInModule": {
4420
4420
  "filename": "src/project.ts",
4421
- "line": 635
4421
+ "line": 636
4422
4422
  },
4423
4423
  "name": "projectType",
4424
4424
  "optional": true,
@@ -4437,7 +4437,7 @@
4437
4437
  "immutable": true,
4438
4438
  "locationInModule": {
4439
4439
  "filename": "src/project.ts",
4440
- "line": 628
4440
+ "line": 629
4441
4441
  },
4442
4442
  "name": "readme",
4443
4443
  "optional": true,
@@ -4456,7 +4456,7 @@
4456
4456
  "immutable": true,
4457
4457
  "locationInModule": {
4458
4458
  "filename": "src/project.ts",
4459
- "line": 663
4459
+ "line": 664
4460
4460
  },
4461
4461
  "name": "stale",
4462
4462
  "optional": true,
@@ -4475,7 +4475,7 @@
4475
4475
  "immutable": true,
4476
4476
  "locationInModule": {
4477
4477
  "filename": "src/project.ts",
4478
- "line": 656
4478
+ "line": 657
4479
4479
  },
4480
4480
  "name": "staleOptions",
4481
4481
  "optional": true,
@@ -4494,7 +4494,7 @@
4494
4494
  "immutable": true,
4495
4495
  "locationInModule": {
4496
4496
  "filename": "src/project.ts",
4497
- "line": 575
4497
+ "line": 576
4498
4498
  },
4499
4499
  "name": "vscode",
4500
4500
  "optional": true,
@@ -9073,7 +9073,7 @@
9073
9073
  "kind": "interface",
9074
9074
  "locationInModule": {
9075
9075
  "filename": "src/project.ts",
9076
- "line": 534
9076
+ "line": 535
9077
9077
  },
9078
9078
  "name": "NewProject",
9079
9079
  "properties": [
@@ -9086,7 +9086,7 @@
9086
9086
  "immutable": true,
9087
9087
  "locationInModule": {
9088
9088
  "filename": "src/project.ts",
9089
- "line": 543
9089
+ "line": 544
9090
9090
  },
9091
9091
  "name": "args",
9092
9092
  "type": {
@@ -9109,7 +9109,7 @@
9109
9109
  "immutable": true,
9110
9110
  "locationInModule": {
9111
9111
  "filename": "src/project.ts",
9112
- "line": 554
9112
+ "line": 555
9113
9113
  },
9114
9114
  "name": "comments",
9115
9115
  "type": {
@@ -9125,7 +9125,7 @@
9125
9125
  "immutable": true,
9126
9126
  "locationInModule": {
9127
9127
  "filename": "src/project.ts",
9128
- "line": 538
9128
+ "line": 539
9129
9129
  },
9130
9130
  "name": "fqn",
9131
9131
  "type": {
@@ -9141,7 +9141,7 @@
9141
9141
  "immutable": true,
9142
9142
  "locationInModule": {
9143
9143
  "filename": "src/project.ts",
9144
- "line": 548
9144
+ "line": 549
9145
9145
  },
9146
9146
  "name": "type",
9147
9147
  "type": {
@@ -11387,7 +11387,7 @@
11387
11387
  "name": "bundlerOptions",
11388
11388
  "optional": true,
11389
11389
  "type": {
11390
- "fqn": "projen.javascript.BundlerCommonOptions"
11390
+ "fqn": "projen.javascript.BundlerOptions"
11391
11391
  }
11392
11392
  },
11393
11393
  {
@@ -13305,7 +13305,7 @@
13305
13305
  "kind": "enum",
13306
13306
  "locationInModule": {
13307
13307
  "filename": "src/project.ts",
13308
- "line": 511
13308
+ "line": 512
13309
13309
  },
13310
13310
  "members": [
13311
13311
  {
@@ -17169,7 +17169,7 @@
17169
17169
  },
17170
17170
  "locationInModule": {
17171
17171
  "filename": "src/awscdk/auto-discover.ts",
17172
- "line": 35
17172
+ "line": 30
17173
17173
  },
17174
17174
  "parameters": [
17175
17175
  {
@@ -17189,22 +17189,8 @@
17189
17189
  "kind": "class",
17190
17190
  "locationInModule": {
17191
17191
  "filename": "src/awscdk/auto-discover.ts",
17192
- "line": 32
17192
+ "line": 27
17193
17193
  },
17194
- "methods": [
17195
- {
17196
- "docs": {
17197
- "stability": "experimental",
17198
- "summary": "Called before synthesis."
17199
- },
17200
- "locationInModule": {
17201
- "filename": "src/awscdk/auto-discover.ts",
17202
- "line": 41
17203
- },
17204
- "name": "preSynthesize",
17205
- "overrides": "projen.Component"
17206
- }
17207
- ],
17208
17194
  "name": "AutoDiscover",
17209
17195
  "namespace": "awscdk",
17210
17196
  "symbolId": "src/awscdk/auto-discover:AutoDiscover"
@@ -17225,22 +17211,6 @@
17225
17211
  "name": "AutoDiscoverOptions",
17226
17212
  "namespace": "awscdk",
17227
17213
  "properties": [
17228
- {
17229
- "abstract": true,
17230
- "docs": {
17231
- "stability": "experimental",
17232
- "summary": "Output directory (where .js files go)."
17233
- },
17234
- "immutable": true,
17235
- "locationInModule": {
17236
- "filename": "src/awscdk/auto-discover.ts",
17237
- "line": 25
17238
- },
17239
- "name": "libdir",
17240
- "type": {
17241
- "primitive": "string"
17242
- }
17243
- },
17244
17214
  {
17245
17215
  "abstract": true,
17246
17216
  "docs": {
@@ -17821,7 +17791,7 @@
17821
17791
  "assembly": "projen",
17822
17792
  "base": "projen.Component",
17823
17793
  "docs": {
17824
- "example": "new LambdaFunction(myProject, {\n entrypoint: 'src/foo.lambda.ts',\n srcdir: myProject.srcdir,\n libdir: myProject.libdir,\n});",
17794
+ "example": "new LambdaFunction(myProject, {\n srcdir: myProject.srcdir,\n entrypoint: 'src/foo.lambda.ts',\n});",
17825
17795
  "remarks": "To use this, create an AWS Lambda handler file under your source tree with\nthe `.lambda.ts` extension and add a `LambdaFunction` component to your\ntypescript project pointing to this entrypoint.\n\nThis will add a task to your \"compile\" step which will use `esbuild` to\nbundle the handler code into the build directory. It will also generate a\nfile `src/foo-function.ts` with a custom AWS construct called `FooFunction`\nwhich extends `@aws-cdk/aws-lambda.Function` which is bound to the bundled\nhandle through an asset.",
17826
17796
  "stability": "experimental",
17827
17797
  "summary": "Generates a pre-bundled AWS Lambda function construct from handler code."
@@ -17834,7 +17804,7 @@
17834
17804
  },
17835
17805
  "locationInModule": {
17836
17806
  "filename": "src/awscdk/lambda-function.ts",
17837
- "line": 103
17807
+ "line": 92
17838
17808
  },
17839
17809
  "parameters": [
17840
17810
  {
@@ -17860,27 +17830,10 @@
17860
17830
  "kind": "class",
17861
17831
  "locationInModule": {
17862
17832
  "filename": "src/awscdk/lambda-function.ts",
17863
- "line": 91
17833
+ "line": 85
17864
17834
  },
17865
17835
  "name": "LambdaFunction",
17866
17836
  "namespace": "awscdk",
17867
- "properties": [
17868
- {
17869
- "docs": {
17870
- "stability": "experimental",
17871
- "summary": "The bundle task for this function."
17872
- },
17873
- "immutable": true,
17874
- "locationInModule": {
17875
- "filename": "src/awscdk/lambda-function.ts",
17876
- "line": 95
17877
- },
17878
- "name": "bundleTask",
17879
- "type": {
17880
- "fqn": "projen.tasks.Task"
17881
- }
17882
- }
17883
- ],
17884
17837
  "symbolId": "src/awscdk/lambda-function:LambdaFunction"
17885
17838
  },
17886
17839
  "projen.awscdk.LambdaFunctionCommonOptions": {
@@ -17895,7 +17848,7 @@
17895
17848
  "kind": "interface",
17896
17849
  "locationInModule": {
17897
17850
  "filename": "src/awscdk/lambda-function.ts",
17898
- "line": 15
17851
+ "line": 14
17899
17852
  },
17900
17853
  "name": "LambdaFunctionCommonOptions",
17901
17854
  "namespace": "awscdk",
@@ -17903,24 +17856,20 @@
17903
17856
  {
17904
17857
  "abstract": true,
17905
17858
  "docs": {
17906
- "default": "- by default, the \"aws-sdk\" module will be excluded from the\nbundle. Note that if you use this option you will need to add \"aws-sdk\"\nexplicitly.",
17859
+ "default": "- defaults",
17860
+ "remarks": "If not specified the default bundling options specified for the project\n`Bundler` instance will be used.",
17907
17861
  "stability": "experimental",
17908
- "summary": "Names of modules which should not be included in the bundle."
17862
+ "summary": "Bundling options for this AWS Lambda function."
17909
17863
  },
17910
17864
  "immutable": true,
17911
17865
  "locationInModule": {
17912
17866
  "filename": "src/awscdk/lambda-function.ts",
17913
17867
  "line": 30
17914
17868
  },
17915
- "name": "externals",
17869
+ "name": "bundlingOptions",
17916
17870
  "optional": true,
17917
17871
  "type": {
17918
- "collection": {
17919
- "elementtype": {
17920
- "primitive": "string"
17921
- },
17922
- "kind": "array"
17923
- }
17872
+ "fqn": "projen.javascript.BundlingOptions"
17924
17873
  }
17925
17874
  },
17926
17875
  {
@@ -17933,7 +17882,7 @@
17933
17882
  "immutable": true,
17934
17883
  "locationInModule": {
17935
17884
  "filename": "src/awscdk/lambda-function.ts",
17936
- "line": 21
17885
+ "line": 20
17937
17886
  },
17938
17887
  "name": "runtime",
17939
17888
  "optional": true,
@@ -17966,62 +17915,33 @@
17966
17915
  {
17967
17916
  "abstract": true,
17968
17917
  "docs": {
17918
+ "example": "\"src/subdir/foo.lambda.ts\"",
17919
+ "remarks": "This is relative to the root directory of the project.",
17969
17920
  "stability": "experimental",
17970
17921
  "summary": "A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports a `handler` function)."
17971
17922
  },
17972
17923
  "immutable": true,
17973
17924
  "locationInModule": {
17974
17925
  "filename": "src/awscdk/lambda-function.ts",
17975
- "line": 41
17926
+ "line": 45
17976
17927
  },
17977
17928
  "name": "entrypoint",
17978
17929
  "type": {
17979
17930
  "primitive": "string"
17980
17931
  }
17981
17932
  },
17982
- {
17983
- "abstract": true,
17984
- "docs": {
17985
- "stability": "experimental",
17986
- "summary": "JavaScript output directory (where .js files go)."
17987
- },
17988
- "immutable": true,
17989
- "locationInModule": {
17990
- "filename": "src/awscdk/lambda-function.ts",
17991
- "line": 67
17992
- },
17993
- "name": "libdir",
17994
- "type": {
17995
- "primitive": "string"
17996
- }
17997
- },
17998
- {
17999
- "abstract": true,
18000
- "docs": {
18001
- "stability": "experimental",
18002
- "summary": "Project source directory tree (where .ts files live)."
18003
- },
18004
- "immutable": true,
18005
- "locationInModule": {
18006
- "filename": "src/awscdk/lambda-function.ts",
18007
- "line": 62
18008
- },
18009
- "name": "srcdir",
18010
- "type": {
18011
- "primitive": "string"
18012
- }
18013
- },
18014
17933
  {
18015
17934
  "abstract": true,
18016
17935
  "docs": {
18017
17936
  "default": "- The name of the entrypoint file, with the `-function.ts` suffix\ninstead of `.lambda.ts`.",
17937
+ "remarks": "This file should also be\nunder the source tree.",
18018
17938
  "stability": "experimental",
18019
17939
  "summary": "The name of the generated TypeScript source file."
18020
17940
  },
18021
17941
  "immutable": true,
18022
17942
  "locationInModule": {
18023
17943
  "filename": "src/awscdk/lambda-function.ts",
18024
- "line": 49
17944
+ "line": 54
18025
17945
  },
18026
17946
  "name": "constructFile",
18027
17947
  "optional": true,
@@ -18039,7 +17959,7 @@
18039
17959
  "immutable": true,
18040
17960
  "locationInModule": {
18041
17961
  "filename": "src/awscdk/lambda-function.ts",
18042
- "line": 57
17962
+ "line": 62
18043
17963
  },
18044
17964
  "name": "constructName",
18045
17965
  "optional": true,
@@ -18060,7 +17980,7 @@
18060
17980
  "kind": "class",
18061
17981
  "locationInModule": {
18062
17982
  "filename": "src/awscdk/lambda-function.ts",
18063
- "line": 189
17983
+ "line": 179
18064
17984
  },
18065
17985
  "name": "LambdaRuntime",
18066
17986
  "namespace": "awscdk",
@@ -18074,7 +17994,7 @@
18074
17994
  "immutable": true,
18075
17995
  "locationInModule": {
18076
17996
  "filename": "src/awscdk/lambda-function.ts",
18077
- "line": 193
17997
+ "line": 183
18078
17998
  },
18079
17999
  "name": "NODEJS_10_X",
18080
18000
  "static": true,
@@ -18091,7 +18011,7 @@
18091
18011
  "immutable": true,
18092
18012
  "locationInModule": {
18093
18013
  "filename": "src/awscdk/lambda-function.ts",
18094
- "line": 198
18014
+ "line": 188
18095
18015
  },
18096
18016
  "name": "NODEJS_12_X",
18097
18017
  "static": true,
@@ -18108,7 +18028,7 @@
18108
18028
  "immutable": true,
18109
18029
  "locationInModule": {
18110
18030
  "filename": "src/awscdk/lambda-function.ts",
18111
- "line": 203
18031
+ "line": 193
18112
18032
  },
18113
18033
  "name": "NODEJS_14_X",
18114
18034
  "static": true,
@@ -18123,7 +18043,7 @@
18123
18043
  "immutable": true,
18124
18044
  "locationInModule": {
18125
18045
  "filename": "src/awscdk/lambda-function.ts",
18126
- "line": 205
18046
+ "line": 195
18127
18047
  },
18128
18048
  "name": "esbuildPlatform",
18129
18049
  "type": {
@@ -18138,7 +18058,7 @@
18138
18058
  "immutable": true,
18139
18059
  "locationInModule": {
18140
18060
  "filename": "src/awscdk/lambda-function.ts",
18141
- "line": 216
18061
+ "line": 206
18142
18062
  },
18143
18063
  "name": "esbuildTarget",
18144
18064
  "type": {
@@ -18153,7 +18073,7 @@
18153
18073
  "immutable": true,
18154
18074
  "locationInModule": {
18155
18075
  "filename": "src/awscdk/lambda-function.ts",
18156
- "line": 211
18076
+ "line": 201
18157
18077
  },
18158
18078
  "name": "functionRuntime",
18159
18079
  "type": {
@@ -19581,7 +19501,7 @@
19581
19501
  },
19582
19502
  "locationInModule": {
19583
19503
  "filename": "src/github/github.ts",
19584
- "line": 45
19504
+ "line": 61
19585
19505
  },
19586
19506
  "parameters": [
19587
19507
  {
@@ -19602,7 +19522,7 @@
19602
19522
  "kind": "class",
19603
19523
  "locationInModule": {
19604
19524
  "filename": "src/github/github.ts",
19605
- "line": 31
19525
+ "line": 47
19606
19526
  },
19607
19527
  "methods": [
19608
19528
  {
@@ -19611,7 +19531,7 @@
19611
19531
  },
19612
19532
  "locationInModule": {
19613
19533
  "filename": "src/github/github.ts",
19614
- "line": 81
19534
+ "line": 101
19615
19535
  },
19616
19536
  "name": "addDependabot",
19617
19537
  "parameters": [
@@ -19635,7 +19555,7 @@
19635
19555
  },
19636
19556
  "locationInModule": {
19637
19557
  "filename": "src/github/github.ts",
19638
- "line": 77
19558
+ "line": 97
19639
19559
  },
19640
19560
  "name": "addPullRequestTemplate",
19641
19561
  "parameters": [
@@ -19662,7 +19582,7 @@
19662
19582
  },
19663
19583
  "locationInModule": {
19664
19584
  "filename": "src/github/github.ts",
19665
- "line": 68
19585
+ "line": 88
19666
19586
  },
19667
19587
  "name": "addWorkflow",
19668
19588
  "parameters": [
@@ -19690,7 +19610,7 @@
19690
19610
  },
19691
19611
  "locationInModule": {
19692
19612
  "filename": "src/github/github.ts",
19693
- "line": 89
19613
+ "line": 109
19694
19614
  },
19695
19615
  "name": "tryFindWorkflow",
19696
19616
  "parameters": [
@@ -19723,7 +19643,7 @@
19723
19643
  "immutable": true,
19724
19644
  "locationInModule": {
19725
19645
  "filename": "src/github/github.ts",
19726
- "line": 59
19646
+ "line": 79
19727
19647
  },
19728
19648
  "name": "workflows",
19729
19649
  "type": {
@@ -19743,7 +19663,7 @@
19743
19663
  "immutable": true,
19744
19664
  "locationInModule": {
19745
19665
  "filename": "src/github/github.ts",
19746
- "line": 41
19666
+ "line": 57
19747
19667
  },
19748
19668
  "name": "workflowsEnabled",
19749
19669
  "type": {
@@ -19759,7 +19679,7 @@
19759
19679
  "immutable": true,
19760
19680
  "locationInModule": {
19761
19681
  "filename": "src/github/github.ts",
19762
- "line": 36
19682
+ "line": 52
19763
19683
  },
19764
19684
  "name": "mergify",
19765
19685
  "optional": true,
@@ -19780,7 +19700,7 @@
19780
19700
  "kind": "interface",
19781
19701
  "locationInModule": {
19782
19702
  "filename": "src/github/github.ts",
19783
- "line": 8
19703
+ "line": 9
19784
19704
  },
19785
19705
  "name": "GitHubOptions",
19786
19706
  "namespace": "github",
@@ -19795,7 +19715,7 @@
19795
19715
  "immutable": true,
19796
19716
  "locationInModule": {
19797
19717
  "filename": "src/github/github.ts",
19798
- "line": 14
19718
+ "line": 15
19799
19719
  },
19800
19720
  "name": "mergify",
19801
19721
  "optional": true,
@@ -19813,7 +19733,7 @@
19813
19733
  "immutable": true,
19814
19734
  "locationInModule": {
19815
19735
  "filename": "src/github/github.ts",
19816
- "line": 21
19736
+ "line": 22
19817
19737
  },
19818
19738
  "name": "mergifyOptions",
19819
19739
  "optional": true,
@@ -19821,6 +19741,42 @@
19821
19741
  "fqn": "projen.github.MergifyOptions"
19822
19742
  }
19823
19743
  },
19744
+ {
19745
+ "abstract": true,
19746
+ "docs": {
19747
+ "default": "true",
19748
+ "stability": "experimental",
19749
+ "summary": "Add a workflow that performs basic checks for pull requests, like validating that PRs follow Conventional Commits."
19750
+ },
19751
+ "immutable": true,
19752
+ "locationInModule": {
19753
+ "filename": "src/github/github.ts",
19754
+ "line": 37
19755
+ },
19756
+ "name": "pullRequestLint",
19757
+ "optional": true,
19758
+ "type": {
19759
+ "primitive": "boolean"
19760
+ }
19761
+ },
19762
+ {
19763
+ "abstract": true,
19764
+ "docs": {
19765
+ "default": "- see defaults in `PullRequestLintOptions`",
19766
+ "stability": "experimental",
19767
+ "summary": "Options for configuring a pull request linter."
19768
+ },
19769
+ "immutable": true,
19770
+ "locationInModule": {
19771
+ "filename": "src/github/github.ts",
19772
+ "line": 44
19773
+ },
19774
+ "name": "pullRequestLintOptions",
19775
+ "optional": true,
19776
+ "type": {
19777
+ "fqn": "projen.github.PullRequestLintOptions"
19778
+ }
19779
+ },
19824
19780
  {
19825
19781
  "abstract": true,
19826
19782
  "docs": {
@@ -19832,7 +19788,7 @@
19832
19788
  "immutable": true,
19833
19789
  "locationInModule": {
19834
19790
  "filename": "src/github/github.ts",
19835
- "line": 28
19791
+ "line": 29
19836
19792
  },
19837
19793
  "name": "workflows",
19838
19794
  "optional": true,
@@ -20369,6 +20325,104 @@
20369
20325
  ],
20370
20326
  "symbolId": "src/github/mergify:MergifyRule"
20371
20327
  },
20328
+ "projen.github.PullRequestLint": {
20329
+ "assembly": "projen",
20330
+ "base": "projen.Component",
20331
+ "docs": {
20332
+ "remarks": "Only generates a file if at least one linter is configured.",
20333
+ "stability": "experimental",
20334
+ "summary": "Configure validations to run on GitHub pull requests."
20335
+ },
20336
+ "fqn": "projen.github.PullRequestLint",
20337
+ "initializer": {
20338
+ "docs": {
20339
+ "stability": "experimental"
20340
+ },
20341
+ "locationInModule": {
20342
+ "filename": "src/github/pull-request-lint.ts",
20343
+ "line": 48
20344
+ },
20345
+ "parameters": [
20346
+ {
20347
+ "name": "github",
20348
+ "type": {
20349
+ "fqn": "projen.github.GitHub"
20350
+ }
20351
+ },
20352
+ {
20353
+ "name": "options",
20354
+ "optional": true,
20355
+ "type": {
20356
+ "fqn": "projen.github.PullRequestLintOptions"
20357
+ }
20358
+ }
20359
+ ]
20360
+ },
20361
+ "kind": "class",
20362
+ "locationInModule": {
20363
+ "filename": "src/github/pull-request-lint.ts",
20364
+ "line": 47
20365
+ },
20366
+ "name": "PullRequestLint",
20367
+ "namespace": "github",
20368
+ "symbolId": "src/github/pull-request-lint:PullRequestLint"
20369
+ },
20370
+ "projen.github.PullRequestLintOptions": {
20371
+ "assembly": "projen",
20372
+ "datatype": true,
20373
+ "docs": {
20374
+ "stability": "experimental",
20375
+ "summary": "Options for PullRequestLint."
20376
+ },
20377
+ "fqn": "projen.github.PullRequestLintOptions",
20378
+ "kind": "interface",
20379
+ "locationInModule": {
20380
+ "filename": "src/github/pull-request-lint.ts",
20381
+ "line": 8
20382
+ },
20383
+ "name": "PullRequestLintOptions",
20384
+ "namespace": "github",
20385
+ "properties": [
20386
+ {
20387
+ "abstract": true,
20388
+ "docs": {
20389
+ "default": "true",
20390
+ "see": "https://www.conventionalcommits.org/",
20391
+ "stability": "experimental",
20392
+ "summary": "Validate that pull request titles follow Conventional Commits."
20393
+ },
20394
+ "immutable": true,
20395
+ "locationInModule": {
20396
+ "filename": "src/github/pull-request-lint.ts",
20397
+ "line": 15
20398
+ },
20399
+ "name": "semanticTitle",
20400
+ "optional": true,
20401
+ "type": {
20402
+ "primitive": "boolean"
20403
+ }
20404
+ },
20405
+ {
20406
+ "abstract": true,
20407
+ "docs": {
20408
+ "default": "- title must start with \"feat\", \"fix\", or \"chore\"",
20409
+ "stability": "experimental",
20410
+ "summary": "Options for validating the conventional commit title linter."
20411
+ },
20412
+ "immutable": true,
20413
+ "locationInModule": {
20414
+ "filename": "src/github/pull-request-lint.ts",
20415
+ "line": 21
20416
+ },
20417
+ "name": "semanticTitleOptions",
20418
+ "optional": true,
20419
+ "type": {
20420
+ "fqn": "projen.github.SemanticTitleOptions"
20421
+ }
20422
+ }
20423
+ ],
20424
+ "symbolId": "src/github/pull-request-lint:PullRequestLintOptions"
20425
+ },
20372
20426
  "projen.github.PullRequestTemplate": {
20373
20427
  "assembly": "projen",
20374
20428
  "base": "projen.TextFile",
@@ -20453,6 +20507,68 @@
20453
20507
  ],
20454
20508
  "symbolId": "src/github/pr-template:PullRequestTemplateOptions"
20455
20509
  },
20510
+ "projen.github.SemanticTitleOptions": {
20511
+ "assembly": "projen",
20512
+ "datatype": true,
20513
+ "docs": {
20514
+ "see": "https://www.conventionalcommits.org/",
20515
+ "stability": "experimental",
20516
+ "summary": "Options for linting that PR titles follow Conventional Commits."
20517
+ },
20518
+ "fqn": "projen.github.SemanticTitleOptions",
20519
+ "kind": "interface",
20520
+ "locationInModule": {
20521
+ "filename": "src/github/pull-request-lint.ts",
20522
+ "line": 28
20523
+ },
20524
+ "name": "SemanticTitleOptions",
20525
+ "namespace": "github",
20526
+ "properties": [
20527
+ {
20528
+ "abstract": true,
20529
+ "docs": {
20530
+ "default": "false",
20531
+ "remarks": "e.g. feat(ui), fix(core)",
20532
+ "stability": "experimental",
20533
+ "summary": "Configure that a scope must always be provided."
20534
+ },
20535
+ "immutable": true,
20536
+ "locationInModule": {
20537
+ "filename": "src/github/pull-request-lint.ts",
20538
+ "line": 40
20539
+ },
20540
+ "name": "requireScope",
20541
+ "optional": true,
20542
+ "type": {
20543
+ "primitive": "boolean"
20544
+ }
20545
+ },
20546
+ {
20547
+ "abstract": true,
20548
+ "docs": {
20549
+ "default": "[\"feat\", \"fix\", \"chore\"]",
20550
+ "stability": "experimental",
20551
+ "summary": "Configure a list of commit types that are allowed."
20552
+ },
20553
+ "immutable": true,
20554
+ "locationInModule": {
20555
+ "filename": "src/github/pull-request-lint.ts",
20556
+ "line": 33
20557
+ },
20558
+ "name": "types",
20559
+ "optional": true,
20560
+ "type": {
20561
+ "collection": {
20562
+ "elementtype": {
20563
+ "primitive": "string"
20564
+ },
20565
+ "kind": "array"
20566
+ }
20567
+ }
20568
+ }
20569
+ ],
20570
+ "symbolId": "src/github/pull-request-lint:SemanticTitleOptions"
20571
+ },
20456
20572
  "projen.github.Stale": {
20457
20573
  "assembly": "projen",
20458
20574
  "base": "projen.Component",
@@ -25605,54 +25721,25 @@
25605
25721
  ],
25606
25722
  "symbolId": "src/java/projenrc:ProjenrcOptions"
25607
25723
  },
25608
- "projen.javascript.BundleOptions": {
25724
+ "projen.javascript.AddBundleOptions": {
25609
25725
  "assembly": "projen",
25610
25726
  "datatype": true,
25611
25727
  "docs": {
25612
25728
  "stability": "experimental",
25613
- "summary": "Options for bundling."
25729
+ "summary": "Options for `addBundle()`."
25614
25730
  },
25615
- "fqn": "projen.javascript.BundleOptions",
25731
+ "fqn": "projen.javascript.AddBundleOptions",
25732
+ "interfaces": [
25733
+ "projen.javascript.BundlingOptions"
25734
+ ],
25616
25735
  "kind": "interface",
25617
25736
  "locationInModule": {
25618
25737
  "filename": "src/javascript/bundler.ts",
25619
- "line": 121
25738
+ "line": 209
25620
25739
  },
25621
- "name": "BundleOptions",
25740
+ "name": "AddBundleOptions",
25622
25741
  "namespace": "javascript",
25623
25742
  "properties": [
25624
- {
25625
- "abstract": true,
25626
- "docs": {
25627
- "stability": "experimental",
25628
- "summary": "The entrypoint of the code you wish to bundle."
25629
- },
25630
- "immutable": true,
25631
- "locationInModule": {
25632
- "filename": "src/javascript/bundler.ts",
25633
- "line": 125
25634
- },
25635
- "name": "entrypoint",
25636
- "type": {
25637
- "primitive": "string"
25638
- }
25639
- },
25640
- {
25641
- "abstract": true,
25642
- "docs": {
25643
- "stability": "experimental",
25644
- "summary": "This option sets the output file name for the build operation."
25645
- },
25646
- "immutable": true,
25647
- "locationInModule": {
25648
- "filename": "src/javascript/bundler.ts",
25649
- "line": 144
25650
- },
25651
- "name": "outfile",
25652
- "type": {
25653
- "primitive": "string"
25654
- }
25655
- },
25656
25743
  {
25657
25744
  "abstract": true,
25658
25745
  "docs": {
@@ -25663,7 +25750,7 @@
25663
25750
  "immutable": true,
25664
25751
  "locationInModule": {
25665
25752
  "filename": "src/javascript/bundler.ts",
25666
- "line": 139
25753
+ "line": 222
25667
25754
  },
25668
25755
  "name": "platform",
25669
25756
  "type": {
@@ -25680,81 +25767,88 @@
25680
25767
  "immutable": true,
25681
25768
  "locationInModule": {
25682
25769
  "filename": "src/javascript/bundler.ts",
25683
- "line": 132
25770
+ "line": 215
25684
25771
  },
25685
25772
  "name": "target",
25686
25773
  "type": {
25687
25774
  "primitive": "string"
25688
25775
  }
25689
- },
25776
+ }
25777
+ ],
25778
+ "symbolId": "src/javascript/bundler:AddBundleOptions"
25779
+ },
25780
+ "projen.javascript.Bundle": {
25781
+ "assembly": "projen",
25782
+ "datatype": true,
25783
+ "docs": {
25784
+ "stability": "experimental"
25785
+ },
25786
+ "fqn": "projen.javascript.Bundle",
25787
+ "kind": "interface",
25788
+ "locationInModule": {
25789
+ "filename": "src/javascript/bundler.ts",
25790
+ "line": 150
25791
+ },
25792
+ "name": "Bundle",
25793
+ "namespace": "javascript",
25794
+ "properties": [
25690
25795
  {
25691
25796
  "abstract": true,
25692
25797
  "docs": {
25693
- "default": "[]",
25694
- "remarks": "Instead of being bundled, the import will be preserved (using require for\nthe iife and cjs formats and using import for the esm format) and will be\nevaluated at run time instead.\n\nThis has several uses. First of all, it can be used to trim unnecessary\ncode from your bundle for a code path that you know will never be executed.\nFor example, a package may contain code that only runs in node but you will\nonly be using that package in the browser. It can also be used to import\ncode in node at run time from a package that cannot be bundled. For\nexample, the fsevents package contains a native extension, which esbuild\ndoesn't support.",
25695
25798
  "stability": "experimental",
25696
- "summary": "You can mark a file or a package as external to exclude it from your build."
25799
+ "summary": "The task that produces this bundle."
25697
25800
  },
25698
25801
  "immutable": true,
25699
25802
  "locationInModule": {
25700
25803
  "filename": "src/javascript/bundler.ts",
25701
- "line": 162
25804
+ "line": 154
25702
25805
  },
25703
- "name": "externals",
25704
- "optional": true,
25806
+ "name": "bundleTask",
25705
25807
  "type": {
25706
- "collection": {
25707
- "elementtype": {
25708
- "primitive": "string"
25709
- },
25710
- "kind": "array"
25711
- }
25808
+ "fqn": "projen.tasks.Task"
25712
25809
  }
25713
25810
  },
25714
25811
  {
25715
25812
  "abstract": true,
25716
25813
  "docs": {
25717
- "default": "true",
25718
25814
  "stability": "experimental",
25719
- "summary": "Include a source map in the bundle."
25815
+ "summary": "Location of the output file (relative to project root)."
25720
25816
  },
25721
25817
  "immutable": true,
25722
25818
  "locationInModule": {
25723
25819
  "filename": "src/javascript/bundler.ts",
25724
- "line": 169
25820
+ "line": 164
25725
25821
  },
25726
- "name": "sourcemap",
25727
- "optional": true,
25822
+ "name": "outfile",
25728
25823
  "type": {
25729
- "primitive": "boolean"
25824
+ "primitive": "string"
25730
25825
  }
25731
25826
  },
25732
25827
  {
25733
25828
  "abstract": true,
25734
25829
  "docs": {
25735
- "default": "true",
25736
- "remarks": "This can be used\nto continusouly watch for changes.",
25737
25830
  "stability": "experimental",
25738
- "summary": "In addition to the `bundle:xyz` task, creates `bundle:xyz:watch` task which will invoke the same esbuild command with the `--watch` flag."
25831
+ "summary": "The \"watch\" task for this bundle."
25739
25832
  },
25740
25833
  "immutable": true,
25741
25834
  "locationInModule": {
25742
25835
  "filename": "src/javascript/bundler.ts",
25743
- "line": 178
25836
+ "line": 159
25744
25837
  },
25745
25838
  "name": "watchTask",
25746
25839
  "optional": true,
25747
25840
  "type": {
25748
- "primitive": "boolean"
25841
+ "fqn": "projen.tasks.Task"
25749
25842
  }
25750
25843
  }
25751
25844
  ],
25752
- "symbolId": "src/javascript/bundler:BundleOptions"
25845
+ "symbolId": "src/javascript/bundler:Bundle"
25753
25846
  },
25754
25847
  "projen.javascript.Bundler": {
25755
25848
  "assembly": "projen",
25756
25849
  "base": "projen.Component",
25757
25850
  "docs": {
25851
+ "remarks": "In the future, this will also supports bundling websites.",
25758
25852
  "stability": "experimental",
25759
25853
  "summary": "Adds support for bundling JavaScript applications and dependencies into a single file."
25760
25854
  },
@@ -25766,7 +25860,7 @@
25766
25860
  },
25767
25861
  "locationInModule": {
25768
25862
  "filename": "src/javascript/bundler.ts",
25769
- "line": 48
25863
+ "line": 57
25770
25864
  },
25771
25865
  "parameters": [
25772
25866
  {
@@ -25787,7 +25881,7 @@
25787
25881
  "kind": "class",
25788
25882
  "locationInModule": {
25789
25883
  "filename": "src/javascript/bundler.ts",
25790
- "line": 29
25884
+ "line": 30
25791
25885
  },
25792
25886
  "methods": [
25793
25887
  {
@@ -25798,7 +25892,7 @@
25798
25892
  },
25799
25893
  "locationInModule": {
25800
25894
  "filename": "src/javascript/bundler.ts",
25801
- "line": 36
25895
+ "line": 37
25802
25896
  },
25803
25897
  "name": "of",
25804
25898
  "parameters": [
@@ -25827,15 +25921,12 @@
25827
25921
  },
25828
25922
  "locationInModule": {
25829
25923
  "filename": "src/javascript/bundler.ts",
25830
- "line": 80
25924
+ "line": 91
25831
25925
  },
25832
25926
  "name": "addBundle",
25833
25927
  "parameters": [
25834
25928
  {
25835
- "docs": {
25836
- "summary": "The name of the artifact (the task will be named `bundle:$name`)."
25837
- },
25838
- "name": "name",
25929
+ "name": "entrypoint",
25839
25930
  "type": {
25840
25931
  "primitive": "string"
25841
25932
  }
@@ -25846,13 +25937,13 @@
25846
25937
  },
25847
25938
  "name": "options",
25848
25939
  "type": {
25849
- "fqn": "projen.javascript.BundleOptions"
25940
+ "fqn": "projen.javascript.AddBundleOptions"
25850
25941
  }
25851
25942
  }
25852
25943
  ],
25853
25944
  "returns": {
25854
25945
  "type": {
25855
- "fqn": "projen.tasks.Task"
25946
+ "fqn": "projen.javascript.Bundle"
25856
25947
  }
25857
25948
  }
25858
25949
  }
@@ -25862,13 +25953,29 @@
25862
25953
  "properties": [
25863
25954
  {
25864
25955
  "docs": {
25956
+ "stability": "experimental",
25957
+ "summary": "Root bundle directory."
25958
+ },
25959
+ "immutable": true,
25960
+ "locationInModule": {
25961
+ "filename": "src/javascript/bundler.ts",
25962
+ "line": 50
25963
+ },
25964
+ "name": "bundledir",
25965
+ "type": {
25966
+ "primitive": "string"
25967
+ }
25968
+ },
25969
+ {
25970
+ "docs": {
25971
+ "remarks": "If the project doesn't have a \"bundle\" task, it will be created and spawned\nduring the pre-compile phase.",
25865
25972
  "stability": "experimental",
25866
25973
  "summary": "Gets or creates the singleton \"bundle\" task of the project."
25867
25974
  },
25868
25975
  "immutable": true,
25869
25976
  "locationInModule": {
25870
25977
  "filename": "src/javascript/bundler.ts",
25871
- "line": 57
25978
+ "line": 71
25872
25979
  },
25873
25980
  "name": "bundleTask",
25874
25981
  "type": {
@@ -25877,12 +25984,13 @@
25877
25984
  },
25878
25985
  {
25879
25986
  "docs": {
25880
- "stability": "experimental"
25987
+ "stability": "experimental",
25988
+ "summary": "The semantic version requirement for `esbuild` (if defined)."
25881
25989
  },
25882
25990
  "immutable": true,
25883
25991
  "locationInModule": {
25884
25992
  "filename": "src/javascript/bundler.ts",
25885
- "line": 43
25993
+ "line": 45
25886
25994
  },
25887
25995
  "name": "esbuildVersion",
25888
25996
  "optional": true,
@@ -25893,22 +26001,40 @@
25893
26001
  ],
25894
26002
  "symbolId": "src/javascript/bundler:Bundler"
25895
26003
  },
25896
- "projen.javascript.BundlerCommonOptions": {
26004
+ "projen.javascript.BundlerOptions": {
25897
26005
  "assembly": "projen",
25898
26006
  "datatype": true,
25899
26007
  "docs": {
25900
26008
  "stability": "experimental",
25901
- "summary": "Common options for `Bundler`."
26009
+ "summary": "Options for `Bundler`."
25902
26010
  },
25903
- "fqn": "projen.javascript.BundlerCommonOptions",
26011
+ "fqn": "projen.javascript.BundlerOptions",
25904
26012
  "kind": "interface",
25905
26013
  "locationInModule": {
25906
26014
  "filename": "src/javascript/bundler.ts",
25907
- "line": 9
26015
+ "line": 11
25908
26016
  },
25909
- "name": "BundlerCommonOptions",
26017
+ "name": "BundlerOptions",
25910
26018
  "namespace": "javascript",
25911
26019
  "properties": [
26020
+ {
26021
+ "abstract": true,
26022
+ "docs": {
26023
+ "default": "\"assets\"",
26024
+ "stability": "experimental",
26025
+ "summary": "Output directory for all bundles."
26026
+ },
26027
+ "immutable": true,
26028
+ "locationInModule": {
26029
+ "filename": "src/javascript/bundler.ts",
26030
+ "line": 23
26031
+ },
26032
+ "name": "assetsDir",
26033
+ "optional": true,
26034
+ "type": {
26035
+ "primitive": "string"
26036
+ }
26037
+ },
25912
26038
  {
25913
26039
  "abstract": true,
25914
26040
  "docs": {
@@ -25919,7 +26045,7 @@
25919
26045
  "immutable": true,
25920
26046
  "locationInModule": {
25921
26047
  "filename": "src/javascript/bundler.ts",
25922
- "line": 15
26048
+ "line": 17
25923
26049
  },
25924
26050
  "name": "esbuildVersion",
25925
26051
  "optional": true,
@@ -25928,27 +26054,87 @@
25928
26054
  }
25929
26055
  }
25930
26056
  ],
25931
- "symbolId": "src/javascript/bundler:BundlerCommonOptions"
26057
+ "symbolId": "src/javascript/bundler:BundlerOptions"
25932
26058
  },
25933
- "projen.javascript.BundlerOptions": {
26059
+ "projen.javascript.BundlingOptions": {
25934
26060
  "assembly": "projen",
25935
26061
  "datatype": true,
25936
26062
  "docs": {
25937
26063
  "stability": "experimental",
25938
- "summary": "Options for `Bundler`."
26064
+ "summary": "Options for bundling."
25939
26065
  },
25940
- "fqn": "projen.javascript.BundlerOptions",
25941
- "interfaces": [
25942
- "projen.javascript.BundlerCommonOptions"
25943
- ],
26066
+ "fqn": "projen.javascript.BundlingOptions",
25944
26067
  "kind": "interface",
25945
26068
  "locationInModule": {
25946
26069
  "filename": "src/javascript/bundler.ts",
25947
- "line": 21
26070
+ "line": 170
25948
26071
  },
25949
- "name": "BundlerOptions",
26072
+ "name": "BundlingOptions",
25950
26073
  "namespace": "javascript",
25951
- "symbolId": "src/javascript/bundler:BundlerOptions"
26074
+ "properties": [
26075
+ {
26076
+ "abstract": true,
26077
+ "docs": {
26078
+ "default": "[]",
26079
+ "remarks": "Instead of being bundled, the import will be preserved (using require for\nthe iife and cjs formats and using import for the esm format) and will be\nevaluated at run time instead.\n\nThis has several uses. First of all, it can be used to trim unnecessary\ncode from your bundle for a code path that you know will never be executed.\nFor example, a package may contain code that only runs in node but you will\nonly be using that package in the browser. It can also be used to import\ncode in node at run time from a package that cannot be bundled. For\nexample, the fsevents package contains a native extension, which esbuild\ndoesn't support.",
26080
+ "stability": "experimental",
26081
+ "summary": "You can mark a file or a package as external to exclude it from your build."
26082
+ },
26083
+ "immutable": true,
26084
+ "locationInModule": {
26085
+ "filename": "src/javascript/bundler.ts",
26086
+ "line": 187
26087
+ },
26088
+ "name": "externals",
26089
+ "optional": true,
26090
+ "type": {
26091
+ "collection": {
26092
+ "elementtype": {
26093
+ "primitive": "string"
26094
+ },
26095
+ "kind": "array"
26096
+ }
26097
+ }
26098
+ },
26099
+ {
26100
+ "abstract": true,
26101
+ "docs": {
26102
+ "default": "false",
26103
+ "stability": "experimental",
26104
+ "summary": "Include a source map in the bundle."
26105
+ },
26106
+ "immutable": true,
26107
+ "locationInModule": {
26108
+ "filename": "src/javascript/bundler.ts",
26109
+ "line": 194
26110
+ },
26111
+ "name": "sourcemap",
26112
+ "optional": true,
26113
+ "type": {
26114
+ "primitive": "boolean"
26115
+ }
26116
+ },
26117
+ {
26118
+ "abstract": true,
26119
+ "docs": {
26120
+ "default": "true",
26121
+ "remarks": "This can be used\nto continusouly watch for changes.",
26122
+ "stability": "experimental",
26123
+ "summary": "In addition to the `bundle:xyz` task, creates `bundle:xyz:watch` task which will invoke the same esbuild command with the `--watch` flag."
26124
+ },
26125
+ "immutable": true,
26126
+ "locationInModule": {
26127
+ "filename": "src/javascript/bundler.ts",
26128
+ "line": 203
26129
+ },
26130
+ "name": "watchTask",
26131
+ "optional": true,
26132
+ "type": {
26133
+ "primitive": "boolean"
26134
+ }
26135
+ }
26136
+ ],
26137
+ "symbolId": "src/javascript/bundler:BundlingOptions"
25952
26138
  },
25953
26139
  "projen.javascript.NpmConfig": {
25954
26140
  "assembly": "projen",
@@ -34109,6 +34295,6 @@
34109
34295
  "symbolId": "src/web/tailwind:TailwindConfigOptions"
34110
34296
  }
34111
34297
  },
34112
- "version": "0.33.8",
34113
- "fingerprint": "00ylAbxIXcIg68xUZ5SvUc3/7769IVYAO8ucZGpAFaY="
34298
+ "version": "0.34.1",
34299
+ "fingerprint": "K+W0g/+FMyCuYUiW7vHEhvwnCS8661Qku19U/zsJNNc="
34114
34300
  }