@5rabbits/create-react-lib 中文文档教程

发布于 5年前 浏览 25 项目主页 更新于 3年前

@5rabbits/create-react-lib

基于 5rabbits 标准,创建一个没有配置的 React 库。

Usage

  • Execute yarn create @5rabbits/react-lib <lib-name>. For example, yarn create @5rabbits/react-lib super-input.
  • The library will ask you a few questions to setup the git project, readme and npm publications (nothing will be pushed/published automatically):
  • The npm organization name that will namespace the package. For example, this package is namespaced with the organization 5rabbits (resulting in packages named like @5rabbits/*).
  • The github repository where you will host the new library.
  • This will create the directory super-input with the entire project structure, ready to start developing your new library.
  • Follow the onscreen instructions.

CLI 说明

  • Finally read your new library readme, it contains valuable information on the things that are preconfigured.

@5rabbits/create-react-lib

Create a react library with no configuration, based on 5rabbits standards.

Usage

  • Execute yarn create @5rabbits/react-lib <lib-name>. For example, yarn create @5rabbits/react-lib super-input.
  • The library will ask you a few questions to setup the git project, readme and npm publications (nothing will be pushed/published automatically):
  • The npm organization name that will namespace the package. For example, this package is namespaced with the organization 5rabbits (resulting in packages named like @5rabbits/*).
  • The github repository where you will host the new library.
  • This will create the directory super-input with the entire project structure, ready to start developing your new library.
  • Follow the onscreen instructions.

CLI instructions

  • Finally read your new library readme, it contains valuable information on the things that are preconfigured.
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文