# vue2-ts-template **Repository Path**: pimingzhao/vue2-ts-template ## Basic Information - **Project Name**: vue2-ts-template - **Description**: 基于 vue element admin 开源后台管理系统的 vue2 ts template - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-16 - **Last Updated**: 2023-03-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: TypeScript, vue2 ## README

vue element-ui CircleCI PRs Welcome License: MIT Template from jarvis

[English](./README.md) | 简体中文 ## 总览 [admin-temp](http://armour.github.io/admin-temp) 是一个后台前端解决方案,它基于 [vue](https://github.com/vuejs/vue), [typescript](https://www.typescriptlang.org/) 和 [element-ui](https://github.com/ElemeFE/element)实现。原始的 Javascript 版本的代码是由 [PanJiaChen](https://github.com/PanJiaChen) 开发维护的 [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin/), 十分感谢大佬对开源社区做出的贡献 :) 如果你想从一个十分简单的基础模版开始,而不是直接使用这个功能丰富的集成方案的话,你可以看一看本项目的 [minimal](https://github.com/Armour/admin-temp/tree/minimal) 分支. ## 线上文档 [文档](https://armour.github.io/vue-typescript-admin-docs/zh) ## 目录结构 本项目已经为你生成了一个完整的开发框架,提供了涵盖后台开发的各类功能和坑位,下面是整个项目的目录结构。 ```bash ├── public # 静态资源 (会被直接复制) │ │── favicon.ico # favicon图标 │   └── index.html # html模板 ├── src # 源代码 │   ├── api # 所有请求 │   ├── assets # 主题 字体等静态资源 (由 webpack 处理加载) │   ├── components # 全局组件 │   ├── directive # 全局指令 │   ├── filters # 全局过滤函数 │   ├── icons # svg 图标 │   ├── layout # 全局布局 │   ├── router # 路由 │   ├── store # 全局 vuex store │   ├── styles # 全局样式 │   ├── utils # 全局方法 │   ├── views # 所有页面 │   ├── App.vue # 入口页面 │   ├── main.js # 入口文件 加载组件 初始化等 │ ├── permission.ts # 权限管理 │ ├── settings.ts # 设置文件 │ └── shims.d.ts # 模块注入 ├── tests # 测试 ├── .browserslistrc # browserslistrc 配置文件 (用于支持 Autoprefixer) ├── .editorconfig # 编辑相关配置 ├── .env.xxx # 环境变量配置 ├── .eslintrc.js # eslint 配置 ├── babel.config.js # babel-loader 配置 ├── jest.config.js # jest 单元测试配置 ├── package.json # package.json 依赖 ├── postcss.config.js # postcss 配置 ├── tsconfig.json # typescript 配置 └── vue.config.js # vue-cli 配置 ``` ## 如何设置以及启动项目 ### 安装依赖 ```bash yarn install ``` ### 启动本地开发环境(自带热启动) ```bash yarn serve ``` ### 构建生产环境 (自带压缩) ```bash yarn build:prod ``` ### 代码格式检查以及自动修复 ```bash yarn lint ``` ### 运行单元测试 ```bash yarn test:unit ``` ### 自动生成 svg 组件 ```bash yarn run svg ``` ### 自定义 Vue 配置 请看 [Configuration Reference](https://cli.vuejs.org/config/). ## 浏览器支持 Modern browsers and Internet Explorer 10+. | [IE / Edge](http://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | | --------- | --------- | --------- | --------- | | IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions ## 参与贡献 请看 [CONTRIBUTING.md](https://github.com/Armour/admin-temp/blob/master/.github/CONTRIBUTING.md) ## License [MIT License](https://github.com/Armour/admin-temp/blob/master/LICENSE)