@digitaldefiance/express-suite-starter 2.4.17 → 3.0.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.
- package/dist/src/core/programmatic-generator.d.ts +58 -0
- package/dist/src/core/programmatic-generator.d.ts.map +1 -0
- package/dist/src/core/programmatic-generator.js +946 -0
- package/dist/src/core/programmatic-generator.js.map +1 -0
- package/dist/src/generate-monorepo.d.ts.map +1 -1
- package/dist/src/generate-monorepo.js +3 -3
- package/dist/src/generate-monorepo.js.map +1 -1
- package/dist/src/index.d.ts +24 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +25 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +2 -1
- package/scaffolding/api-lib/src/lib/application.ts +49 -17
- package/scaffolding/inituserdb/src/main.ts.mustache +35 -14
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { GeneratorConfig } from './interfaces/generator-config.interface';
|
|
2
|
+
import { CommonLanguageCode } from '@digitaldefiance/i18n-lib';
|
|
3
|
+
/**
|
|
4
|
+
* Options for programmatic (headless) monorepo generation.
|
|
5
|
+
* Provides all values that would normally be gathered via interactive prompts.
|
|
6
|
+
*/
|
|
7
|
+
export interface ProgrammaticOptions {
|
|
8
|
+
/** Fully-formed generator configuration (workspace, projects, packages, etc.) */
|
|
9
|
+
config: GeneratorConfig;
|
|
10
|
+
/** Run in dry-run mode without making filesystem changes */
|
|
11
|
+
dryRun?: boolean;
|
|
12
|
+
/** Hostname for the generated project (defaults to `{workspaceName}.local`) */
|
|
13
|
+
hostname?: string;
|
|
14
|
+
/** Language code for i18n (defaults to EN_US) */
|
|
15
|
+
language?: CommonLanguageCode;
|
|
16
|
+
/** Site metadata */
|
|
17
|
+
siteTitle?: string;
|
|
18
|
+
siteDescription?: string;
|
|
19
|
+
siteTagline?: string;
|
|
20
|
+
/** Whether to include E2E projects */
|
|
21
|
+
includeE2e?: boolean;
|
|
22
|
+
/** Additional package group names to include */
|
|
23
|
+
selectedGroups?: string[];
|
|
24
|
+
/** Devcontainer configuration */
|
|
25
|
+
devcontainer?: {
|
|
26
|
+
type: 'none' | 'simple' | 'mongodb' | 'mongodb-replicaset';
|
|
27
|
+
mongoPassword?: string;
|
|
28
|
+
};
|
|
29
|
+
/** In-memory database configuration */
|
|
30
|
+
inMemoryDb?: {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
databaseName?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Security secrets (auto-generated if not provided) */
|
|
35
|
+
secrets?: {
|
|
36
|
+
jwtSecret?: string;
|
|
37
|
+
mnemonicEncryptionKey?: string;
|
|
38
|
+
mnemonicHmacSecret?: string;
|
|
39
|
+
};
|
|
40
|
+
/** Whether to create an initial git commit */
|
|
41
|
+
createInitialCommit?: boolean;
|
|
42
|
+
/** Whether to push to remote after commit */
|
|
43
|
+
pushToRemote?: boolean;
|
|
44
|
+
/** Whether to install Playwright browsers */
|
|
45
|
+
installPlaywright?: boolean;
|
|
46
|
+
/** Whether to skip system check */
|
|
47
|
+
skipSystemCheck?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Run the monorepo generator programmatically without interactive prompts.
|
|
51
|
+
* Accepts a fully-formed configuration and executes the same step pipeline
|
|
52
|
+
* as the interactive CLI.
|
|
53
|
+
*
|
|
54
|
+
* @param options - Programmatic generation options
|
|
55
|
+
* @throws Error if configuration validation fails or a step fails
|
|
56
|
+
*/
|
|
57
|
+
export declare function generateMonorepo(options: ProgrammaticOptions): Promise<void>;
|
|
58
|
+
//# sourceMappingURL=programmatic-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programmatic-generator.d.ts","sourceRoot":"","sources":["../../../src/core/programmatic-generator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAc1E,OAAO,EAAiB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAS9E;;;GA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