1.0.2 • Published 6 years ago
anyshare-new-component v1.0.2
anyshare-new-component
一个小的脚手架工具,用于快速生成Anyshare的react组件骨架。
install
node i -g anyshare-new-component
Usage
Usage:
anyshare-new-component <ComponentName> [options]
Options:
-t|--type <type>
组件类型(components|console|ui)
-d|--desktop
生成桌面端模板
-m|--mobile
生成移动端模板
-c|--client
生成客户端模板
-p|--pure
生成纯组件(type为ui时有效)
commands(子命令):
anyshare-new-component root <projectDir>
设置ShareWebNew路径(路径使用""包裹,结尾不包含/)
Example
设置ShareWebNew根路径
anyshare-new-component root "D:\projects\ShareWebNew"
在ShareWebUI下生成Web端的纯组件Button
anyshare-new-component Button -t ui -d -p
在ShareWebComponents下生成移动端和Web端Login组件
anyshare-new-component Login -t components -m -d
在ShareWebConsole下生成移动端和Web端以及客户端的Select组件
anyshare-new-component Select -t console -m -d -c