0

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

4

2 回答 2

4

我知道这是一篇旧帖子,但我经常遇到有人问同样的问题。此外,这个问题的答案会随着时间的推移而发展,因为 Visualizer 的实现在不同版本之间变化很大,因此很难跟上。例如sdkplugin.properties,在 Visualizer 7.3 之前的版本中,一个自动生成的文件曾经位于项目根目录中,并且无法添加到,.gitignore因为 Visualizer 在丢失时无法重新创建它。但是我发现从 Visualizer 7.3 版开始,这个文件已经被移动到了resources/customlibs/sdkplugin.properties,现在 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”,在那里我更深入地研究了这个主题。它包括 a .gitignore, a.gitattributes等等。你可以在这里找到它。

于 2017-08-25T18:02:08.133 回答
1

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

# Kony Studio
jssrc/
*.properties
于 2015-05-30T09:35:08.520 回答