@mavogel/mvc-projen 0.0.25 → 0.0.27

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.
@@ -13,14 +13,13 @@ import (
13
13
  "github.com/projen/projen-go/projen/github/workflows"
14
14
  "github.com/projen/projen-go/projen/javascript"
15
15
  "github.com/projen/projen-go/projen/release"
16
+ "github.com/projen/projen-go/projen/typescript"
16
17
  "github.com/projen/projen-go/projen/vscode"
17
18
  )
18
19
 
19
20
  // TypeScript library.
20
21
  type MvcCdkConstructLibrary interface {
21
22
  awscdk.AwsCdkConstructLibrary
22
- // Deprecated: use `package.allowLibraryDependencies`
23
- AllowLibraryDependencies() *bool
24
23
  // The build output directory.
25
24
  //
26
25
  // An npm tarball will be created under the `js`
@@ -85,8 +84,6 @@ type MvcCdkConstructLibrary interface {
85
84
  // Whether or not the project is being ejected.
86
85
  // Experimental.
87
86
  Ejected() *bool
88
- // Deprecated: use `package.entrypoint`
89
- Entrypoint() *string
90
87
  // Experimental.
91
88
  Eslint() javascript.Eslint
92
89
  // All files in this project.
@@ -113,7 +110,7 @@ type MvcCdkConstructLibrary interface {
113
110
  // It
114
111
  // includes the original set of options passed to the CLI and also the JSII
115
112
  // FQN of the project type.
116
- // Experimental.
113
+ // Deprecated: use the `initProject` argument passed to `Component.projectCreation()` instead.
117
114
  InitProject() *projen.InitProject
118
115
  // The Jest configuration (if enabled).
119
116
  // Experimental.
@@ -124,8 +121,6 @@ type MvcCdkConstructLibrary interface {
124
121
  // Logging utilities.
125
122
  // Experimental.
126
123
  Logger() projen.Logger
127
- // Deprecated: use `package.addField(x, y)`
128
- Manifest() interface{}
129
124
  // Maximum node version supported by this package.
130
125
  //
131
126
  // The value indicates the package is incompatible with newer versions.
@@ -155,9 +150,6 @@ type MvcCdkConstructLibrary interface {
155
150
  // API for managing the node package.
156
151
  // Experimental.
157
152
  Package() javascript.NodePackage
158
- // The package manager to use.
159
- // Deprecated: use `package.packageManager`
160
- PackageManager() javascript.NodePackageManager
161
153
  // Experimental.
162
154
  PackageTask() projen.Task
163
155
  // A parent project.
@@ -174,23 +166,18 @@ type MvcCdkConstructLibrary interface {
174
166
  // Manages the build process of the project.
175
167
  // Experimental.
176
168
  ProjectBuild() projen.ProjectBuild
177
- // Deprecated.
178
- ProjectType() projen.ProjectType
179
169
  // The command to use in order to run the projen CLI.
180
170
  // Experimental.
181
171
  ProjenCommand() *string
182
- // Package publisher.
183
- //
184
- // This will be `undefined` if the project does not have a
185
- // release workflow.
186
- // Deprecated: use `release.publisher`.
187
- Publisher() release.Publisher
188
172
  // Release management.
189
173
  // Experimental.
190
174
  Release() release.Release
191
175
  // The root project.
192
176
  // Experimental.
193
177
  Root() projen.Project
178
+ // The TypeScript runner used for executing TypeScript files.
179
+ // Experimental.
180
+ Runner() typescript.TypeScriptRunner
194
181
  // The command to use to run scripts (e.g. `yarn run` or `npm run` depends on the package manager).
195
182
  // Experimental.
196
183
  RunScriptCommand() *string
@@ -218,8 +205,6 @@ type MvcCdkConstructLibrary interface {
218
205
  // The upgrade workflow.
219
206
  // Experimental.
220
207
  UpgradeWorkflow() javascript.UpgradeDependencies
221
- // Deprecated: use `cdkVersion`.
222
- Version() *string
223
208
  // Access all VSCode components.
224
209
  //
225
210
  // This will be `undefined` for subprojects.
@@ -240,17 +225,6 @@ type MvcCdkConstructLibrary interface {
240
225
  // `bundledDependencies` section of your `package.json`.
241
226
  // Experimental.
242
227
  AddBundledDeps(deps ...*string)
243
- // Adds dependencies to AWS CDK modules.
244
- //
245
- // Since this is a library project, dependencies will be added as peer dependencies.
246
- // Deprecated: Not supported in v2. For v1, use `project.cdkDeps.addV1Dependencies()`
247
- AddCdkDependencies(deps ...*string)
248
- // Adds AWS CDK modules as dev dependencies.
249
- // Deprecated: Not supported in v2. For v1, use `project.cdkDeps.addV1DevDependencies()`
250
- AddCdkTestDependencies(deps ...*string)
251
- // DEPRECATED.
252
- // Deprecated: use `project.compileTask.exec()`
253
- AddCompileCommand(commands ...*string)
254
228
  // Defines normal dependencies.
255
229
  // Experimental.
256
230
  AddDeps(deps ...*string)
@@ -291,12 +265,6 @@ type MvcCdkConstructLibrary interface {
291
265
  // a task with this name.
292
266
  // Experimental.
293
267
  AddTask(name *string, props *projen.TaskOptions) projen.Task
294
- // DEPRECATED.
295
- // Deprecated: use `project.testTask.exec()`
296
- AddTestCommand(commands ...*string)
297
- // Prints a "tip" message during synthesis.
298
- // Deprecated: - use `project.logger.info(message)` to show messages during synthesis
299
- AddTip(message *string)
300
268
  // Marks the provided file(s) as being generated.
301
269
  //
302
270
  // This is achieved using the
@@ -309,9 +277,6 @@ type MvcCdkConstructLibrary interface {
309
277
  // Projen default Typescript compiler options.
310
278
  // Experimental.
311
279
  DefaultTypeScriptCompilerOptions() *javascript.TypeScriptCompilerOptions
312
- // Indicates if a script by the name name is defined.
313
- // Deprecated: Use `project.tasks.tryFind(name)`
314
- HasScript(name *string) *bool
315
280
  // Called after all components are synthesized.
316
281
  //
317
282
  // Order is *not* guaranteed.
@@ -336,7 +301,7 @@ type MvcCdkConstructLibrary interface {
336
301
  // Returns the shell command to execute in order to run a task.
337
302
  //
338
303
  // This will
339
- // typically be `npx projen TASK`.
304
+ // typically be `pnpm projen TASK`.
340
305
  // Experimental.
341
306
  RunTaskCommand(task projen.Task) *string
342
307
  // Replaces the contents of an npm package.json script.
@@ -348,8 +313,10 @@ type MvcCdkConstructLibrary interface {
348
313
  // 2. Delete all generated files
349
314
  // 3. Synthesize all subprojects
350
315
  // 4. Synthesize all components of this project
351
- // 5. Call "postSynthesize()" for all components of this project
352
- // 6. Call "this.postSynthesize()"
316
+ // 5. Call "projectCreation()" for all components, only if the project is being created for the first time
317
+ // 6. Call "postSynthesize()" for all components of this project
318
+ // 7. Call "this.postSynthesize()"
319
+ // 8. Call "postProjectCreation()" for all components, only if the project is being created for the first time
353
320
  // Experimental.
354
321
  Synth()
355
322
  // Returns a string representation of this construct.
@@ -359,9 +326,6 @@ type MvcCdkConstructLibrary interface {
359
326
  // Returns: a `FileBase` or undefined if there is no file in that path.
360
327
  // Experimental.
361
328
  TryFindFile(filePath *string) projen.FileBase
362
- // Finds a json file by name.
363
- // Deprecated: use `tryFindObjectFile`.
364
- TryFindJsonFile(filePath *string) projen.JsonFile
365
329
  // Finds an object file (like JsonFile, YamlFile, etc.) by name.
366
330
  // Experimental.
367
331
  TryFindObjectFile(filePath *string) projen.ObjectFile
@@ -387,16 +351,6 @@ type jsiiProxy_MvcCdkConstructLibrary struct {
387
351
  internal.Type__awscdkAwsCdkConstructLibrary
388
352
  }
389
353
 
390
- func (j *jsiiProxy_MvcCdkConstructLibrary) AllowLibraryDependencies() *bool {
391
- var returns *bool
392
- _jsii_.Get(
393
- j,
394
- "allowLibraryDependencies",
395
- &returns,
396
- )
397
- return returns
398
- }
399
-
400
354
  func (j *jsiiProxy_MvcCdkConstructLibrary) ArtifactsDirectory() *string {
401
355
  var returns *string
402
356
  _jsii_.Get(
@@ -597,16 +551,6 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) Ejected() *bool {
597
551
  return returns
598
552
  }
599
553
 
600
- func (j *jsiiProxy_MvcCdkConstructLibrary) Entrypoint() *string {
601
- var returns *string
602
- _jsii_.Get(
603
- j,
604
- "entrypoint",
605
- &returns,
606
- )
607
- return returns
608
- }
609
-
610
554
  func (j *jsiiProxy_MvcCdkConstructLibrary) Eslint() javascript.Eslint {
611
555
  var returns javascript.Eslint
612
556
  _jsii_.Get(
@@ -707,16 +651,6 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) Logger() projen.Logger {
707
651
  return returns
708
652
  }
709
653
 
710
- func (j *jsiiProxy_MvcCdkConstructLibrary) Manifest() interface{} {
711
- var returns interface{}
712
- _jsii_.Get(
713
- j,
714
- "manifest",
715
- &returns,
716
- )
717
- return returns
718
- }
719
-
720
654
  func (j *jsiiProxy_MvcCdkConstructLibrary) MaxNodeVersion() *string {
721
655
  var returns *string
722
656
  _jsii_.Get(
@@ -807,16 +741,6 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) Package() javascript.NodePackage {
807
741
  return returns
808
742
  }
809
743
 
810
- func (j *jsiiProxy_MvcCdkConstructLibrary) PackageManager() javascript.NodePackageManager {
811
- var returns javascript.NodePackageManager
812
- _jsii_.Get(
813
- j,
814
- "packageManager",
815
- &returns,
816
- )
817
- return returns
818
- }
819
-
820
744
  func (j *jsiiProxy_MvcCdkConstructLibrary) PackageTask() projen.Task {
821
745
  var returns projen.Task
822
746
  _jsii_.Get(
@@ -877,16 +801,6 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) ProjectBuild() projen.ProjectBuild {
877
801
  return returns
878
802
  }
879
803
 
880
- func (j *jsiiProxy_MvcCdkConstructLibrary) ProjectType() projen.ProjectType {
881
- var returns projen.ProjectType
882
- _jsii_.Get(
883
- j,
884
- "projectType",
885
- &returns,
886
- )
887
- return returns
888
- }
889
-
890
804
  func (j *jsiiProxy_MvcCdkConstructLibrary) ProjenCommand() *string {
891
805
  var returns *string
892
806
  _jsii_.Get(
@@ -897,31 +811,31 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) ProjenCommand() *string {
897
811
  return returns
898
812
  }
899
813
 
900
- func (j *jsiiProxy_MvcCdkConstructLibrary) Publisher() release.Publisher {
901
- var returns release.Publisher
814
+ func (j *jsiiProxy_MvcCdkConstructLibrary) Release() release.Release {
815
+ var returns release.Release
902
816
  _jsii_.Get(
903
817
  j,
904
- "publisher",
818
+ "release",
905
819
  &returns,
906
820
  )
907
821
  return returns
908
822
  }
909
823
 
910
- func (j *jsiiProxy_MvcCdkConstructLibrary) Release() release.Release {
911
- var returns release.Release
824
+ func (j *jsiiProxy_MvcCdkConstructLibrary) Root() projen.Project {
825
+ var returns projen.Project
912
826
  _jsii_.Get(
913
827
  j,
914
- "release",
828
+ "root",
915
829
  &returns,
916
830
  )
917
831
  return returns
918
832
  }
919
833
 
920
- func (j *jsiiProxy_MvcCdkConstructLibrary) Root() projen.Project {
921
- var returns projen.Project
834
+ func (j *jsiiProxy_MvcCdkConstructLibrary) Runner() typescript.TypeScriptRunner {
835
+ var returns typescript.TypeScriptRunner
922
836
  _jsii_.Get(
923
837
  j,
924
- "root",
838
+ "runner",
925
839
  &returns,
926
840
  )
927
841
  return returns
@@ -1027,16 +941,6 @@ func (j *jsiiProxy_MvcCdkConstructLibrary) UpgradeWorkflow() javascript.UpgradeD
1027
941
  return returns
1028
942
  }
1029
943
 
1030
- func (j *jsiiProxy_MvcCdkConstructLibrary) Version() *string {
1031
- var returns *string
1032
- _jsii_.Get(
1033
- j,
1034
- "version",
1035
- &returns,
1036
- )
1037
- return returns
1038
- }
1039
-
1040
944
  func (j *jsiiProxy_MvcCdkConstructLibrary) Vscode() vscode.VsCode {
1041
945
  var returns vscode.VsCode
1042
946
  _jsii_.Get(
@@ -1228,45 +1132,6 @@ func (m *jsiiProxy_MvcCdkConstructLibrary) AddBundledDeps(deps ...*string) {
1228
1132
  )
1229
1133
  }
1230
1134
 
1231
- func (m *jsiiProxy_MvcCdkConstructLibrary) AddCdkDependencies(deps ...*string) {
1232
- args := []interface{}{}
1233
- for _, a := range deps {
1234
- args = append(args, a)
1235
- }
1236
-
1237
- _jsii_.InvokeVoid(
1238
- m,
1239
- "addCdkDependencies",
1240
- args,
1241
- )
1242
- }
1243
-
1244
- func (m *jsiiProxy_MvcCdkConstructLibrary) AddCdkTestDependencies(deps ...*string) {
1245
- args := []interface{}{}
1246
- for _, a := range deps {
1247
- args = append(args, a)
1248
- }
1249
-
1250
- _jsii_.InvokeVoid(
1251
- m,
1252
- "addCdkTestDependencies",
1253
- args,
1254
- )
1255
- }
1256
-
1257
- func (m *jsiiProxy_MvcCdkConstructLibrary) AddCompileCommand(commands ...*string) {
1258
- args := []interface{}{}
1259
- for _, a := range commands {
1260
- args = append(args, a)
1261
- }
1262
-
1263
- _jsii_.InvokeVoid(
1264
- m,
1265
- "addCompileCommand",
1266
- args,
1267
- )
1268
- }
1269
-
1270
1135
  func (m *jsiiProxy_MvcCdkConstructLibrary) AddDeps(deps ...*string) {
1271
1136
  args := []interface{}{}
1272
1137
  for _, a := range deps {
@@ -1392,30 +1257,6 @@ func (m *jsiiProxy_MvcCdkConstructLibrary) AddTask(name *string, props *projen.T
1392
1257
  return returns
1393
1258
  }
1394
1259
 
1395
- func (m *jsiiProxy_MvcCdkConstructLibrary) AddTestCommand(commands ...*string) {
1396
- args := []interface{}{}
1397
- for _, a := range commands {
1398
- args = append(args, a)
1399
- }
1400
-
1401
- _jsii_.InvokeVoid(
1402
- m,
1403
- "addTestCommand",
1404
- args,
1405
- )
1406
- }
1407
-
1408
- func (m *jsiiProxy_MvcCdkConstructLibrary) AddTip(message *string) {
1409
- if err := m.validateAddTipParameters(message); err != nil {
1410
- panic(err)
1411
- }
1412
- _jsii_.InvokeVoid(
1413
- m,
1414
- "addTip",
1415
- []interface{}{message},
1416
- )
1417
- }
1418
-
1419
1260
  func (m *jsiiProxy_MvcCdkConstructLibrary) AnnotateGenerated(_glob *string) {
1420
1261
  if err := m.validateAnnotateGeneratedParameters(_glob); err != nil {
1421
1262
  panic(err)
@@ -1440,22 +1281,6 @@ func (m *jsiiProxy_MvcCdkConstructLibrary) DefaultTypeScriptCompilerOptions() *j
1440
1281
  return returns
1441
1282
  }
1442
1283
 
1443
- func (m *jsiiProxy_MvcCdkConstructLibrary) HasScript(name *string) *bool {
1444
- if err := m.validateHasScriptParameters(name); err != nil {
1445
- panic(err)
1446
- }
1447
- var returns *bool
1448
-
1449
- _jsii_.Invoke(
1450
- m,
1451
- "hasScript",
1452
- []interface{}{name},
1453
- &returns,
1454
- )
1455
-
1456
- return returns
1457
- }
1458
-
1459
1284
  func (m *jsiiProxy_MvcCdkConstructLibrary) PostSynthesize() {
1460
1285
  _jsii_.InvokeVoid(
1461
1286
  m,
@@ -1579,22 +1404,6 @@ func (m *jsiiProxy_MvcCdkConstructLibrary) TryFindFile(filePath *string) projen.
1579
1404
  return returns
1580
1405
  }
1581
1406
 
1582
- func (m *jsiiProxy_MvcCdkConstructLibrary) TryFindJsonFile(filePath *string) projen.JsonFile {
1583
- if err := m.validateTryFindJsonFileParameters(filePath); err != nil {
1584
- panic(err)
1585
- }
1586
- var returns projen.JsonFile
1587
-
1588
- _jsii_.Invoke(
1589
- m,
1590
- "tryFindJsonFile",
1591
- []interface{}{filePath},
1592
- &returns,
1593
- )
1594
-
1595
- return returns
1596
- }
1597
-
1598
1407
  func (m *jsiiProxy_MvcCdkConstructLibrary) TryFindObjectFile(filePath *string) projen.ObjectFile {
1599
1408
  if err := m.validateTryFindObjectFileParameters(filePath); err != nil {
1600
1409
  panic(err)