projen 0.33.10 → 0.34.0

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 (101) hide show
  1. package/.jsii +227 -237
  2. package/API.md +75 -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.js +1 -1
  29. package/lib/github/mergify.js +1 -1
  30. package/lib/github/pr-template.js +1 -1
  31. package/lib/github/pull-request-lint.js +1 -1
  32. package/lib/github/stale.js +1 -1
  33. package/lib/github/task-workflow.js +1 -1
  34. package/lib/github/workflows.js +1 -1
  35. package/lib/gitpod.js +1 -1
  36. package/lib/ignore-file.js +1 -1
  37. package/lib/ini.js +1 -1
  38. package/lib/java/java-project.js +1 -1
  39. package/lib/java/junit.js +1 -1
  40. package/lib/java/maven-compile.js +1 -1
  41. package/lib/java/maven-packaging.js +1 -1
  42. package/lib/java/maven-sample.js +1 -1
  43. package/lib/java/pom.js +1 -1
  44. package/lib/java/projenrc.js +1 -1
  45. package/lib/javascript/bundler.d.ts +69 -33
  46. package/lib/javascript/bundler.js +43 -17
  47. package/lib/javascript/npm-config.js +1 -1
  48. package/lib/javascript/projenrc.js +1 -1
  49. package/lib/javascript/util.d.ts +1 -0
  50. package/lib/javascript/util.js +16 -0
  51. package/lib/jest.js +1 -1
  52. package/lib/jsii-project.js +1 -1
  53. package/lib/json/projenrc.js +1 -1
  54. package/lib/json.js +1 -1
  55. package/lib/license.js +1 -1
  56. package/lib/logger.js +1 -1
  57. package/lib/makefile.js +1 -1
  58. package/lib/node-package.js +1 -1
  59. package/lib/node-project.d.ts +2 -2
  60. package/lib/node-project.js +2 -2
  61. package/lib/object-file.js +1 -1
  62. package/lib/project-build.js +1 -1
  63. package/lib/project.js +6 -5
  64. package/lib/projects.js +1 -1
  65. package/lib/python/pip.js +1 -1
  66. package/lib/python/poetry.js +2 -2
  67. package/lib/python/projenrc.js +1 -1
  68. package/lib/python/pytest.js +1 -1
  69. package/lib/python/python-project.js +1 -1
  70. package/lib/python/python-sample.js +1 -1
  71. package/lib/python/requirements-file.js +1 -1
  72. package/lib/python/setuppy.js +1 -1
  73. package/lib/python/setuptools.js +1 -1
  74. package/lib/python/venv.js +1 -1
  75. package/lib/readme.js +1 -1
  76. package/lib/release/publisher.js +1 -1
  77. package/lib/release/release-trigger.js +1 -1
  78. package/lib/release/release.js +1 -1
  79. package/lib/sample-file.js +2 -2
  80. package/lib/semver.js +1 -1
  81. package/lib/source-code.js +1 -1
  82. package/lib/tasks/runtime.js +1 -1
  83. package/lib/tasks/task.js +1 -1
  84. package/lib/tasks/tasks.js +1 -1
  85. package/lib/textfile.js +1 -1
  86. package/lib/toml.js +1 -1
  87. package/lib/typescript/projenrc.js +1 -1
  88. package/lib/typescript-config.js +1 -1
  89. package/lib/typescript.js +3 -3
  90. package/lib/upgrade-dependencies.js +2 -2
  91. package/lib/version.js +1 -1
  92. package/lib/vscode/devcontainer.js +1 -1
  93. package/lib/vscode/launch-config.js +1 -1
  94. package/lib/vscode/vscode.js +1 -1
  95. package/lib/web/next.js +3 -3
  96. package/lib/web/postcss.js +1 -1
  97. package/lib/web/react.js +4 -4
  98. package/lib/web/tailwind.js +1 -1
  99. package/lib/xmlfile.js +1 -1
  100. package/lib/yaml.js +1 -1
  101. package/package.json +1 -1
package/.jsii CHANGED
@@ -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": {
@@ -25801,54 +25721,25 @@
25801
25721
  ],
25802
25722
  "symbolId": "src/java/projenrc:ProjenrcOptions"
25803
25723
  },
