Open tobiasqueck opened 2 months ago
@tobiasqueck @ytpo-lyne @heimwege some comments.
.old
. Deleting the js is fine.ui5-local.yaml
and flp.yaml
(for embedded preview) also need changes, how do we deal with custom yaml files, custom scripts?package.json
which is good to preserve compatibility with run configurations. So far I don't see them affected, if we keep the URL hash (intent) from the package.json
.@sap/ux-ui5-tooling
as of now?@cfg74 If we keep files (and renaming them) we should at least inform the user about the changed name and the fact that they are no longer needed and can be deleted. But what's the value in keeping this file?
What about deleting the existing tests/testsuite glue code and serving this as well? Is this out of scope?
@heimwege Yes, information is key. I'm always cautious with files potentially including modifications by the customers, renaming is safe.
Good point about test suite, haven't discussed with @tobiasqueck about this yet or can't remember a decision. Will check with him. Do we have an eject for the test related files? This would be a pre-requisite for transition.
As a developer, I want to get rid of the flpSandbox.html file in my webapp/test folder and use the on-the-fly generated one from the preview-middleware instead, so that I I don't have to worry about keeping it up-to-date
Description
Currently (but soon to be changed), a generated Fiori application project contains a file at
webapp/test/flpSandbox.html
that is used to locally preview the application but is not used productively. This file has evolved over time - especially to get it ready for UI5 2.0 - therefore, as an owner of an older project, I need to keep it update to date. In the future, this file will not be generated into new projects anymore, instead it is generated on-the-fly by the preview middleware. This feature request is to allow remove the file and update the configurations of an existing project, so that this file isn't required anymore.Technical Design
Enhance the
@sap-ux/create
module with a new commandsap-ux delete flp
which thenwebapp/test/flpSandbox.html
andwebapp/test/locate-reuse-libs.js
package.json
what configuration should be usedpackage.json
if requiredAcceptance Criteria
GivenWhenThen format (https://martinfowler.com/bliki/GivenWhenThen.html)
Given I have an existing Fiori application project with the deprecated middleware config and an flpSandbox file ... when I execute
sap-ux delete flp
then then theui5*.yaml
files, and thepackage.json
will change so that they work with the local flpSandbox, and the obsolete files are removed.Notes
Assuming a project has following scripts in the
package.json
and following configuration in the
ui5*.yaml
filesThen after executing the script, the files will be
Tasks