@5rabbits/create-react-lib 中文文档教程
@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.
- 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.
- Finally read your new library readme, it contains valuable information on the things that are preconfigured.