android – 反应原生的推荐.gitignore

我正在尝试本机反应并弹出到完整的构建环境中.遗憾的是,弹出脚本没有创建合理的.gitignore文件.

不太了解应用程序开发,我想知道我能在哪些目录.gitignore在这里?

我正在猜测:

> android / build
> android / app / build
> android / .gradle /

这些都没关系,还是还有我应该的目录.gitignore?

最佳答案
下面是带有react-native init命令的.gitignore文件.你可以找到完整的文件here.

# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

转载注明原文:android – 反应原生的推荐.gitignore - 代码日志