forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
39 lines (31 loc) · 773 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PATH_add bin
layout ruby
export EXPO_ROOT_DIR=`pwd`
export ANDROID_HOME="${ANDROID_SDK_ROOT:=$ANDROID_SDK}"
# Enable experimental dev server in expo-cli
export EXPO_USE_DEV_SERVER=true
# Force all Expo modules to be compiled from source
export EXPO_USE_SOURCE=1
source_local() {
file=./.envrc.local
if [[ -f "$file" ]]; then
source_env "$file"
fi
watch_file "$file"
}
source_secrets() {
file=$1
if [[ -f "$file" ]] && head -1 "$file" | grep --quiet "#!"; then
source_env "$file"
fi
watch_file "$file"
}
install_git_hooks() {
for path in scripts/git-hooks/*; do
filename=$(basename $path)
ln -sf "../../scripts/git-hooks/$filename" ".git/hooks/$filename"
done
}
source_secrets secrets/expotools.env
source_local
install_git_hooks