问题
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?
回答1:
node_modulesdirectory should not be added to version control!package.jsonandpackage-lock.jsonkeep 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.jsis webpack configuration. You can add custom webpack configuration to this file. You may want to add these to version control.webpack.generated.jsis auto-generated webpack configuration imported bywebpack.config.js. Do not add to version control, as it is always overwritten byvaadin-maven-pluginduring execution of theprepare-frontendgoal.
See Build and Maintain a V14 project for more info.
来源:https://stackoverflow.com/questions/60396821/vaadin-what-to-add-for-version-control