25804
- "projen.javascript.BundleOptions": {
25724
+ "projen.javascript.AddBundleOptions": {
25805
25725
  "assembly": "projen",
25806
25726
  "datatype": true,
25807
25727
  "docs": {
25808
25728
  "stability": "experimental",
25809
- "summary": "Options for bundling."
25729
+ "summary": "Options for `addBundle()`."
25810
25730
  },
25811
- "fqn": "projen.javascript.BundleOptions",
25731
+ "fqn": "projen.javascript.AddBundleOptions",
25732
+ "interfaces": [
25733
+ "projen.javascript.BundlingOptions"
25734
+ ],
25812
25735
  "kind": "interface",
25813
25736
  "locationInModule": {
25814
25737
  "filename": "src/javascript/bundler.ts",
25815
- "line": 121
25738
+ "line": 209
25816
25739
  },
25817
- "name": "BundleOptions",
25740
+ "name": "AddBundleOptions",
25818
25741
  "namespace": "javascript",
25819
25742
  "properties": [
25820
- {
25821
- "abstract": true,
25822
- "docs": {
25823
- "stability": "experimental",
25824
- "summary": "The entrypoint of the code you wish to bundle."
25825
- },
25826
- "immutable": true,
25827
- "locationInModule": {
25828
- "filename": "src/javascript/bundler.ts",
25829
- "line": 125
25830
- },
25831
- "name": "entrypoint",
25832
- "type": {
25833
- "primitive": "string"
25834
- }
25835
- },
25836
- {
25837
- "abstract": true,
25838
- "docs": {
25839
- "stability": "experimental",
25840
- "summary": "This option sets the output file name for the build operation."
25841
- },
25842
- "immutable": true,
25843
- "locationInModule": {
25844
- "filename": "src/javascript/bundler.ts",
25845
- "line": 144
25846
- },
25847
- "name": "outfile",
25848
- "type": {
25849
- "primitive": "string"
25850
- }
25851
- },
25852
25743
  {
25853
25744
  "abstract": true,
25854
25745
  "docs": {
@@ -25859,7 +25750,7 @@
25859
25750
  "immutable": true,
25860
25751
  "locationInModule": {
25861
25752
  "filename": "src/javascript/bundler.ts",
25862
- "line": 139
25753
+ "line": 222
25863
25754
  },
25864
25755
  "name": "platform",
25865
25756
  "type": {
@@ -25876,81 +25767,88 @@
25876
25767
  "immutable": true,
25877
25768
  "locationInModule": {
25878
25769
  "filename": "src/javascript/bundler.ts",
25879
- "line": 132
25770
+ "line": 215
25880
25771
  },
25881
25772
  "name": "target",
25882
25773
  "type": {
25883
25774
  "primitive": "string"
25884
25775
  }
25885
- },
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": [
25886
25795
  {
25887
25796
  "abstract": true,
25888
25797
  "docs": {
25889
- "default": "[]",
25890
- "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.",
25891
25798
  "stability": "experimental",
25892
- "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."
25893
25800
  },
25894
25801
  "immutable": true,
25895
25802
  "locationInModule": {
25896
25803
  "filename": "src/javascript/bundler.ts",
25897
- "line": 162
25804
+ "line": 154
25898
25805
  },
25899
- "name": "externals",
25900
- "optional": true,
25806
+ "name": "bundleTask",
25901
25807
  "type": {
25902
- "collection": {
25903
- "elementtype": {
25904
- "primitive": "string"
25905
- },
25906
- "kind": "array"
25907
- }
25808
+ "fqn": "projen.tasks.Task"
25908
25809
  }
25909
25810
  },
25910
25811
  {
25911
25812
  "abstract": true,
25912
25813
  "docs": {
25913
- "default": "true",
25914
25814
  "stability": "experimental",
25915
- "summary": "Include a source map in the bundle."
25815
+ "summary": "Location of the output file (relative to project root)."
25916
25816
  },
25917
25817
  "immutable": true,
25918
25818
  "locationInModule": {
25919
25819
  "filename": "src/javascript/bundler.ts",
25920
- "line": 169
25820
+ "line": 164
25921
25821
  },
25922
- "name": "sourcemap",
25923
- "optional": true,
25822
+ "name": "outfile",
25924
25823
  "type": {
25925
- "primitive": "boolean"
25824
+ "primitive": "string"
25926
25825
  }
25927
25826
  },
25928
25827
  {
25929
25828
  "abstract": true,
25930
25829
  "docs": {
25931
- "default": "true",
25932
- "remarks": "This can be used\nto continusouly watch for changes.",
25933
25830
  "stability": "experimental",
25934
- "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."
25935
25832
  },
25936
25833
  "immutable": true,
25937
25834
  "locationInModule": {
25938
25835
  "filename": "src/javascript/bundler.ts",
25939
- "line": 178
25836
+ "line": 159
25940
25837
  },
25941
25838
  "name": "watchTask",
25942
25839
  "optional": true,
25943
25840
  "type": {
25944
- "primitive": "boolean"
25841
+ "fqn": "projen.tasks.Task"
25945
25842
  }
25946
25843
  }
25947
25844
  ],
25948
- "symbolId": "src/javascript/bundler:BundleOptions"
25845
+ "symbolId": "src/javascript/bundler:Bundle"
25949
25846
  },
25950
25847
  "projen.javascript.Bundler": {
25951
25848
  "assembly": "projen",
25952
25849
  "base": "projen.Component",
25953
25850
  "docs": {
25851
+ "remarks": "In the future, this will also supports bundling websites.",
25954
25852
  "stability": "experimental",
25955
25853
  "summary": "Adds support for bundling JavaScript applications and dependencies into a single file."
25956
25854
  },
@@ -25962,7 +25860,7 @@
25962
25860
  },
25963
25861
  "locationInModule": {
25964
25862
  "filename": "src/javascript/bundler.ts",
25965
- "line": 48
25863
+ "line": 57
25966
25864
  },
25967
25865
  "parameters": [
25968
25866
  {
@@ -25983,7 +25881,7 @@
25983
25881
  "kind": "class",
25984
25882
  "locationInModule": {
25985
25883
  "filename": "src/javascript/bundler.ts",
25986
- "line": 29
25884
+ "line": 30
25987
25885
  },
25988
25886
  "methods": [
25989
25887
  {
@@ -25994,7 +25892,7 @@
25994
25892
  },
25995
25893
  "locationInModule": {
25996
25894
  "filename": "src/javascript/bundler.ts",
25997
- "line": 36
25895
+ "line": 37
25998
25896
  },
25999
25897
  "name": "of",
26000
25898
  "parameters": [
@@ -26023,15 +25921,12 @@
26023
25921
  },
26024
25922
  "locationInModule": {
26025
25923
  "filename": "src/javascript/bundler.ts",
26026
- "line": 80
25924
+ "line": 91
26027
25925
  },
26028
25926
  "name": "addBundle",
26029
25927
  "parameters": [
26030
25928
  {
26031
- "docs": {
26032
- "summary": "The name of the artifact (the task will be named `bundle:$name`)."
26033
- },
26034
- "name": "name",
25929
+ "name": "entrypoint",
26035
25930
  "type": {
26036
25931
  "primitive": "string"
26037
25932
  }
@@ -26042,13 +25937,13 @@
26042
25937
  },
26043
25938
  "name": "options",
26044
25939
  "type": {
26045
- "fqn": "projen.javascript.BundleOptions"
25940
+ "fqn": "projen.javascript.AddBundleOptions"
26046
25941
  }
26047
25942
  }
26048
25943
  ],
26049
25944
  "returns": {
26050
25945
  "type": {
26051
- "fqn": "projen.tasks.Task"
25946
+ "fqn": "projen.javascript.Bundle"
26052
25947
  }
26053
25948
  }
26054
25949
  }
@@ -26058,13 +25953,29 @@
26058
25953
  "properties": [
26059
25954
  {
26060
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.",
26061
25972
  "stability": "experimental",
26062
25973
  "summary": "Gets or creates the singleton \"bundle\" task of the project."
26063
25974
  },
26064
25975
  "immutable": true,
26065
25976
  "locationInModule": {
26066
25977
  "filename": "src/javascript/bundler.ts",
26067
- "line": 57
25978
+ "line": 71
26068
25979
  },
26069
25980
  "name": "bundleTask",
26070
25981
  "type": {
@@ -26073,12 +25984,13 @@
26073
25984
  },
26074
25985
  {
26075
25986
  "docs": {
26076
- "stability": "experimental"
25987
+ "stability": "experimental",
25988
+ "summary": "The semantic version requirement for `esbuild` (if defined)."
26077
25989
  },
26078
25990
  "immutable": true,
26079
25991
  "locationInModule": {
26080
25992
  "filename": "src/javascript/bundler.ts",
26081
- "line": 43
25993
+ "line": 45
26082
25994
  },
26083
25995
  "name": "esbuildVersion",
26084
25996
  "optional": true,
@@ -26089,22 +26001,40 @@
26089
26001
  ],
26090
26002
  "symbolId": "src/javascript/bundler:Bundler"
26091
26003
  },
26092
- "projen.javascript.BundlerCommonOptions": {
26004
+ "projen.javascript.BundlerOptions": {
26093
26005
  "assembly": "projen",
26094
26006
  "datatype": true,
26095
26007
  "docs": {
26096
26008
  "stability": "experimental",
26097
- "summary": "Common options for `Bundler`."
26009
+ "summary": "Options for `Bundler`."
26098
26010
  },
26099
- "fqn": "projen.javascript.BundlerCommonOptions",
26011
+ "fqn": "projen.javascript.BundlerOptions",
26100
26012
  "kind": "interface",
26101
26013
  "locationInModule": {
26102
26014
  "filename": "src/javascript/bundler.ts",
26103
- "line": 9
26015
+ "line": 11
26104
26016
  },
26105
- "name": "BundlerCommonOptions",
26017
+ "name": "BundlerOptions",
26106
26018
  "namespace": "javascript",
26107
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
+ },
26108
26038
  {
26109
26039
  "abstract": true,
26110
26040
  "docs": {
@@ -26115,7 +26045,7 @@
26115
26045
  "immutable": true,
26116
26046
  "locationInModule": {
26117
26047
  "filename": "src/javascript/bundler.ts",
26118
- "line": 15
26048
+ "line": 17
26119
26049
  },
26120
26050
  "name": "esbuildVersion",
26121
26051
  "optional": true,
@@ -26124,27 +26054,87 @@
26124
26054
  }
26125
26055
  }
26126
26056
  ],
26127
- "symbolId": "src/javascript/bundler:BundlerCommonOptions"
26057
+ "symbolId": "src/javascript/bundler:BundlerOptions"
26128
26058
  },
26129
- "projen.javascript.BundlerOptions": {
26059
+ "projen.javascript.BundlingOptions": {
26130
26060
  "assembly": "projen",
26131
26061
  "datatype": true,
26132
26062
  "docs": {
26133
26063
  "stability": "experimental",
26134
- "summary": "Options for `Bundler`."
26064
+ "summary": "Options for bundling."
26135
26065
  },
26136
- "fqn": "projen.javascript.BundlerOptions",
26137
- "interfaces": [
26138
- "projen.javascript.BundlerCommonOptions"
26139
- ],
26066
+ "fqn": "projen.javascript.BundlingOptions",
26140
26067
  "kind": "interface",
26141
26068
  "locationInModule": {
26142
26069
  "filename": "src/javascript/bundler.ts",
26143
- "line": 21
26070
+ "line": 170
26144
26071
  },
26145
- "name": "BundlerOptions",
26072
+ "name": "BundlingOptions",
26146
26073
  "namespace": "javascript",
26147
- "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"
26148
26138
  },
26149
26139
  "projen.javascript.NpmConfig": {
26150
26140
  "assembly": "projen",
@@ -34305,6 +34295,6 @@
34305
34295
  "symbolId": "src/web/tailwind:TailwindConfigOptions"
34306
34296
  }
34307
34297
  },
34308
- "version": "0.33.10",
34309
- "fingerprint": "RFSqo95K2JnXtmdCqROAtlJtq9/s9nJeWid5VbCb6SI="
34298
+ "version": "0.34.0",
34299
+ "fingerprint": "qE6Gox2lr6nLqNxjONVpWD+8NLnMI23lzMniITMakpM="
34310
34300
  }