status-react/scripts/setup

54 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env bash
########################################################################
2017-12-01 17:17:25 +00:00
# This install script will setup your development dependencies on OS X
# or Ubuntu. Ubuntu 16.04 is the only tested version.
#
2017-12-01 17:17:25 +00:00
# Usage: scripts/setup
########################################################################
_current_dir=$(cd "${BASH_SOURCE%/*}" && pwd)
2017-12-01 17:17:25 +00:00
source "$_current_dir/lib/setup/path-support.sh"
source_lib "output.sh"
source_lib "packages.sh"
source_lib "platform.sh"
source_lib "installers.sh"
2017-12-01 17:17:25 +00:00
exit_unless_os_supported
load_nvm_if_available
load_rvm_if_available
####
setup_header "Installing requirements..."
2017-12-01 17:17:25 +00:00
install_and_setup_package_manager
install_java8
install_leiningen
install_node
2017-12-01 17:17:25 +00:00
install_watchman
install_react_native_cli
2017-12-01 17:17:25 +00:00
install_android_sdk
install_maven
install_cocoapods
####
echo && setup_header "Installing dependencies..."
dependency_setup lein deps
dependency_setup npm install
2017-12-01 17:17:25 +00:00
dependency_setup \
"ln -sf '$(repo_path)/node_modules/re-natal/index.js' '$(repo_path)/re-natal'"
dependency_setup ./re-natal deps
dependency_setup ./re-natal enable-source-maps
dependency_setup \
"mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack"
2017-12-01 17:17:25 +00:00
using_cocoapods && dependency_setup "cd ios && pod install && cd .."
setup_complete