-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine package.json and target/frontent/package.json #7018
Comments
In which case would something be lost? Shouldn't Flow know which parts it "owns" and which parts is owned by the user? |
Dependencies are removed if they are not in the found dependencies map (e.g. all user changes). In the case where the user doesn't want auto removal they would be responsible for fixing any typos as highlighted by Manolo the comment in #6966 |
Would this mean that if read some guide online and blindly follow the instructions to run |
By default it would, as it wouldn't be found on the java side. Or then the default should be only add, but then any typos in annotations would not be fixed in the package.json making the user need to fix the dependencies. |
Let me propose a slightly more complicated design that would work in all cases that I'm aware of. Introduce a In this way, something that you add manually using e.g. If the user has manually updated a version number for a dependency that was originally added by Vaadin, then the entry in |
This would be acceptable overhead, and still a lot simpler than the current setup.
Then we could accept manual changes to devDependencies also with minimal changes in functionality. |
Acceptance criteria:
|
We should make
package.json
fully generated by flow and move the information intarget/frontend/package.json
intopackage.json
so that the plugin handles all dependencies in one place.This would mean that any user modification directly on the package.json file might be lost on an update by flow, but it would make the developers life easier as then the knowing which modules the project is actually depending on is easier and keeping track on versions can simply be done in version control.
Also this will simplify our code as we do not need to do hashes for dependencies to know if we need to run
npm i
after amvn clean
Part of #6966
The text was updated successfully, but these errors were encountered: