Skip to content

Commit

Permalink
Added starter setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed Aug 16, 2018
1 parent f9b9d3c commit e34f756
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /bin/bash

# Node installed?
if ! [ -x "$(command -v node)" ]; then
echo 'Error: node is not installed.' >&2

if ! [ -x "$(command -v brew)" ]; then
echo 'Go here to install: https://nodejs.org/en/download/'
fi

if [ -x "$(command -v brew)" ]; then
echo 'You have Homebrew installed, so run "brew install node".'
fi

exit 1
fi

# React Native installed?
if ! [ -x "$(command -v react-native)" ]; then
echo 'Error: React Native is not installed.' >&2
echo 'Go here: https://facebook.github.io/react-native/docs/getting-started.html' >&2
echo 'Use the "Building Projects With Native Code" option.'
exit 1
fi

# TODO: Automate setup on new machines

0 comments on commit e34f756

Please sign in to comment.