-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
package.models.ts
41 lines (38 loc) · 967 Bytes
/
package.models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* To generate base json-schema models, you need to run the following command:
* `npx json2ts nx-dev/models-package/src/lib/json-schema.draft-07.json > nx-dev/models-package/src/lib/json-schema.model.ts`
*/
import { JsonSchema1 } from './json-schema.models';
export interface PackageMetadata {
githubRoot: string;
name: string;
packageName: string;
description: string;
documentation: {
id: string;
name: string;
content: string;
file: string;
path: string;
}[];
root: string;
source: string;
executors: SchemaMetadata[];
generators: SchemaMetadata[];
}
export interface SchemaMetadata {
name: string;
aliases: string[];
implementation: string;
path: string;
schema: NxSchema | null;
description: string;
hidden: boolean;
}
export interface NxSchema extends JsonSchema1 {
title: string;
description: string;
presets: { name: string; keys: string[] }[];
examplesFile: string;
hidden: boolean;
}