Ionic2 应用程序的版本控制中应包含哪些源代码文件? [英] What source code files should be included in version control for Ionic2 application?

查看:31
本文介绍了Ionic2 应用程序的版本控制中应包含哪些源代码文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个 Ionic 2 应用程序.版本控制将通过 SVN 进行.使用 ionic CLI 创建应用程序时,会生成许多文件.添加平台时也会发生同样的情况.

Im building an Ionic 2 application. Version control will be made through SVN. When creating the app using ionic CLI many files are generated. Same happens when adding platforms.

是否有任何标准方法来定义哪些文件要包含在版本控制中以及哪些要忽略.(即我认为平台文件夹应该被忽略).

Is there any standard approach defining which files to include in Version Controls and which ones to ingnore. (I.E. i think platforms folder should be ignored).

推荐答案

你可以随时看看 会议应用程序 了解 Ionic 团队建议如何做事.在这种情况下,.gitignore 文件如下所示:

You can always take a look at the conference app to see how Ionic team recommends to do things. In this case the .gitignore file looks like this:

# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*

.idea/
.sass-cache/
.tmp/
.versions/
coverage/
dist/
node_modules/
tmp/
temp/
hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
$RECYCLE.BIN/

.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate

如您所见,平台和插件文件夹例如被忽略

Like you can see there, the platform and the plugins folders are being ignored for example

这篇关于Ionic2 应用程序的版本控制中应包含哪些源代码文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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