1.0.5 • Published 4 years ago

boom-artisan v1.0.5

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

安装

全局安装

npm install boom-artisan -g

配置

在前端项目的根目录下必须有.env文件,其中必须包括以下配置。

# 服务器地址
SERVER = xxx.xxx.xx.xx

# 服务端口号
PORT = xxxx

# 获取路由表路径
PATH = /xxx/xxx

# 获取路径方法
METHOD = GET

使用

在前端项目根目录下执行:

boom artisan

最终会在项目根目录下生成如下结构:

|-src
|-router
|-|-index.js
|-|-async.js
|-views
|-|-文件夹
|-|-|-vue文件
|-|-|-vue文件
|-|-|-vue文件
|-|-|-vue文件

注意

路由表格式实例:

属性
router路由(为null时,忽略uid)
name名称
uid文件目录结构,最后一项值为文件名
{
    "data": [
        {
            "router": null,
            "name": "系统管理",
            "uid": "system",
            "children": [
                {
                    "router": "/nav/",
                    "name": "菜单配置",
                    "uid": "system.nav.index",
                    "children": []
                },
                {
                    "router": "/log/",
                    "name": "日志管理",
                    "uid": "system.log.index",
                    "children": []
                }
            ]
        },
        {
            "router": null,
            "name": "设备管理",
            "uid": "device",
            "children": [
                {
                    "router": "/device/type/",
                    "name": "设备类型",
                    "uid": "system.devicetype.index",
                    "children": []
                }
            ]
        }
    ]
}
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago