2.2.3 • Published 12 months ago
react-native-create-lib v2.2.3
react-native-create-lib
一行命令创建组件库
本库 fork 自 create-react-native-module
Command-line usage
Navigate into an empty directory to execute the command.
$npx react-native-create-lib MyLib
$ react-native-create-lib --module-name @sdcx/wechat --repo-name react-native-wechat wechat
This will create the folder MyLib
in which the library will be created in.
Now install dependencies by running this command in the newly created library.
$ npm install
使用: react-native-create-lib [options] <name>
选项:
-V, --version output the version number
--prefix <prefix> The prefix for the library module (Default: `RN`)
--module-name <moduleName> The module library package name to be used in package.json. (Default: `react-native-(name in param-case)`)
--package-identifier <packageIdentifier> [Android] The Java package identifier used by the Android module (Default: `com.reactnative.(name in lower-case`)
--repo-name [repoName] The repository name (Default: `react-native-(name in param-case)`)
--platforms <platforms> Platforms the library module will be created for - comma separated (Default: `ios,android`)
--github-account <githubAccount> The github account where the library module is hosted (Default: `github-account`)
--author-name <authorName> The author's name (Default: `author-name`)
--author-email <authorEmail> The author's email (Default: `author-email@gmail.com`)
--license <license> The license type (Default: `MIT`)
-h, --help output usage information
License
2.2.3
12 months ago
2.2.2
1 year ago
2.2.1
2 years ago
2.2.0
2 years ago
2.1.0
2 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.8.2
3 years ago
1.8.1
3 years ago
1.8.0
3 years ago
1.7.0
4 years ago
1.6.0
4 years ago
1.5.0
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago