1.0.16 • Published 4 years ago

vue-environment-setup v1.0.16

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

vue-environment-setup

npm npm Build Status

简介

vue-environment-setup 用于Vue项目自动化创建,依赖于:

环境

Node (version >= 14.x)

安装

npm install vue-environment-setup -g

运行

ves

生成路由

  • 默认路由文件路径:src/routes/index.tsx
  • 自定义路由文件路径:使用package.json中routes字段指向路由文件路径
  • 自定义配置模版目录:使用package.json中template字段指向模版目录,目录下必须存在三个文件:index.tsx、table.tsx、service.tsx
  • 在路由文件中添加路由,内容如:
    {
      path: '/parent',
      name: '父级路由中文名称',
      icon: 'smile',
      routes: [
        {
          path: '/parent/child',
          name: '子级路由中文名称',
          component: './Parent/Child',
          table: true, // 是否是一体化表格组件
          service: true, // 是否添加service文件
          cover: true, // 已有文件是否覆盖
        }
      ]
    }
  • 运行命令
    ves router
1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

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