Vaadin what to add for version-control

蹲街弑〆低调 提交于 2020-12-30 03:43:51

问题


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_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.



来源:https://stackoverflow.com/questions/60396821/vaadin-what-to-add-for-version-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!