Vaadin what to add for version-control
Asked Answered
I

1

3

we are using Vaadin 14. Which folders in the project should we commit to the Version-Control? The folder node_modules is very large which is very time consuming, should we commit this?

Implacental answered 25/2, 2020 at 14:25 Comment(4)
do not, I repeat, do NOT add node_modules to gitMoniliform
Can you pls tell me which foulders i schouldn't add tooImplacental
Please add your project structure, the build tool your use, how node is setup (via the build tool? manual install?) etc. In general i'd not check in any files, your buildtool/plugins/vaadin-dev-server installs (e.g. node, node_modules, package*, webconfig*) as those files are supposed to be generated anyway.Dionysiac
vaadin uses npm only since version 14. I changed your question so its clear you are talking about V14, not 10+. If that was wrong, feel free to roll back my editsMoniliform
N
9
  • node_modules directory should not be added to version control!

  • package.json and package-lock.json keep track of npm packages and pin their versions. You may want to add these to version control, in particular, if you added any local package directly with npm.

  • webpack.config.js is webpack configuration. You can add custom webpack configuration to this file. You may want to add these to version control.

  • webpack.generated.js is auto-generated webpack configuration imported by webpack.config.js. Do not add to version control, as it is always overwritten by vaadin-maven-plugin during execution of the prepare-frontend goal.

See Build and Maintain a V14 project for more info.

Notary answered 25/2, 2020 at 14:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.