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

问题描述

我正在构建一个Ionic 2应用程序。版本控制将通过SVN进行。
使用离子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.

是否有任何标准方法可以定义哪些文件包含在版本控制中以及哪些文件要进入内部。 (IE我认为平台文件夹应该被忽略)。

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应用程序的版本控制中应包含哪些源代码文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 16:04