react-coat-pkg

4.1.1 • Public • Published

react 生态圈的开放、自由、繁荣,也导致开发配置繁琐、选择迷茫。react-coat 放弃某些灵活性、以约定替代某些配置,固化某些最佳实践方案,从而提供给开发者一个更简洁的糖衣外套。

请先花点时间了解一下:react-coat v4.0

安装 react-coat时,需要自行安装依赖

"peerDependencies": {
    "@types/node": "^9.0.0 || ^10.0.0  || ^11.0.0",
    "@types/history": "^4.0.0",
    "@types/react": "^16.0.0",
    "@types/react-dom": "^16.0.0",
    "@types/react-redux": "^6.0.0 || ^7.0.0",
    "@types/react-router-dom": "^4.0.0",
    "connected-react-router": "^5.0.0 || ^6.0.0",
    "history": "^4.0.0",
    "react": "^16.4.0",
    "react-dom": "^16.4.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.0.0",
    "redux": "^3.0.0 || ^4.0.0"
  },

如果你想省心,并且对以上依赖版本没有特别要求,你可以安装本库,将自动包含以上库,并测试通过各版本不冲突。

V4.1.1

升级各库到最新版

"peerDependencies": { "react-coat": "^4.1.3" }

  "dependencies": {
    "@types/node": "~11.9.4",
    "@types/react": "~16.8.4",
    "@types/react-dom": "~16.8.2",
    "@types/react-redux": "~7.0.1",
    "@types/react-router-dom": "~4.3.1",
    "connected-react-router": "~6.3.1",
    "history": "~4.7.2",
    "react": "~16.8.2",
    "react-dom": "~16.8.2",
    "react-redux": "~6.0.1",
    "react-router-dom": "~4.3.1",
    "redux": "~4.0.1"
  },

V4.0.3

其中react-redux为5.1.1,connected-react-router为5.0.1

"peerDependencies": {
  "react-coat": "^4.1.0"
}
"dependencies": {
    "@types/node": "~11.9.4",
    "@types/react": "~16.8.4",
    "@types/react-dom": "~16.8.2",
    "@types/react-redux": "~7.0.1",
    "@types/react-router-dom": "~4.3.1",
    "connected-react-router": "~5.0.1",
    "history": "~4.7.2",
    "react": "~16.8.2",
    "react-dom": "~16.8.2",
    "react-redux": "~5.1.1",
    "react-router-dom": "~4.3.1",
    "redux": "~4.0.1"
  }

安装 react-coat 及 本库

$ npm install react-coat
$ npm install react-coat-pkg

Readme

Keywords

none

Package Sidebar

Install

npm i react-coat-pkg

Weekly Downloads

26

Version

4.1.1

License

MIT

Unpacked Size

4.47 kB

Total Files

4

Last publish

Collaborators

  • wooline