Vaadin 为版本控制添加什么 [英] Vaadin what to add for version-control
问题描述
我们正在使用 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.json
和package-lock.json
跟踪 npm 包并固定它们的版本.您可能希望将这些添加到版本控制中,特别是如果您直接使用 npm 添加任何本地包.package.json
andpackage-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 bywebpack.config.js
. Do not add to version control, as it is always overwritten byvaadin-maven-plugin
during execution of theprepare-frontend
goal.参见 构建和维护 V14 项目了解更多信息.
这篇关于Vaadin 为版本控制添加什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!