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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

使用 yo 命令行向导创建 SAP UI5 应用

發(fā)布時(shí)間:2023/12/19 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 使用 yo 命令行向导创建 SAP UI5 应用 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

命令行:yo easy-ui5 project, 遇到錯(cuò)誤消息:

you don’t seem to have a generator with the name “easy-ui5” installed.

先用 npm install generator-easy-ui5 進(jìn)行安裝:

然后重新執(zhí)行 yo easy-ui5 project:

Create a new OpenUI5/SAPUI5 project:

在 On which platform would you like to host the application? 里,選擇 SAP Launchpad service:

創(chuàng)建成功:

成功創(chuàng)建的 SAP UI5 資源:

我們的 SAP UI5 應(yīng)用資源文件就在 webapp 文件夾里:

還有一些額外的文件夾:

  • deployer:

A Cloud Foundry tasks which uploads the static web resources to the HTML5 application repository service during deploy-time.

一個(gè) CloudFoundry 任務(wù),在用戶部署 SAP UI5 時(shí),將靜態(tài)的 web resources 上傳到 HTML5 應(yīng)用倉庫服務(wù)去。

You might miss the folders dist and mta_archieves as they will be created later during the build step.

dist 和 mta_archieves 在 build 階段會(huì)動(dòng)態(tài)創(chuàng)建。

This project leverages the UI5 tooling framework for development. This tool belt can help you to start a local web server and is extendable so you can integrate mocked destinations and a live-reload feature when files are updated. The great thing is, you don’t have to worry about this for now. The easy-ui5 generator already installed these two tasks for you. Additional UI5 tooling tasks can be found on npm.com.

進(jìn)入到 tutorial.myUI5App 目錄下,執(zhí)行腳本 npm start:

遇到這個(gè) address already in use 的錯(cuò)誤消息,通常都是因?yàn)楸镜剡€有一個(gè)運(yùn)行的 Visual Studio Code 在本地運(yùn)行 SAP UI5 應(yīng)用:

最后看到的本地 Fiori Launchpad sandbox:

將 i18n_en.properties 文件的內(nèi)容替換成如下字符串:

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

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

總結(jié)

以上是生活随笔為你收集整理的使用 yo 命令行向导创建 SAP UI5 应用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

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