xref: /expo/scripts/download-dependencies.sh (revision ef80677c)
1#!/usr/bin/env bash
2
3require() {
4  if [[ -z $(command -v $1 2>/dev/null) ]]; then
5    echo " ��  Please install $1 and try again"
6    exit 1
7  fi
8}
9
10require node
11require npm
12require git-lfs
13# We can install yarn because `npm install` is cross-platform
14require yarn || npm install -g yarn
15
16require direnv
17
18# Set up submodules
19git submodule update --init
20git submodule foreach --recursive git checkout .
21
22# Pull the large git files
23git lfs pull
24
25# Install the dependencies
26yarn
27