ui5.yaml The file path in the file must use the symbol / namely forward slash Symbol .
framework The type can be chosen SAPUI5 perhaps OpenUI5:
Information printed above :
Using SAPUI5 version: 1.98.0
Because we put the version number 1.98.0 It's defined in ui5-local.yaml Of documents framework Regional version In the field .
But at runtime , We will see that this version number is overridden by another higher priority setting : namely webapp In folder manifest.json Medium minUI5Version:1.66.0:
SAP UI5 Runtime dependency list , They are listed in framework Regional libraries In the field :
It will be installed automatically at run time :
Installing missing package @sapui5/distribution-metadata...
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/sap.suite.ui.generic.template...
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/sap.ui.generic.app...
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/sap.ui.comp...
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/sap.ushell...
info normalizer:ui5Framework:npm:Installer Installing missing package @openui5/sap.f...
info normalizer:ui5Framework:npm:Installer Installing missing package @openui5/sap.ui.core...
info normalizer:ui5Framework:npm:Installer Installing missing package @openui5/sap.m...
info normalizer:ui5Framework:npm:Installer Installing missing package @openui5/sap.ui.table...
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/sap.fe.placeholder...
If you need to exclude some irrelevant resources, such as unit tests and integration tests, from the final build results , You can use the following syntax :
builder:
resources:
excludes:
- "/resources/some/project/name/test_results/**"
- "/test-resources/**"
- "!/test-resources/some/project/name/demo-app/**"SAP UI5 Tools By default 8080 port .
If you want to change the default port , Use the syntax :
server:
settings:
httpPort: 1337
httpsPort: 1443 Command line ui5 tree: Display the dependency information of the project in a graphical interface :
function ui5 build, stay dist Create... In the folder Component-preload.js:
(1/8) Running task escapeNonAsciiCharacters...
info builder:builder application project1 (2/8) Running task replaceCopyright...
info builder:builder application project1 (3/8) Running task replaceVersion...
info builder:builder application project1 (4/8) Running task generateFlexChangesBundle...
info builder:builder application project1 (5/8) Running task generateComponentPreload...
info builder:builder application project1 (6/8) Running task createDebugFiles...
info builder:builder application project1 (7/8) Running task uglify...
info builder:builder application project1 (8/8) Running task generateVersionInfo...
Use ui5 build --all take sap-ui-core.js Wait for dependencies to build to the final package in .
Usually , We recommend global installation UI5 CLI (npm install --global @ui5/cli).
however , take UI5 CLI As devDependency (npm install --save-dev @ui5/cli) Added to the project package.json It makes sense . This ensures that every developer working on the project uses the same version of UI5 CLI, And your continuous integration environment also uses this version .
If you have both local and global installations in a project ,UI5 CLI Will always attempt to invoke the local installation . That's partly because package.json As defined in npm The script will also always call the local installation .
You can set environment variables by UI5_CLI_NO_LOCAL Disable this behavior .
more Jerry The original article of , All in :" Wang Zixi ":







