标签:generator yo project ui5 easy UI5 SAP
命令行:yo easy-ui5 project, 遇到错误消息:
you don't seem to have a generator with the name "easy-ui5" installed.
先用 npm install generator-easy-ui5 进行安装:
然后重新执行 yo easy-ui5 project:
Create a new OpenUI5/SAPUI5 project:
在 On which platform would you like to host the application? 里,选择 SAP Launchpad service:
创建成功:
成功创建的 SAP UI5 资源:
我们的 SAP UI5 应用资源文件就在 webapp 文件夹里:
还有一些额外的文件夹:
- deployer:
A Cloud Foundry tasks which uploads the static web resources to the HTML5 application repository service during deploy-time.
一个 CloudFoundry 任务,在用户部署 SAP UI5 时,将静态的 web resources 上传到 HTML5 应用仓库服务去。
You might miss the folders dist and mta_archieves as they will be created later during the build step.
dist 和 mta_archieves 在 build 阶段会动态创建。
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.
进入到 tutorial.myUI5App 目录下,执行脚本 npm start:
遇到这个 address already in use 的错误消息,通常都是因为本地还有一个运行的 Visual Studio Code 在本地运行 SAP UI5 应用:
最后看到的本地 Fiori Launchpad sandbox:
将 i18n_en.properties 文件的内容替换成如下字符串:
最后运行时的效果:
更多Jerry的原创文章,尽在:"汪子熙":
标签:generator,yo,project,ui5,easy,UI5,SAP 来源: https://www.cnblogs.com/sap-jerry/p/14727283.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。