1.0.5 • Published 7 years ago
sap-cli v1.0.5
SAP UI5 CLI
A CLI For SAP UI5.
Disclaimers
This CLI is NOT official.
It's a first version so if you are looking for a robust CLI that automate every single task I'm sorry to tell you "This is not the case". However, future versions will have what you are looking for.
Install
npm install -g sap-cli
Usage
Initialization
In your main project directory you have to initialize the cli
ui5 init
You have to answer 5 questions :
- Project namespace e.g. com.example.myapp
- Project folder e.g. WebContent or WebApp
- Pages folder e.g. pages
- Fragments folder e.g. fragments
- Do you use sass yes/no
This will generate a cli.json used to help our CLI identifying your project structure.
Generators
Generating pages
To generate a page use
ui5 page <page name>
or
ui5 p <page name>
Generating fragments
To generate a fragment use
ui5 fragment <fragment name>
or
ui5 f <fragment name>
Future versions
Generating a SAPUI5 project:
- Gulp tasks automation
- SCSS Support
- Page structure Support
- Prebuilt routing system
- And more ...