Methods
(static) serve(graph, options) → {Promise.<object>}
- Description:
- Start a server for the given project (sub-)tree.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graph |
@ui5/project/graph/ProjectGraph | Project graph | ||||||||||||||||||||||||||||||||||||||||||||||||||
options |
object | Options
Properties
|
Returns:
Promise resolving once the server is listening.
It resolves with an object containing the
port
,
h2
-flag and a close
function,
which can be used to stop the server.
- Type
- Promise.<object>
Type Definitions
SAPTargetCSPOptions
- Description:
- SAP target CSP middleware options
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
defaultPolicy |
string |
<optional> |
"sap-target-level-1"
|
|
defaultPolicyIsReportOnly |
string |
<optional> |
true
|
|
defaultPolicy2 |
string |
<optional> |
"sap-target-level-3"
|
|
defaultPolicy2IsReportOnly |
string |
<optional> |
true
|
|
ignorePaths |
Array.<string> |
<optional> |
["test-resources/sap/ui/qunit/testrunner.html"]
|
SAP target CSP middleware options
Type:
- object