Open tobiasqueck opened 3 years ago
Hello Tobias! Pls. be aware of the following:
Current state:
@sap-ux/fe-fpm-writer
@sap-ux/fe-fpm-writer
@sap-ux/fe-fpm-writer
No code duplications and first set of FPM features is transparently implemented in the open-ux-tools
repository.
As a developer, I want to be able to efficiently add flexible programming model extensions to my Fiori elements for OData v4 application, so that I can focus on the actually functionality instead of integration syntax.
Description
A developer using the flexible programming model is likely to be a technical person that is familiar with (or even fond of) the CLI to generate project artifacts. With this feature we want to empower those developers to efficiently add FPM extensions like custom pages or custom actions to their projects. In addition, the more UI based tools (Fiori tools page modeler and guide development) can also make use of the templates and prompts used by the CLI, so that FPM extensions generated with the CLI or other tools are consistent.
Technical Design
npm init
without the requirement to install anything likeyo
etc. (https://docs.npmjs.com/cli/v7/commands/npm-init)Acceptance Criteria
Given I am in the root folder of an existing Fiori elements v4 project when I execute
npm init @sap-ux/fiori-fpm
then I will be able to use a simple CLI based generator adding FPM boilerplate code to my project.Given I am NOT in the root folder of an existing Fiori elements v4 project when I execute
npm init @sap-ux/fiori-fpm
then I will be told what I did wrong.Given I am the developer of tools for Fiori elements when I want to reuse either the templates or the prompts then I will be able to do that without any other unnecessary modules.
Notes
Tasks