We can use the following command line to installSAP UI5 Tools: Show
Enter an empty folder and execute the command lineui5 initreport errors:
Then use the command linenpm initGenerate apackage.json: Then execute againui5 init: A new error message appears:
Then I will create one manuallywebappfolder. After that, init executes successfully and automatically creates aui5.yamlFile: The contents are as follows: According to my articleUse generator-easy-ui5 to quickly create the engineering structure of SAP ui5 applicationsIntroduce the tools to create a basic file hierarchy required for SAP ui5 applications. After generation, view itspackage.jsonScript defined in script area in: "scripts": { "start": "fiori run --open 'index.html'", "start-local": "fiori run --config ./ui5-local.yaml --open 'index.html'", "start-noflp": "fiori run --open 'index.html'", "build": "ui5 build -a --clean-dest --include-task=generateManifestBundle generateCachebusterInfo", "deploy": "fiori verify", "deploy-config": "fiori add deploy-config", "unit-tests": "fiori run --open test/unit/unitTests.qunit.html", "int-tests": "fiori run --open test/integration/opaTests.qunit.html" },In the scriptfioriCommand, which is mentioned in the title of this articleSAP UI5 ToolsCommand prompt line tools forCLI。 implementnpm run start, the actual command isfiori run --open 'index.html': Effect of the last run time: We run directlyfiori deploy, an error will be reported:
It needs to be run in the wrapper NPM: npm run deploy: Error message:
It means no detectiondeployment configuration, you need to run another command first:npm run deploy-config。 First select the ABAP environment: This command linenpm run deploy-configThe bottom layer is still runningyo: Target System URL, maintain any one first, and you can modify it later: Enter the BSP application name generated after deployment to the ABAP system and the stored ABAP package name, and it can be successfully generateddeployment configuration: More of Jerry’s original articles are:
“Wang Zixi”: How to install ui5?How to install a basic development environment for SAPUI5. Step 1: Install Java Development Kit (JDK). Step 2: Set Up Environment Variables.. Step 3: Install Eclipse.. Step 4: Install a Java Web Server.. Step 5: Add Web Server to Eclipse.. Step 6: Install SAPUI5 Plugin.. Step 7: Run your Project.. Some useful hints.. What is ui5 Yaml file?A projects UI5 Tooling configuration is typically located in a YAML file named ui5. yaml , located in the root directory. Info. This document describes the configuration of UI5 Tooling-based projects and extensions.
How do I start SAPUI5?Go to File->New->Other->SAPUI5 Application Development->Application project. Then follow wizard instructions to create new SAPUI5 application project.
What are the prerequisites for developing with ui5 tooling?If your project does not have a package.json file, let npm generate it: npm init --yes.. Generate the ui5.yaml file: ui5 init.. Define the framework you want to use. OpenUI5 SAPUI5. ... . Add required libraries. ... . Start the server and work on your project! ... . If you are using Git or similar version control, commit package.. |