@endo-ui/license 1.6.0 → 1.7.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/README.md +16 -3
- package/package.json +1 -1
- package/schemas/dev-server.json +134 -1
package/README.md
CHANGED
|
@@ -92,9 +92,22 @@ validate the new entitlement and regenerate the exact-version CI bootstrap scrip
|
|
|
92
92
|
|
|
93
93
|
## Automatic developer lease refresh
|
|
94
94
|
|
|
95
|
-
Developer leases are verified locally during `ng serve` and `ng build`.
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
Developer leases are verified locally during `ng serve` and `ng build`. The licensed builders
|
|
96
|
+
delegate to Angular's application and dev-server builders and expose the same Angular CLI options.
|
|
97
|
+
Existing Angular commands therefore continue to work after activation, including:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
ng serve --proxy-config proxy.conf.json
|
|
101
|
+
ng serve --port 4300
|
|
102
|
+
ng serve --ssl
|
|
103
|
+
ng serve --open
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
The checked-in application and dev-server schemas are synchronized directly from the installed
|
|
107
|
+
`@angular/build` package, and release validation fails if either schema drifts from Angular.
|
|
108
|
+
|
|
109
|
+
When five days or less remain, the licensed builder attempts a five-second online refresh through
|
|
110
|
+
ECAP. A successful response is signature-verified and atomically replaces the existing lease.
|
|
98
111
|
|
|
99
112
|
Temporary network or ECAP service failures do not stop a build while the existing signed lease is
|
|
100
113
|
valid. Refresh retries use a six-hour backoff and report the remaining authorization period.
|
package/package.json
CHANGED
package/schemas/dev-server.json
CHANGED
|
@@ -1,5 +1,138 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"title": "Dev Server Target",
|
|
4
|
+
"description": "Dev Server target options for Build Facade.",
|
|
3
5
|
"type": "object",
|
|
4
|
-
"
|
|
6
|
+
"properties": {
|
|
7
|
+
"buildTarget": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
|
+
"pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
|
|
11
|
+
},
|
|
12
|
+
"port": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "Port to listen on.",
|
|
15
|
+
"default": 4200
|
|
16
|
+
},
|
|
17
|
+
"host": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Host to listen on.",
|
|
20
|
+
"default": "localhost"
|
|
21
|
+
},
|
|
22
|
+
"proxyConfig": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
|
|
25
|
+
},
|
|
26
|
+
"ssl": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Serve using HTTPS.",
|
|
29
|
+
"default": false
|
|
30
|
+
},
|
|
31
|
+
"sslKey": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "SSL key to use for serving HTTPS."
|
|
34
|
+
},
|
|
35
|
+
"sslCert": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "SSL certificate to use for serving HTTPS."
|
|
38
|
+
},
|
|
39
|
+
"allowedHosts": {
|
|
40
|
+
"description": "The hosts that the development server will respond to. This option sets the Vite option of the same name. For further details: https://vite.dev/config/server-options.html#server-allowedhosts",
|
|
41
|
+
"default": [],
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "array",
|
|
45
|
+
"description": "A list of hosts that the development server will respond to.",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"description": "Indicates that all hosts are allowed. This is not recommended and a security risk."
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"define": {
|
|
57
|
+
"description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"headers": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "Custom HTTP headers to be added to all responses.",
|
|
66
|
+
"propertyNames": {
|
|
67
|
+
"pattern": "^[-_A-Za-z0-9]+$"
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"open": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"description": "Opens the url in default browser.",
|
|
76
|
+
"default": false,
|
|
77
|
+
"alias": "o"
|
|
78
|
+
},
|
|
79
|
+
"verbose": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Adds more details to output logging."
|
|
82
|
+
},
|
|
83
|
+
"liveReload": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "Whether to reload the page on change, using live-reload.",
|
|
86
|
+
"default": true
|
|
87
|
+
},
|
|
88
|
+
"servePath": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "The pathname where the application will be served."
|
|
91
|
+
},
|
|
92
|
+
"hmr": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently, only global and component stylesheets are supported."
|
|
95
|
+
},
|
|
96
|
+
"watch": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Rebuild on change.",
|
|
99
|
+
"default": true
|
|
100
|
+
},
|
|
101
|
+
"poll": {
|
|
102
|
+
"type": "number",
|
|
103
|
+
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
104
|
+
},
|
|
105
|
+
"inspect": {
|
|
106
|
+
"default": false,
|
|
107
|
+
"description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
|
|
108
|
+
"oneOf": [
|
|
109
|
+
{
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
|
|
112
|
+
},
|
|
113
|
+
{ "type": "boolean" }
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"prebundle": {
|
|
117
|
+
"description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled.",
|
|
118
|
+
"default": true,
|
|
119
|
+
"oneOf": [
|
|
120
|
+
{ "type": "boolean" },
|
|
121
|
+
{
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"exclude": {
|
|
125
|
+
"description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself. Note: specifying `@foo/bar` marks all paths within the `@foo/bar` package as excluded, including sub-paths like `@foo/bar/baz`.",
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": { "type": "string" }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": ["exclude"]
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": ["buildTarget"]
|
|
5
138
|
}
|