Skip to content

Commit

Permalink
fix(mobile): packager shouldn't run in bg
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Jul 31, 2018
1 parent 30ae82c commit d09a97c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions client/react-native/Makefile
Expand Up @@ -21,15 +21,14 @@ $(ROOT)/node_modules $(DEPS): %/node_modules: %/package.json

.PHONY: $(DIRS)
$(DIRS): %: %/node_modules $(ROOT)/node_modules
cd $@ && yarn start

.PHONY: android
android: gomobile mobile
cd mobile && yarn android
cd mobile && yarn android && yarn start

.PHONY: ios
ios: gomobile mobile
cd mobile && yarn ios --device $(device)
cd mobile && yarn ios --device $(device) && yarn start

.PHONY: $(FCLEAN)
$(FCLEAN):
Expand Down
4 changes: 2 additions & 2 deletions client/react-native/mobile/package.json
Expand Up @@ -4,8 +4,8 @@
"scripts": {
"postinstall": "mkdir -p node_modules/@berty && yarn link:react-native && yarn link:berty",
"start": "lsof -t -i :8081 || react-native start --reset-cache --root $PWD",
"android": "react-native run-android",
"ios": "react-native run-ios",
"android": "react-native run-android --no-packager",
"ios": "react-native run-ios --no-packager",
"test": "jest",
"link:react-native": "ln -fs ../../node_modules/react-native node_modules/react-native",
"link:berty": "ln -fs ../../../common node_modules/@berty/common"
Expand Down

0 comments on commit d09a97c

Please sign in to comment.