Make sure watchman is installed and open simulator (#50)

* Make sure watchman is installed and open simulator

* Check for watchman in make run-android
This commit is contained in:
Mike Piccolo 2016-10-20 19:44:47 -07:00 committed by Thomas Hopkins
parent 59ea04fc0c
commit 3533af7fd6
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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.
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.