@storm-software/projen 0.8.1 → 0.8.3

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 (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-3HI6WK3M.js +137 -0
  4. package/dist/{chunk-AI3PN64I.mjs → chunk-5NY5JR5C.mjs} +248 -174
  5. package/dist/chunk-EEZAWKQ5.mjs +6 -0
  6. package/dist/chunk-FVKYD24T.js +15 -0
  7. package/dist/{chunk-EKYBRRTL.js → chunk-HQUS2SNL.js} +530 -456
  8. package/dist/chunk-LYHBU3HI.mjs +15 -0
  9. package/dist/chunk-RDD7JUBK.js +6 -0
  10. package/dist/chunk-VHOQB7WG.mjs +63 -0
  11. package/dist/chunk-VPWBNTCH.mjs +137 -0
  12. package/dist/chunk-ZH7QZ5EF.js +56 -0
  13. package/dist/generators.d.mts +1 -1
  14. package/dist/generators.d.ts +1 -1
  15. package/dist/generators.js +5 -4
  16. package/dist/generators.mjs +4 -3
  17. package/dist/{index-DUOawapu.d.mts → index-xxtRdeVG.d.mts} +3 -0
  18. package/dist/{index-DUOawapu.d.ts → index-xxtRdeVG.d.ts} +3 -0
  19. package/dist/index.d.mts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +21 -4
  22. package/dist/index.mjs +20 -3
  23. package/dist/src/components/index.d.mts +2 -0
  24. package/dist/src/components/index.d.ts +2 -0
  25. package/dist/src/components/index.js +5 -0
  26. package/dist/src/components/index.mjs +5 -0
  27. package/dist/src/components/nx-workspace.d.mts +112 -0
  28. package/dist/src/components/nx-workspace.d.ts +112 -0
  29. package/dist/src/components/nx-workspace.js +747 -0
  30. package/dist/src/components/nx-workspace.mjs +747 -0
  31. package/dist/src/generators/init/generator.d.mts +1 -1
  32. package/dist/src/generators/init/generator.d.ts +1 -1
  33. package/dist/src/generators/init/generator.js +4 -3
  34. package/dist/src/generators/init/generator.mjs +3 -2
  35. package/dist/tsup.config.js +5 -2
  36. package/dist/tsup.config.mjs +5 -2
  37. package/package.json +16 -15
  38. package/dist/chunk-23KFTIT2.mjs +0 -0
  39. package/dist/chunk-3GQAWCBQ.js +0 -13
  40. package/dist/chunk-N2YKXZ5R.js +0 -1
  41. package/dist/chunk-XUV4U54K.mjs +0 -21
@@ -0,0 +1,112 @@
1
+ import { NxWorkspace } from '@aws/pdk/monorepo/components/nx-workspace';
2
+ import { Nx } from '@aws/pdk/monorepo/nx-types';
3
+ import { NxJsonConfiguration } from '@nx/devkit';
4
+ import { Project, JsonFile } from 'projen';
5
+ import { Obj } from 'projen/lib/util';
6
+
7
+ /**
8
+ * Default NX outputs to cache
9
+ */
10
+ declare const NX_DEFAULT_BUILD_OUTPUTS: string[];
11
+ /**
12
+ * Component which manages the workspace specific NX Config for the root monorepo.
13
+ */
14
+ declare class StormNxWorkspace extends NxWorkspace {
15
+ /**
16
+ * Retrieves the singleton instance associated with project root.
17
+ *
18
+ * @param scope project instance.
19
+ */
20
+ static of(scope: Project): NxWorkspace | undefined;
21
+ /**
22
+ * Raw nx.json file to support overrides that aren't handled
23
+ * directly.
24
+ *
25
+ * **Attention:** any overrides applied here will not be visible
26
+ * in the properties and only included in final synthesized output,
27
+ * and likely to override native handling.
28
+ * @advanced
29
+ */
30
+ readonly nxJson: JsonFile;
31
+ /**
32
+ * Automatically infer NxProject targets based on project type.
33
+ * @experimental
34
+ */
35
+ autoInferProjectTargets: boolean;
36
+ /**
37
+ * List of cacheable operations.
38
+ */
39
+ cacheableOperations: string[];
40
+ /**
41
+ * Some presets use the extends property to hide some default options in a separate json file.
42
+ * The json file specified in the extends property is located in your node_modules folder.
43
+ * The Nx preset files are specified in the nx package.
44
+ *
45
+ * @default "@storm-software/workspace-tools/config/base.json"
46
+ */
47
+ extends: string;
48
+ /**
49
+ * Plugins for extending the project graph
50
+ */
51
+ nxPlugins: NxJsonConfiguration["plugins"];
52
+ /**
53
+ * Default options for `nx affected`
54
+ */
55
+ affected: Nx.INxAffectedConfig;
56
+ /**
57
+ * Named inputs
58
+ * @see https://nx.dev/reference/nx-json#inputs-&-namedinputs
59
+ */
60
+ namedInputs: Nx.INamedInputs;
61
+ /**
62
+ * Dependencies between different target names across all projects
63
+ *
64
+ * @see https://nx.dev/reference/nx-json#target-defaults
65
+ */
66
+ targetDefaults: Nx.ITargetDefaults;
67
+ /**
68
+ * Configuration for Nx releases
69
+ */
70
+ release: Obj<any>;
71
+ /**
72
+ * The number of parallel tasks to run.
73
+ *
74
+ * @defaultValue 5
75
+ */
76
+ parallel: number;
77
+ /**
78
+ * Should the daemon be used to run tasks?
79
+ *
80
+ * @defaultValue true
81
+ */
82
+ useDaemonProcess: boolean;
83
+ /**
84
+ * Set this to false to disable adding inference plugins when generating new projects
85
+ *
86
+ * @defaultValue true
87
+ */
88
+ useInferencePlugins: boolean;
89
+ /**
90
+ * The default base branch for new projects.
91
+ *
92
+ * @defaultValue "main"
93
+ */
94
+ defaultBase: string;
95
+ /**
96
+ * The CLI configuration for the workspace.
97
+ */
98
+ cli: NxJsonConfiguration["cli"] | undefined;
99
+ constructor(project: Project);
100
+ /**
101
+ * Adds a release group to the workspace.
102
+ *
103
+ * @param name The name of the release group
104
+ * @param projects The projects in the release group
105
+ * @param projectsRelationship The relationship between the projects
106
+ * @param releaseTagPattern The release tag pattern
107
+ * @param groupPreVersionCommand The command to run before versioning
108
+ */
109
+ addReleaseGroup(name: string, projects: string[] | string, projectsRelationship?: "fixed" | "independent", releaseTagPattern?: string, groupPreVersionCommand?: string): void;
110
+ }
111
+
112
+ export { NX_DEFAULT_BUILD_OUTPUTS, StormNxWorkspace };