1.0.3 • Published 6 years ago
react-lib-cli v1.0.3
react-lib-cli
A react popular ecosystem libraries manager.
Introduce
开发这个 CLI 的初衷是为了在开发新的 React 项目时能够快速的安装需要的主流工具、样式、组件库,这些库都是在开发实践中经常使用的,而且在整个 React 生态中也非常的流行和受欢迎。
目前收录了以下库:
utility
| name | repo | description |
|---|---|---|
| lodash | 🔗 | A modern JavaScript utility library delivering modularity, performance, & extras. |
| memoize-one | 🔗 | A memoization library which only remembers the latest invocation. |
| moment | 🔗 | Parse, validate, manipulate, and display dates in javascript. |
| rxjs | 🔗 | A reactive programming library for JavaScript. |
| reselect | 🔗 | Selector library for Redux. |
| umi-request | 🔗 | A request tool based on fetch. |
| immutable | 🔗 | Immutable persistent data collections for Javascript which increase efficiency and simplicity. |
| classnames | 🔗 | A simple javascript utility for conditionally joining classNames together. |
| prop-types | 🔗 | Runtime type checking for React props and similar objects. |
router
| name | repo | description |
|---|---|---|
| react-router | 🔗 | Declarative routing for React. |
| connected-react-router | 🔗 | A Redux binding for React Router v4. |
state management
| name | repo | description |
|---|---|---|
| redux | 🔗 | Predictable state container for JavaScript apps. |
| react-redux | 🔗 | Official React bindings for Redux. |
| redux-saga | 🔗 | An alternative side effect model for Redux apps. |
| dva | 🔗 | React and redux based, lightweight and elm-style framework. |
| mobx | 🔗 | Simple, scalable state management. |
style
| name | repo | description |
|---|---|---|
| normalize.css | 🔗 | A modern alternative to CSS resets. |
| @emotion/core | 🔗 | CSS-in-JS library designed for high performance style composition |
Install
$ npm install -g react-library-cliExample
$ rl ls
? 请选择库类型索引
1. utility
2. style$ 1
? 请选择库索引,多个以空格分隔(例如:1 2)
1. lodash
2. memoize-one
3. moment
4. rxjs
5. reselect
6. umi-requestUsage
Usage: cli [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
ls List all the popular react librariesTODO
- 加入更多的库
- 优化交互
- 支持命令行展示更多的信息
LICENSE
MIT