0.4.8 ā€¢ Published 5 years ago

generator-ui5-boilerplate v0.4.8

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

UI5 Boilerplate Generator NPM version Build Status Dependency Status

Note: šŸš§ This generator is under heavy development. Use at your own risk! šŸš§

This generator is meant for use with Yeoman

Contributions are very welcome! āœŒļø

Installation

First, install Yeoman, generator-ui5-boilerplate and UI5 CLI using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-ui5-boilerplate
npm install -g @ui5/cli

Navigate to your workspace directory and then generate your new project. The generator will ask you a bunch of questions to build a comprehensive boilerplate project for you.

cd ~/workspace
yo ui5-boilerplate

After everything is set up navigate into the newly created project directory. You'll find a quick start guide in the project README.md file.

TODO

  • Add unit and integration tests for Simple App template
  • Add Master/Detail app template
  • Add Flexible Column Layout app template
  • Add Library template
  • Add sub generators for views/controllers
  • Add sub generator for control
  • Add option to read metadata file from provided OData-Service
    • and output entities etc.
    • save metadata.xml file for mockserver use
  • Add further tests for right file content
  • Add select questions for documentation purposes (All SAP Roles, ...)
  • Split app templates in base files and layout specific changes/additions (kill redundancy)


Here is a sample output of tree command for a generated simple-app project.

project-folder
ā”œā”€ā”€ webapp
ā”‚Ā Ā  ā”œā”€ā”€ controller
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ App.controller.js
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ BaseController.js
ā”‚Ā Ā  ā”œā”€ā”€ css
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ style.css
ā”‚Ā Ā  ā”œā”€ā”€ i18n
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ i18n.properties
ā”‚Ā Ā  ā”œā”€ā”€ localService
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ mockdata
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ CarrierCollection.json
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ FlightCollection.json
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ metadata.xml
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ mockserver.js
ā”‚Ā Ā  ā”œā”€ā”€ model
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ formatter.js
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ models.js
ā”‚Ā Ā  ā”œā”€ā”€ test
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ integration
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ pages
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ App.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ Common.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ AllJourneys.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ AppJourney.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ opaTests.qunit.html
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ unit
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ controller
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ BaseController.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ allTests.js
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ unitTests.qunit.html
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ testsuite.qunit.html
ā”‚Ā Ā  ā”œā”€ā”€ view
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dialogs
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ .gitkeep
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ fragments
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ .gitkeep
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ App.view.xml
ā”‚Ā Ā  ā”œā”€ā”€ Component.js
ā”‚Ā Ā  ā”œā”€ā”€ flpSandbox.html
ā”‚Ā Ā  ā”œā”€ā”€ flpSandboxMockServer.html
ā”‚Ā Ā  ā”œā”€ā”€ index.html
ā”‚Ā Ā  ā””ā”€ā”€ manifest.json
ā”œā”€ā”€ .editorconfig
ā”œā”€ā”€ .eslintignore
ā”œā”€ā”€ .eslintrc
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ .npmrc
ā”œā”€ā”€ .travis.yml
ā”œā”€ā”€ LICENSE
ā”œā”€ā”€ README.md
ā”œā”€ā”€ karma-ci.conf.js
ā”œā”€ā”€ karma.conf.js
ā”œā”€ā”€ neo-app.json
ā”œā”€ā”€ package-lock.json
ā”œā”€ā”€ package.json
ā””ā”€ā”€ ui5.yaml

15 directories, 41 files

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT Ā© Nils Lutz

GIFs

Because we all love GIFs šŸ––

Prerequisites

npm install -g @ui5/cli yo generator-ui5-boilerplate

Generator in use

yo ui5-boilerplate

Test the result

npm test

0.4.8

5 years ago

0.4.7

5 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago