/rcli

通过命令行创建 rect component,类似 angular-cli(create react component by command, and it was similar to the angular-cli)

Primary LanguageJavaScriptMIT LicenseMIT

rcli

中文文档 | English Doc

安装

npm i -g hileix-rcli

用法

使用 create-react-app 来创建一个应用

rcli new PROJECT-NAME
cd PROJECT-NAME
yarn start

或者你可以使用 npm

rcli new PROJECT-NAME --use-npm
cd PROJECT-NAME
npm start

生成组件

rcli g component my-new-component

等于:

rcli g component ./my-new-component

下一步计划

  • 支持自定义 react 组件模板

如果你有新的想法,可以提 issue,或联系我 qq:304192604