Skip to content

Commit

Permalink
Add superagent to example package.json and print errors in cli.js
Browse files Browse the repository at this point in the history
Fixes #698
  • Loading branch information
rfrobertlaw committed Nov 3, 2016
1 parent 4d3777b commit e41b45b
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",
"superagent@~1.8.4",
]

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 e41b45b

Please sign in to comment.