1.0.2 • Published 9 months ago

yellcode v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

yellCode

公司门户项目代码生成器

安装

npm install yellcode -g

使用

到项目的根目录下面执行:

yellCode create pageName

运行完毕后,默认会生成1个目录,1个文件,如下:

  • src/views/PageName/xxx
  • src/apis/page-name.ts

其次,src/router/routes.ts中文件也会有新增的路由信息,如下:

export default [
    // 省略部分路由
    {
        path: '/page-name',
        name: 'pageName',
        component: () => {
            return import('@/views/PageName/index.vue')
        },
        meta: {
            title: '',
        },
    },
]
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

11 months ago