推荐.gitignore用于本机 [英] Recommended .gitignore for react-native
本文介绍了推荐.gitignore用于本机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试对本机和eject
进行反应,使其进入完整的构建环境.令人遗憾的是,弹出脚本没有创建合理的.gitignore
文件.
I'm trying out react native and eject
ed into a full build environment. Sadly, the eject-script did not create a sensible .gitignore
file.
对应用程序开发一无所知,我想知道我可以在.gitignore
中找到哪些目录?
Not knowing a lot about app-development, I wonder what directories I could .gitignore
here?
我猜:
-
android/build
-
android/app/build
-
android/.gradle/
android/build
android/app/build
android/.gradle/
这些好吗,或者我应该.gitignore
还有更多目录吗?
Are these alright, or are there any more directories I should .gitignore
?
推荐答案
下面是.gitignore
文件与react-native init
命令一起提供.您可以在此处找到完整文件.
Below is the .gitignore
file ships with the react-native init
command. You can find the full file 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/
package-lock.json # include if you are using npm - don't use both yarn and npm
npm-debug.log
yarn-error.log
yarn.lock # include if you are using yarn - don't use both npm and yarn
# 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
这篇关于推荐.gitignore用于本机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文