Skip to content

Commit

Permalink
Add superagent to example package.json and print errors in cli.js (#740)
Browse files Browse the repository at this point in the history
Fixes #698
  • Loading branch information
emecell authored and gigabo committed Nov 7, 2016
1 parent 0d65211 commit 02ae15d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react-server-cli/src/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("babel-core/register");

const cli = require(".");
cli.parseCliArgs().then(cli.run);
cli.parseCliArgs().then(cli.run).catch(console.error);
1 change: 1 addition & 0 deletions packages/react-server-cli/src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const DEPENDENCIES = [
// TODO: Modernize our peer deps and remove versions here.
"react@~0.14.2",
"react-dom@~0.14.2",
"[email protected]",
]

const CONFIG = {
Expand Down
3 changes: 2 additions & 1 deletion packages/react-server-examples/bike-share/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"react": "~0.14.2",
"react-dom": "~0.14.2",
"react-server": "^0.4.5",
"react-server-cli": "^0.4.5"
"react-server-cli": "^0.4.5",
"superagent": "1.8.4"
},
"devDependencies": {
"babel-preset-react-server": "^0.4.4"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-server-examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react": "~0.14.2",
"react-dom": "~0.14.2",
"react-server": "~0.4.5",
"react-server-cli": "~0.4.5"
"react-server-cli": "~0.4.5",
"superagent": "1.8.4"
}
}
3 changes: 2 additions & 1 deletion packages/react-server-examples/redux-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"react-redux": "^4.4.5",
"react-server": "^0.4.5",
"react-server-cli": "^0.4.5",
"redux": "^3.5.2"
"redux": "^3.5.2",
"superagent": "1.8.4"
},
"devDependencies": {
"babel-preset-react-server": "^0.4.4"
Expand Down

0 comments on commit 02ae15d

Please sign in to comment.