Skip to content

Commit

Permalink
WIP try set "remotedev-server" in local
Browse files Browse the repository at this point in the history
  • Loading branch information
HaveF committed Jan 24, 2017
1 parent 8e9f8c4 commit 6381ec4
Show file tree
Hide file tree
Showing 4 changed files with 1,177 additions and 36 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# WIP
try set "remotedev-server" in local


# example for remotedev
1. clone the repo
2. cd to dir, and use yarn to install
Expand Down
2 changes: 1 addition & 1 deletion app/stores/counter_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { observable, action, runInAction } from 'mobx'
import remotedev from 'mobx-remotedev'
import api from './api'

@remotedev({ remote: true, onlyActions: true, global: true })
@remotedev({ remote: false, onlyActions: true, global: true })
class CounterStore {
@observable counter = 0;
@observable remoteCounter = 0;
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
"start": "node node_modules/react-native/local-cli/cli.js start",
"remotedev": "remotedev --hostname=localhost --port=8000 --injectserver=reactnative",
"remotedev-revert": "remotedev --revert=reactnative"
},
"dependencies": {
"apisauce": "^0.8.0",
Expand All @@ -20,6 +22,7 @@
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-react-native": "^1.9.1",
"babel-preset-react-native-stage-0": "^1.0.1",
"mobx-remotedev": "^0.2.5"
"mobx-remotedev": "^0.2.5",
"remotedev-server": "^0.3.0-beta-3"
}
}
Loading

0 comments on commit 6381ec4

Please sign in to comment.