1.3.7 • Published 4 years ago

fishbone-vue-cli v1.3.7

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

a scaffold which building vue admin app

开发

npm install

cd bin

npm link

安装

use fb-vue -v or fb-vue -h to check package is installed success or not

使用

fb-vue myapp && cd myapp/src

类型示例是否注册模块
modulefb-vue g module views/or/components/name
viewfb-vue g view views/my-view
storefb-vue g store store/my-store
routerfb-vue g router routers/my-router
filterfb-vue g filter filters/my-filter
componentfb-vue g component components/my-component
directivefb-vue g directive directives/my-directive

说明

创建多视图, 在创建multiview时不能同时创建subview

fb-vue g view views -m view1,view2,view3

创建子视图, 在创建view时还可以同时创建subview并生成一个对应的router, 但不会为subview生成对应的router

fb-vue g view views/my-view -s subview1,subview2,subview3

关于是否注册模块

注册模块表示在对应模块的入口/出口文件index.js中import生成的模块并注册

关于创建路由

如果你在创建路由前还没有创建对应的view,那么你的程序会发生错误,因为路由里匹配的视图文件并不存在

1.3.7

4 years ago