什么应该在Kony项目的.gitignore文件中?

时间:2014-10-15 22:02:00

标签: git kony

对于我目前的项目,我正在开发一个Kony项目。 (在任何人要求Kony是一项要求之前)项目中有很多文件在执行任何操作之后似乎都在改变。这让我想知道哪些文件或目录可以安全忽略?

2 个答案:

答案 0 :(得分:3)

我知道这是一个老帖子,但我经常遇到人们问同样的问题。此外,随着时间的推移,这个问题的答案也在不断发展,因为Visualizer的实现在版本之间发生了很大的变化,因此很难跟上。例如,sdkplugin.properties是一个自动生成的文件,在7.3之前的Visualizer版本中曾经位于项目根目录中,无法添加到.gitignore,因为Visualizer在丢失时无法重新创建它。但我发现从Visualizer 7.3版本开始,这个文件已被移动到resources/customlibs/sdkplugin.properties,现在如果缺少-i.e,现在Visaulizer 可以重新创建它。您现在可以将其添加到.gitignore

我已经做了一段时间了,我决定把我的笔记收集到一个我称之为vis-git: "Best Practices on using Kony Visualizer with Git"的伪项目中,我将尽力跟上我的发现在较新版本的Visualizer中。我希望它对其他人有用。

然而,如果你赶时间并且只是在寻找快速答案,那么它就是:

<强> 的.gitignore

/jssrc/*
!/resources/customlibs/jsSrc

# Starting with Visualizer 8.0 the Ant Contrib Jar used for the build process will
# be regenerated when the build is fired. If you're using Visualizer 7.x then comment out
# this line. Vis 7.x will not regenerate this jar and ignoring it will break your project.
ant-contrib-0.6.jar

# Binaries.
/binaries
*.apk
*.KAR

# Starting with Vis 7.3 the /sdkplugin.properties file has been moved to
# /resources/customlibs/sdkplugin.properties and can be automatically re-created by Vis
# during the build.
resources/customlibs/sdkplugin.properties

# The jar's and zip's under these directories can be ignored so long as
# sdkplugin.properties (See above) is also ignored. The missing sdkplugin.properties will
# trigger the regeneration of these jar's and zip's during the build.
resources/customlibs/lib/android/
resources/customlibs/lib/tabrcandroid/
resources/customlibs/lib/iphone/
resources/customlibs/lib/ipad/
resources/customlibs/lib/windows10/
resources/customlibs/lib/winphone10/

# Other Visualizer auto-generated files.
/.webmeta
middleware.properties
splashscreenproperties.json

# Visualizer headless build configuration files
HeadlessBuild.properties
HeadlessBuild-Global.properties

# Visualizer modules which are automatically re-created when missing
modules/mbaasconfig.js

# Auxiliary files generated during a build to expose the widget ID's for testing.
resources/mobile/native/android/values/widgetids.xml
resources/tablet/native/androidtab/values/widgetids.xml

# NPM dependencies folder which gets created for apps using the "Nitro" Cordova integration
# when you choose NOT to use a globally installed Cordova SDK by unchecking
# `Project Settings>Application>Cordova Settings>Use globally installed Cordova version`.
node_modules

# When using the "Nitro" Cordova integration, the Cordova `plugins` and `platforms`
# directories can be ignored as with any Cordova project.
cordovatemp
web/cordova/plugins
web/cordova/platforms

# Auto-generated temporary internationalization files.
resources/i18n/

# Logs created by building from the command line.
velocity.log

# A Logger FFI that gets bundled with each project and is auto-generated by Visualizer with each build.
resources/customlibs/jsSrc/android/com/konylabs/ffi/N_KonyLogger.java
resources/customlibs/jsSrc/tabrcandroid/com/konylabs/ffi/N_KonyLogger.java
resources/customlibs/jsSrc/kiosk/KonyLogger.js
resources/customlibs/jsSrc/kiosk/KonyLogger.xml
resources/customlibs/jsSrc/windows8/KonyLogger.js
resources/customlibs/jsSrc/windows8/KonyLogger.xml
resources/customlibs/jsSrc/winmobile/KonyLogger.js
resources/customlibs/jsSrc/winmobile/KonyLogger.xml
resources/customlibs/jsSrc/winphone8/KonyLogger.js
resources/customlibs/jsSrc/winphone8/KonyLogger.xml
resources/customlibs/jsSrc/winphone81s/KonyLogger.js
resources/customlibs/jsSrc/winphone81s/KonyLogger.xml
resources/customlibs/jsXml/KonyLogger.js
resources/customlibs/jsXml/KonyLogger.xml

# A Single Sign-On FFI that gets bundled with each project and is auto-generated by Visualizer with each build.
resources/customlibs/jsSrc/kiosk/SSOFFI.js
resources/customlibs/jsSrc/kiosk/SSOFFI.xml
resources/customlibs/jsSrc/windows8/SSOFFI.js
resources/customlibs/jsSrc/windows8/SSOFFI.xml
resources/customlibs/jsSrc/winmobile/SSOFFI.js
resources/customlibs/jsSrc/winmobile/SSOFFI.xml
resources/customlibs/jsSrc/winphone8/SSOFFI.js
resources/customlibs/jsSrc/winphone8/SSOFFI.xml
resources/customlibs/jsSrc/winphone81s/SSOFFI.js
resources/customlibs/jsSrc/winphone81s/SSOFFI.xml
resources/customlibs/jsXml/SSOFFI.js
resources/customlibs/jsXml/SSOFFI.xml

# A utility FFI that gets bundled with each project and is auto-generated by Visualizer with each build.
resources/customlibs/jsSrc/android/com/konylabs/ffi/ND_binary_util.java
resources/customlibs/jsSrc/android/com/konylabs/ffi/N_binarydata.java
resources/customlibs/jsSrc/tabrcandroid/com/konylabs/ffi/ND_binary_util.java
resources/customlibs/jsSrc/tabrcandroid/com/konylabs/ffi/N_binarydata.java
resources/customlibs/jsXml/binary.util.js
resources/customlibs/jsXml/binary.util.xml
resources/customlibs/jsXml/binarydata.js
resources/customlibs/jsXml/binarydata.xml    

修改

我最近向Kony Basecamp "Git for Visualizer Projects"发表了一篇文章,在这篇文章中我更深入地探讨了这个问题。它包括.gitignore.gitattributes等等。你可以找到它here

答案 1 :(得分:1)

我当前项目的.gitignore。我相信defaults/也可以被忽略。

# Kony Studio
jssrc/
*.properties