Skip to content

Commit

Permalink
[docs] Add info about .expo folder in Expo CLI doc (expo#23103)
Browse files Browse the repository at this point in the history
  • Loading branch information
amandeepmittal authored Jun 27, 2023
1 parent b2ea20c commit 79993fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pages/guides/adopting-prebuild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ The following changes are optional but recommended.

**.gitignore**

You can add `.expo/` to your `.gitignore` to prevent generated values from Expo CLI from being committed. You can also add `ios/` and `android/` to the `.gitignore` if you want to ensure they aren't committed between prebuilds.
You can add **.expo** to your **.gitignore** to prevent generated values from Expo CLI from being committed. These [values are unique to your project](/more/expo-cli/#expo-directory) on your local computer.

You can also add **android** and **ios** to the **.gitignore** if you want to ensure they aren't committed between prebuilds.

**app.json**

Expand Down
9 changes: 9 additions & 0 deletions docs/pages/more/expo-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ Offline will prevent the CLI from making network requests. If you don't use the

Expo CLI makes network requests to sign manifests with your user credentials to ensure sensitive information is sandboxed in reusable runtimes like Expo Go.

### .expo directory

When the you start the development server in a project for the first time, a **.expo** directory is created at the root of that project. It contains two files:

- **devices.json**: Contains information about devices that have opened this project recently.
- **settings.json**: Contains information about server configuration that is used to serve the project's manifest.

Both of these files have information that is specific to your local computer. This is the reason why **.expo** directory is included in the **.gitignore** file, by default, when a new project is created. It is not meant to be shared with other developers.

## Building

A React Native app consists of two parts: a native runtime ([compiling](#compiling)), and static files like JavaScript bundles and assets ([exporting](#exporting)). Expo CLI provides commands for performing both tasks.
Expand Down

0 comments on commit 79993fb

Please sign in to comment.