Closed Domae84 closed 5 years ago
Hi Dominik,
you're right. In the meantime you can use this script which is the default if you create the project with Easy-ui5 generator
"build-ui": "rimraf dist && ui5 build --a"
This is a duplicate of https://github.com/SAP/ui5-builder/issues/45.
@mauriciolauffer already implemented the necessary API for the UI5 Builder: https://github.com/SAP/ui5-builder/pull/306. It just needs to be exposed in the CLI.
@RandomByte Thanks for your quick answer. I just updated my ui5 tooling. My ui5-builder is now at version 1.5.1. Is there any CLI parameter to use this feature or how do I clean the dist folder? I tried the parameter clean-dest like you mentioned, but without any success.
The CLI parameter is not yet available. But will be very soon 😉: https://github.com/SAP/ui5-cli/pull/243
UI5 CLI v1.9.0 adds the --clean-dest
parameter. Use it like this: ui5 build --clean-dest
.
Thanks @mauriciolauffer for implementing this new feature!
It works like a charm! Thanks a lot @mauriciolauffer and @RandomByte
Expected Behavior
The dist folder should be cleaned before a build
Current Behavior
When you build your app when a dist folder allready exists, all old files which may not be part of the application anymore, still remains in the dist folder and will be part of the new build.
Steps to reproduce the issue
Context
ui5 --version
when using the CLI):1.5.4
v10.16.0
6.9.0
Windows 10
Chrome
Affected components (if known)
If this behaviour is supposed to be like this, is there a way to clean the dist folder before the execution of the actual build, without using Grunt or something else?
Best Regards Domae