日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SAP UI5 Tools 使用简介

發(fā)布時間:2023/12/19 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP UI5 Tools 使用简介 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

我們可以使用如下命令行安裝 SAP UI5 Tools:

npm install --global @ui5/cli

進(jìn)入一個空的文件夾,執(zhí)行命令行 ui5 init 報錯:

Initialization not possible: Missing package.json file

然后用命令行 npm init 生成一個 package.json:

然后重新執(zhí)行 ui5 init:

出現(xiàn)新的錯誤消息:

Could not detect project type: Could not find ‘webapp’ or ‘src’ / ‘test’ folders.
Applications should only have a ‘webapp’ folder.

那么我就手動創(chuàng)建一個 webapp 文件夾。

之后 init 執(zhí)行成功,自動創(chuàng)建了一個 ui5.yaml 文件:

內(nèi)容如下:

按照我這篇文章 使用 generator-easy-ui5 快速創(chuàng)建 SAP UI5 應(yīng)用的工程結(jié)構(gòu) 介紹的工具,創(chuàng)建一個 SAP UI5 應(yīng)用所需的基本文件層級結(jié)構(gòu)。

生成之后,查看其 package.json 里 script 區(qū)域定義的腳本:

"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"},

腳本里的 fiori 命令,即是本文標(biāo)題提到的 SAP UI5 Tools 的命令提示行工具 CLI。

執(zhí)行 npm run start,實際執(zhí)行的命令是 fiori run --open 'index.html':

最后運(yùn)行時的效果:

我們直接運(yùn)行 fiori deploy,會報錯:

‘fiori’ is not recognized as an internal or external command,
operable program or batch file.

需要在 npm 這個 wrapper 里運(yùn)行:

npm run deploy:

錯誤消息:

No deployment configuration has been detected. Run npm run deploy-config to add configuration first.

意思是沒有檢測到 deployment configuration,需要先運(yùn)行另一個命令:npm run deploy-config。

首先選擇 ABAP 環(huán)境:

這個命令行 npm run deploy-config 底層運(yùn)行的還是 yo:

Target System URL,先隨便維護(hù)一個,后續(xù)可以修改:

輸入部署到 ABAP 系統(tǒng)后生成的 bsp 應(yīng)用名稱和存儲的 ABAP package 名稱,即可成功生成 deployment configuration:

更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎

總結(jié)

以上是生活随笔為你收集整理的SAP UI5 Tools 使用简介的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。