diff --git a/Makefile b/Makefile index 9ed56d0b6..dc4995a89 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,16 @@ run-ios: .npminstall config/config.secret.json echo "xcode is not installed"; \ exit 1; \ fi + @if ! [ $(shell command -v watchman) ]; then \ + echo "watchman is not installed"; \ + exit 1; \ + fi + @echo Running iOS app in development npm run run-ios + open -a Simulator + run-android: .npminstall config/config.secret.json @if ! [ $(ANDROID_HOME) ]; then \ @@ -42,6 +49,11 @@ run-android: .npminstall config/config.secret.json echo "no android device or emulator is running"; \ exit 1; \ fi + @if ! [ $(shell command -v watchman) ]; then \ + echo "watchman is not installed"; \ + exit 1; \ + fi + @echo Running Android app in development npm run run-android diff --git a/README.md b/README.md index f06dba37f..386e4adb0 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,7 @@ This project is the Mattermost mobile client from [https://mattermost.org](https://mattermost.org). -It's written in JavaScript using React Native. \ No newline at end of file +It's written in JavaScript using React Native. + +# Installing Dependencies +Follow the [React Native Getting Started Guide](https://facebook.github.io/react-native/docs/getting-started.html) for detailed instructions on setting up your local machine for development.