Skip to content

Commit c20294d

Browse files
committed
add example script in package.json
1 parent a61d60a commit c20294d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ A event handler for that event.
121121

122122
# Run Example
123123

124-
The `example` folder contain a basic **socket.io server**, run `node server.js` to start server, and then visit `localhost:8090`.
124+
The `example` folder contain a basic **socket.io server**, run `npm run-script example` to start server, and then visit `localhost:8090`.
125125

126126
# As a contributer.
127127

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "A react provider for socket.io, http://socket.io/",
55
"main": "lib/index.js",
66
"scripts": {
7-
"test": "node ./example/server.js"
7+
"example": "node ./example/server.js",
8+
"start": "gulp"
89
},
910
"dependencies": {
1011
"socket.io-client": "^1.5.0"

0 commit comments

Comments
 (0)