-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.json
57 lines (56 loc) · 2.96 KB
/
schema.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"$schema": {
"description": "The schema of the module definition. Should be 'https://raw.githubusercontent.com/LoaderB0T/ng-dynamic-mf/refs/heads/main/schema.json' or similar.",
"type": "string"
},
"modules": {
"description": "The modules that should be loaded from the host application.",
"items": {
"description": "Defines a module that should be loaded from the host application.",
"properties": {
"globalStyleBundleName": {
"description": "If your filename is not \"global-styles.css\" you can specify the name of the bundle here.\nIf the file gets a hashed suffix by Angular, you can use nx-dynamic-mf to adjust this property with the \"construct\" command.",
"type": "string"
},
"hasGlobalStyles": {
"description": "If set to true, the global styles of the module will be loaded. make sure to export the styles as described in the projects readme.",
"type": "boolean"
},
"hash": {
"description": "The hash of the remote entry file. You can calculate the hash yourself or use the \"hash\" command of nx-dynamic-mf.",
"type": "string"
},
"name": {
"description": "The name of the module to be loaded.\nThis name will be also used to resolve paths to assets.",
"type": "string"
},
"ngModuleName": {
"description": "The name of the Angular module to be loaded. This module will be loaded on startup of the host.\nThe module must be exported in the remote entry file.\nIn this module, you might want to register routes using the RouterEntryService and probably register a menu item using your menu service.",
"type": "string"
},
"projectName": {
"description": "The internal project name of the module to be loaded.\nThis is only required for some commands of nx-dynamic-mf and does not affect the runtime.\nDefaults to the value of `name`.",
"type": "string"
},
"url": {
"description": "The URL where to look for the remote entry file.\nCan be relative to the host application or absolute.",
"type": "string"
}
},
"required": [
"name",
"ngModuleName",
"url"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"modules"
],
"type": "object"
}