2017-11-27 19:40:21 +00:00
|
|
|
#!/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-11-27 19:40:21 +00:00
|
|
|
#
|
2017-12-01 17:17:25 +00:00
|
|
|
# Usage: scripts/setup
|
2017-11-27 19:40:21 +00:00
|
|
|
########################################################################
|
|
|
|
|
|
|
|
_current_dir=$(cd "${BASH_SOURCE%/*}" && pwd)
|
2017-12-01 17:17:25 +00:00
|
|
|
source "$_current_dir/lib/setup/path-support.sh"
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
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
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
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
|
2018-06-27 14:30:00 +00:00
|
|
|
install_clojure_cli
|
2017-12-01 17:17:25 +00:00
|
|
|
install_leiningen
|
2017-11-27 19:40:21 +00:00
|
|
|
install_node
|
2017-12-01 17:17:25 +00:00
|
|
|
install_watchman
|
2017-11-27 19:40:21 +00:00
|
|
|
install_react_native_cli
|
2017-12-01 17:17:25 +00:00
|
|
|
install_android_sdk
|
2018-07-10 15:56:26 +00:00
|
|
|
install_android_ndk
|
2017-12-01 17:17:25 +00:00
|
|
|
install_maven
|
2017-11-27 19:40:21 +00:00
|
|
|
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'"
|
|
|
|
|
2017-11-27 19:40:21 +00:00
|
|
|
dependency_setup ./re-natal deps
|
|
|
|
dependency_setup ./re-natal enable-source-maps
|
|
|
|
|
|
|
|
dependency_setup \
|
2018-02-01 19:11:57 +00:00
|
|
|
"mvn -f modules/react-native-status/ios/RCTStatus/pom.xml dependency:unpack"
|
2017-11-27 19:40:21 +00:00
|
|
|
|
2018-07-10 15:56:26 +00:00
|
|
|
using_cocoapods && dependency_setup "pushd ios && pod install && popd"
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
setup_complete
|