Skip to content

Commit 556b3ea

Browse files
committed
📦 📝 1. update scripts for cross-env
2. update README.md
1 parent cabed47 commit 556b3ea

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ npm install
2525
npm start
2626
```
2727

28+
## For WINDOWS
29+
30+
`npm install` might fail.
31+
32+
View detail with this [pull request](https://github.com/ymyqwe/Websocket-React-Chatroom/pull/9)
33+
34+
- Try Out
35+
36+
```bash
37+
npm run start:CE
38+
```
39+
2840
## Demo
2941

3042
[Live Demo](http://chat.yumingyuan.me)
@@ -44,6 +56,10 @@ npm start
4456

4557
## Changelog
4658

59+
### [3.1.0] / 2019-12-30
60+
61+
- Add [cross-env](https://www.npmjs.com/package/cross-env) package to support WINDOWS
62+
4763
### [3.0.0] / 2019-11-19
4864

4965
- Refactor with Typescript

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "",
8-
"start": "cross-env NODE_ENV=dev node server.js",
9-
"prod": "cross-env NODE_ENV=production node server.js",
8+
"start": "NODE_ENV=dev node server.js",
9+
"prod": "NODE_ENV=production node server.js",
10+
"start:CE": "cross-env NODE_ENV=dev node server.js",
11+
"prod:CE": "cross-env NODE_ENV=production node server.js",
1012
"build": "webpack -p --config webpack.config.prod.js",
1113
"server": "run-s build prod",
1214
"lint": "eslint src --fix --ext .tsx,.ts"

0 commit comments

Comments
 (0)