@codedrifters/configulator 0.0.85 → 0.0.87

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 (57) hide show
  1. package/lib/index.d.mts +1311 -0
  2. package/lib/index.d.ts +1311 -10
  3. package/lib/index.js +1508 -26
  4. package/lib/index.js.map +1 -0
  5. package/lib/index.mjs +1497 -0
  6. package/lib/index.mjs.map +1 -0
  7. package/package.json +11 -8
  8. package/lib/aws/aws-deployment-config.d.ts +0 -78
  9. package/lib/aws/aws-deployment-config.js +0 -134
  10. package/lib/aws/aws-deployment-target.d.ts +0 -183
  11. package/lib/aws/aws-deployment-target.js +0 -163
  12. package/lib/aws/aws-types.d.ts +0 -63
  13. package/lib/aws/aws-types.js +0 -9
  14. package/lib/aws/index.d.ts +0 -2
  15. package/lib/aws/index.js +0 -19
  16. package/lib/git/git-types.d.ts +0 -18
  17. package/lib/git/git-types.js +0 -9
  18. package/lib/git/index.d.ts +0 -1
  19. package/lib/git/index.js +0 -18
  20. package/lib/jsii/index.d.ts +0 -1
  21. package/lib/jsii/index.js +0 -18
  22. package/lib/jsii/jsii-faker.d.ts +0 -47
  23. package/lib/jsii/jsii-faker.js +0 -103
  24. package/lib/pnpm/index.d.ts +0 -1
  25. package/lib/pnpm/index.js +0 -18
  26. package/lib/pnpm/pnpm-workspace.d.ts +0 -244
  27. package/lib/pnpm/pnpm-workspace.js +0 -176
  28. package/lib/projects/index.d.ts +0 -2
  29. package/lib/projects/index.js +0 -19
  30. package/lib/projects/monorepo-project.d.ts +0 -82
  31. package/lib/projects/monorepo-project.js +0 -277
  32. package/lib/projects/typescript-project.d.ts +0 -20
  33. package/lib/projects/typescript-project.js +0 -181
  34. package/lib/tasks/index.d.ts +0 -1
  35. package/lib/tasks/index.js +0 -18
  36. package/lib/tasks/reset-task.d.ts +0 -51
  37. package/lib/tasks/reset-task.js +0 -149
  38. package/lib/turbo/index.d.ts +0 -2
  39. package/lib/turbo/index.js +0 -19
  40. package/lib/turbo/turbo-repo-task.d.ts +0 -36
  41. package/lib/turbo/turbo-repo-task.js +0 -43
  42. package/lib/turbo/turbo-repo.d.ts +0 -375
  43. package/lib/turbo/turbo-repo.js +0 -299
  44. package/lib/typescript/index.d.ts +0 -1
  45. package/lib/typescript/index.js +0 -18
  46. package/lib/typescript/typescript-config.d.ts +0 -13
  47. package/lib/typescript/typescript-config.js +0 -40
  48. package/lib/versions.d.ts +0 -34
  49. package/lib/versions.js +0 -38
  50. package/lib/vscode/index.d.ts +0 -1
  51. package/lib/vscode/index.js +0 -18
  52. package/lib/vscode/vscode.d.ts +0 -10
  53. package/lib/vscode/vscode.js +0 -38
  54. package/lib/workflows/aws-deploy-workflow.d.ts +0 -86
  55. package/lib/workflows/aws-deploy-workflow.js +0 -313
  56. package/lib/workflows/index.d.ts +0 -1
  57. package/lib/workflows/index.js +0 -18
