Skip to content

Commit

Permalink
update react version and move to peerDependencies (#66)
Browse files Browse the repository at this point in the history
1. react 升级到 v15,并且引入了新的版本规范。
    @see https://facebook.github.io/react/blog/2016/02/19/new-versioning-scheme.html

2. 不同版本的 react 会冲突,把依赖写到 peerDependencies 更合适一点。参考其他
    react 相关的库,如 react-redux.
  • Loading branch information
holymonson authored and progrape committed Apr 21, 2016
1 parent 8265e5c commit 3bd5517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"homepage": "https://github.com/weui/react-weui",
"dependencies": {
"classnames": "^2.2.0",
"react": "^0.14.2"
},
"devDependencies": {
"autoprefixer": "^6.3.5",
Expand Down Expand Up @@ -67,5 +66,8 @@
"webpack": "^1.12.2",
"webpack-dev-server": "^1.12.1",
"weui": "^0.4.1"
},
"peerDependencies": {
"react": "^0.14.2 || ^15.0.1"
}
}

0 comments on commit 3bd5517

Please sign in to comment.