acr-cli
v1.0.0
Published
a auto create react cli
Downloads
46
Readme
acr -V 或者 acr --version
查看版本号
acr create 项目名
创建项目 例如: acr create demoone
注意
以下命令需要进入项目根目录下执行 例如: ..../demoone> acr addcpn Header
acr addcpn 组件名 或者 acr addcpn 组件名 -d 指定路径
创建组件 组件名需大写 例如: acr addcpn Header 例如: acr addcpn SideMenu -d src/views/home
acr addpage 页面名 或者 acr addpage 页面名 -d 指定路径
创建页面 例如: acr addpage Home 例如: acr addpage Login -d src/views/home/login 子路径写法
acr addstore 模块名 或者 acr addstore 模块名 -d 指定路径
创建store 例如: acr addstore Home 直接在store里面生成home文件夹的形式 例如: acr addstore store -d src/views/home 在home页面生成store文件夹的形式
acr addserver 模块名 或者 acr addserver 模块名 -d 指定路径
创建server 例如: acr addserver Home 例如: acr addserver Login -d src/views/home