@@ -1,375 +0,0 @@
1
- import { Component, Project, Task } from "projen/lib";
2
- import { BuildWorkflowOptions } from "projen/lib/build";
3
- import { NodeProject } from "projen/lib/javascript";
4
- import { TurboRepoTask } from "./turbo-repo-task";
5
- /*******************************************************************************
6
- *
7
- * Turbo Repo Config
8
- *
9
- ******************************************************************************/
10
- export declare const ROOT_TURBO_TASK_NAME = "turbo:build";
11
- export declare const ROOT_CI_TASK_NAME = "build:all";
12
- export interface RemoteCacheOptions {
13
- /**
14
- * Local profile name to use when fetching the cache endpoint and token.
15
- */
16
- readonly profileName: string;
17
- /**
18
- * OIDC role to assume when fetching the cache endpoint and token.
19
- */
20
- readonly oidcRole: string;
21
- /**
22
- * Name for the params used to store the cache endpoint.
23
- */
24
- readonly endpointParamName: string;
25
- /**
26
- * Name for the params used to store the cache's API token.
27
- */
28
- readonly tokenParamName: string;
29
- /**
30
- * team name used in remote cache commands
31
- */
32
- readonly teamName: string;
33
- }
34
- export interface TurboRepoOptions {
35
- /**
36
- * Version of turborepo to use.
37
- *
38
- * @default: specified in versions file
39
- */
40
- readonly turboVersion?: string;
41
- /**
42
- * Extend from the root turbo.json to create specific configuration for a package using Package Configurations.
43
- *
44
- * The only valid value for extends is ["//"] to inherit configuration from the root turbo.json.
45
- * If extends is used in the root turbo.json, it will be ignored.
46
- *
47
- * https://turbo.build/repo/docs/reference/configuration#extends
48
- */
49
- readonly extends?: Array<string>;
50
- /**
51
- * A list of globs that you want to include in all task hashes. If any file matching these globs changes, all tasks will miss cache. Globs are relative to the location of turbo.json.
52
- *
53
- * By default, all files in source control in the Workspace root are included in the global hash.
54
- *
55
- * Globs must be in the repository's source control root. Globs outside of the repository aren't supported.
56
- *
57
- * https://turbo.build/repo/docs/reference/configuration#globaldependencies
58
- */
59
- readonly globalDependencies?: Array<string>;
60
- /**
61
- * A list of environment variables that you want to impact the hash of all tasks. Any change to these environment variables will cause all tasks to miss cache.
62
- *
63
- * For more on wildcard and negation syntax, see the env section.
64
- *
65
- * https://turbo.build/repo/docs/reference/configuration#globalenv
66
- */
67
- readonly globalEnv?: Array<string>;
68
- /**
69
- * A list of environment variables that you want to make available to tasks.
70
- * Using this key opts all tasks into Strict
71
- * Environment Variable Mode.
72
- *
73
- * Additionally, Turborepo has a built-in set of global passthrough variables
74
- * for common cases, like operating system environment variables. This
75
- * includes variables like HOME, PATH, APPDATA, SHELL, PWD, and more. The full
76
- * list can be found in the source code.
77
- *
78
- * Passthrough values do not contribute to hashes for caching
79
- *
80
- * If you want changes in these variables to cause cache misses, you will need
81
- * to include them in env or globalEnv.
82
- *
83
- * https://turbo.build/repo/docs/reference/configuration#globalpassthroughenv
84
- */
85
- readonly globalPassThroughEnv?: Array<string>;
86
- /**
87
- * @default: "stream"
88
- *
89
- * Select a terminal UI for the repository.
90
- *
91
- * "tui" allows for viewing each log at once and interacting with the task.
92
- * "stream" outputs logs as they come in and is not interactive.
93
- *
94
- * https://turbo.build/repo/docs/reference/configuration#ui
95
- */
96
- readonly ui?: "tui" | "stream";
97
- /**
98
- * @default: false
99
- *
100
- * Turborepo uses your repository's lockfile to determine caching behavior,
101
- * Package Graphs, and more. Because of this, we use the packageManager field
102
- * to help you stabilize your Turborepo.
103
- *
104
- * To help with incremental migration or in situations where you can't use
105
- * the packageManager field, you may use
106
- * --dangerously-disable-package-manager-check to opt out of this check and
107
- * assume the risks of unstable lockfiles producing unpredictable behavior.
108
- * When disabled, Turborepo will attempt a best-effort discovery of the
109
- * intended package manager meant for the repository.
110
- *
111
- * https://turbo.build/repo/docs/reference/configuration#dangerouslydisablepackagemanagercheck
112
- */
113
- readonly dangerouslyDisablePackageManagerCheck?: boolean;
114
- /**
115
- * @default: ".turbo/cache"
116
- *
117
- * Specify the filesystem cache directory.
118
- *
119
- * https://turbo.build/repo/docs/reference/configuration#cachedir
120
- */
121
- readonly cacheDir?: string;
122
- /**
123
- * @default: true
124
- *
125
- * Turborepo runs a background process to pre-calculate some expensive
126
- * operations. This standalone process (daemon) is a performance optimization,
127
- * and not required for proper functioning of turbo.
128
- *
129
- * https://turbo.build/repo/docs/reference/configuration#daemon
130
- */
131
- readonly daemon?: boolean;
132
- /**
133
- * @default: "strict"
134
- *
135
- * Turborepo's Environment Modes allow you to control which environment
136
- * variables are available to a task at runtime:
137
- *
138
- *"strict": Filter environment variables to only those that are specified
139
- * in the env and globalEnv keys in turbo.json.
140
- *
141
- * "loose": Allow all environment variables for the process to be available.
142
- *
143
- * https://turbo.build/repo/docs/reference/configuration#envmode
144
- */
145
- readonly envMode?: string;
146
- /*****************************************************************************
147
- *
148
- * Cache Settings
149
- *
150
- ****************************************************************************/
151
- /**
152
- * Cache settings, if using remote cache.
153
- */
154
- readonly remoteCacheOptions?: RemoteCacheOptions;
155
- /**
156
- * Env Args that will bre added to turbo's build:all task
157
- *
158
- * @default: {}
159
- */
160
- readonly buildAllTaskEnvVars?: Record<string, string>;
161
- /*****************************************************************************
162
- *
163
- * Tasks - Optionally define a different projen task for one of the lifecycle
164
- * steps.
165
- *
166
- ****************************************************************************/
167
- /**
168
- * Pre compile task
169
- *
170
- * @default: "pre-compile"
171
- */
172
- readonly preCompileTask?: Task;
173
- /**
174
- * Compile task
175
- *
176
- * @default: "compile"
177
- */
178
- readonly compileTask?: Task;
179
- /**
180
- * Post compile task
181
- *
182
- * @default: "post-compile"
183
- */
184
- readonly postCompileTask?: Task;
185
- /**
186
- * Test task
187
- *
188
- * @default: "test"
189
- */
190
- readonly testTask?: Task;
191
- /**
192
- * Package task
193
- *
194
- * @default: "package"
195
- */
196
- readonly packageTask?: Task;
197
- }
198
- export declare class TurboRepo extends Component {
199
- readonly project: NodeProject;
200
- /**
201
- * Static method to discovert turbo in a project.
202
- */
203
- static of(project: Project): TurboRepo | undefined;
204
- static buildWorkflowOptions: (remoteCacheOptions: RemoteCacheOptions) => Partial<BuildWorkflowOptions>;
205
- /**
206
- * Version of turborepo to use.
207
- */
208
- readonly turboVersion: string;
209
- /**
210
- * Extend from the root turbo.json to create specific configuration for a package using Package Configurations.
211
- *
212
- * The only valid value for extends is ["//"] to inherit configuration from the root turbo.json.
213
- * If extends is used in the root turbo.json, it will be ignored.
214
- *
215
- * https://turbo.build/repo/docs/reference/configuration#extends
216
- */
217
- readonly extends: Array<string>;
218
- /**
219
- * A list of globs that you want to include in all task hashes. If any file matching these globs changes, all tasks will miss cache. Globs are relative to the location of turbo.json.
220
- *
221
- * By default, all files in source control in the Workspace root are included in the global hash.
222
- *
223
- * Globs must be in the repository's source control root. Globs outside of the repository aren't supported.
224
- *
225
- * https://turbo.build/repo/docs/reference/configuration#globaldependencies
226
- */
227
- readonly globalDependencies: Array<string>;
228
- /**
229
- * A list of environment variables that you want to impact the hash of all tasks. Any change to these environment variables will cause all tasks to miss cache.
230
- *
231
- * For more on wildcard and negation syntax, see the env section.
232
- *
233
- * https://turbo.build/repo/docs/reference/configuration#globalenv
234
- */
235
- readonly globalEnv: Array<string>;
236
- /**
237
- * A list of environment variables that you want to make available to tasks.
238
- * Using this key opts all tasks into Strict
239
- * Environment Variable Mode.
240
- *
241
- * Additionally, Turborepo has a built-in set of global passthrough variables
242
- * for common cases, like operating system environment variables. This
243
- * includes variables like HOME, PATH, APPDATA, SHELL, PWD, and more. The full
244
- * list can be found in the source code.
245
- *
246
- * Passthrough values do not contribute to hashes for caching
247
- *
248
- * If you want changes in these variables to cause cache misses, you will need
249
- * to include them in env or globalEnv.
250
- *
251
- * https://turbo.build/repo/docs/reference/configuration#globalpassthroughenv
252
- */
253
- readonly globalPassThroughEnv: Array<string>;
254
- /**
255
- * @default: "stream"
256
- *
257
- * Select a terminal UI for the repository.
258
- *
259
- * "tui" allows for viewing each log at once and interacting with the task.
260
- * "stream" outputs logs as they come in and is not interactive.
261
- *
262
- * https://turbo.build/repo/docs/reference/configuration#ui
263
- */
264
- readonly ui: "tui" | "stream";
265
- /**
266
- * @default: false
267
- *
268
- * Turborepo uses your repository's lockfile to determine caching behavior,
269
- * Package Graphs, and more. Because of this, we use the packageManager field
270
- * to help you stabilize your Turborepo.
271
- *
272
- * To help with incremental migration or in situations where you can't use
273
- * the packageManager field, you may use
274
- * --dangerously-disable-package-manager-check to opt out of this check and
275
- * assume the risks of unstable lockfiles producing unpredictable behavior.
276
- * When disabled, Turborepo will attempt a best-effort discovery of the
277
- * intended package manager meant for the repository.
278
- *
279
- * https://turbo.build/repo/docs/reference/configuration#dangerouslydisablepackagemanagercheck
280
- */
281
- readonly dangerouslyDisablePackageManagerCheck: boolean;
282
- /**
283
- * @default: ".turbo/cache"
284
- *
285
- * Specify the filesystem cache directory.
286
- *
287
- * https://turbo.build/repo/docs/reference/configuration#cachedir
288
- */
289
- readonly cacheDir: string;
290
- /**
291
- * @default: true
292
- *
293
- * Turborepo runs a background process to pre-calculate some expensive
294
- * operations. This standalone process (daemon) is a performance optimization,
295
- * and not required for proper functioning of turbo.
296
- *
297
- * https://turbo.build/repo/docs/reference/configuration#daemon
298
- */
299
- readonly daemon: boolean;
300
- /**
301
- * @default: "strict"
302
- *
303
- * Turborepo's Environment Modes allow you to control which environment
304
- * variables are available to a task at runtime:
305
- *
306
- *"strict": Filter environment variables to only those that are specified
307
- * in the env and globalEnv keys in turbo.json.
308
- *
309
- * "loose": Allow all environment variables for the process to be available.
310
- *
311
- * https://turbo.build/repo/docs/reference/configuration#envmode
312
- */
313
- readonly envMode: string;
314
- /*****************************************************************************
315
- *
316
- * Cache Settings
317
- *
318
- ****************************************************************************/
319
- /**
320
- * Cache settings, if using remote cache.
321
- */
322
- readonly remoteCacheOptions?: RemoteCacheOptions;
323
- /**
324
- * is this the root project?
325
- */
326
- readonly isRootProject: boolean;
327
- /**
328
- * Turbo's build:all task at the root of the monorepo.
329
- *
330
- * This is a normal projen task that runs the root turbo task.
331
- */
332
- readonly buildAllTask?: Task;
333
- /**
334
- * Main turbo:build task
335
- *
336
- * This is a special Turbo task
337
- */
338
- readonly buildTask: TurboRepoTask;
339
- /**
340
- * pre compile task
341
- */
342
- readonly preCompileTask?: TurboRepoTask;
343
- /**
344
- * compile task
345
- */
346
- readonly compileTask?: TurboRepoTask;
347
- /**
348
- * post compile task
349
- */
350
- readonly postCompileTask?: TurboRepoTask;
351
- /**
352
- * Test task
353
- */
354
- readonly testTask?: TurboRepoTask;
355
- /**
356
- * Package task
357
- */
358
- readonly packageTask?: TurboRepoTask;
359
- /**
360
- * Sub-Tasks to run
361
- */
362
- readonly tasks: Array<TurboRepoTask>;
363
- /**
364
- * Env Args that will bre added to turbo's build:all task
365
- */
366
- readonly buildAllTaskEnvVars: Record<string, string>;
367
- constructor(project: NodeProject, options?: TurboRepoOptions);
368
- /**
369
- * Add an env var to the global env vars for all tasks.
370
- * This will also become an input for the build:all task cache at the root.
371
- */
372
- addGlobalEnvVar(name: string, value: string): void;
373
- activateBranchNameEnvVar(): void;
374
- preSynthesize(): void;
375
- }