Vaadin 为版本控制添加什么 [英] Vaadin what to add for version-control

查看:38
本文介绍了Vaadin 为版本控制添加什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 Vaadin 14. 我们应该将项目中的哪些文件夹提交给版本控制?node_modules文件夹很大,很费时间,要不要提交?

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?

推荐答案

  • node_modules 目录不应添加到版本控制!

    • node_modules directory should not be added to version control!

      package.jsonpackage-lock.json 跟踪 npm 包并固定它们的版本.您可能希望将这些添加到版本控制中,特别是如果您直接使用 npm 添加任何本地包.

      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 是 webpack 配置.您可以向此文件添加自定义 webpack 配置.您可能希望将这些添加到版本控制中.

      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 是由 webpack.config.js 导入的自动生成的 webpack 配置.不要添加到版本控制中,因为它总是在 prepare-frontend 目标的执行过程中被 vaadin-maven-plugin 覆盖.>

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

      参见 构建和维护 V14 项目了解更多信息.

      这篇关于Vaadin 为版本控制添加什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