@sapui5/generator-sapui5-templates
v1.71.6
Published
Yeoman Wrapper for SAPUI5 Application templates
Downloads
1,343
Readme
generator-sapui5-templates
Description
The Yeoman SAPUI5 templates project is a generic Yeoman wrapper for SAPUI5 templates from the SAPUI5 distribution. It uses our tried-and-true original templates:
- SAP Fiori Worklist Application (
1worklist
) - SAP Fiori Master-Detail Application (
2masterdetail
) - SAP Fiori Worklist Application OData V4 (
3worklistodatav4
)
You can finally use a Yeoman generator to create an application based on one of the SAPUI5 templates mentioned above. Just follow the Yeoman prompts to fill in the missing properties. The major.minor
version of the templates is aligned with the version of the SAPUI5 distribution.
Installation
You can install the Yeoman generator either globally or locally. The following chapters explain both options.
Global
- Get Node.js (version 8.5 or higher).
- Install the generator globally:
npm install -g yo @sapui5/generator-sapui5-templates
- Verify your installation to see if Yeoman has been installed correctly:
If theyo --generators
@sapui5/sapui5-templates
generator is listed, you're ready to go.
Local
- Go into the root folder of your existing Node project.
- Install the generator locally:
npm install @sapui5/generator-sapui5-templates --save-dev
- Verify your installation to see if Yeoman has been installed correctly:
If theyo --generators
@sapui5/sapui5-templates
generator listed, you're ready to go.
Usage
Create Your First SAPUI5 App in Seconds!
This will set up a basic SAPUI5 app with a file structure that follows our best practices.
- Scaffold your SAPUI5 project:
yo @sapui5/sapui5-templates
- Answer the prompts to create your SAPUI5 project.
- Run your app locally:
cd <your project name> npm start
Create Your SAP Fiori Worklist Application in Seconds!
This will set up a typical worklist floorplan.
- Scaffold your SAP Fiori worklist application project:
yo @sapui5/sapui5-templates:1worklist
- Answer the prompts to create your SAP Fiori worklist application project.
- Run your worklist app locally
cd <your project name> npm start
You can use this procedure for any of the available templates, just use the proper template ID:
- SAP Fiori Worklist Application (template ID:
1worklist
) - SAP Fiori Master-Detail Application (template ID:
2masterdetail
) - SAP Fiori Worklist Application OData V4 (template ID:
3worklistodatav4
)
License
The Yeoman generator for the SAPUI5 templates is provided under the terms of the SAP DEVELOPER LICENSE AGREEMENT.