Giter Club home page Giter Club logo

vben-template's Introduction

介绍

该项目为 vue-vben-admin2.0的精简版本。

环境要求

  • Node.js: - 版本最好大于 12.0.0
  • 包管理工具: yarn > npm > cnpm

精简版地址

vue-vben-admin-thin-next

预览地址

修改清单

当你开始使用时,请按下面列表先行修改项目

  • 重命名 package.json 中的 name 字段
  • LICENSE中更改作者姓名
  • public中修改 favicon.ico
  • public/resource//src/assets/images/logo.png中修改 logo.png
  • .env[xxx]文件中修改相关项目配置
  • src/settings/projectSetting.ts内调整适合自己的项目风格
  • 项目默认启用角色来控制菜单,且后台请求菜单已被注释,如果需要使用后台动态生成路由。请将/src/store/modules/permission.ts内的关于动态请求菜单的注释放开

注意

依赖删除了echarts,apexcharts,zxcvbn,qrcode四个模块。但是组件及代码未删除。在你未引用到相关组件的时候,不会发出错误。当你需要使用的时候,只需要执行相应的命令安装对应模块即可

需要用到哪个则执行对应命令

// echarts 需要单独在 vite.config.ts内加上
// optimizeDeps: {
//     include: [
//       'echarts',
//     ],
//   },
yarn add echarts

yarn add apexcharts

yarn add zxcvbn

yarn add qrcode

开发环境

yarn serve

打包

yarn build # 打包

yarn build:no-cache # 打包,执行之前会先删除缓存

yarn report # 生成构建包报表预览

格式化

yarn lint:stylelint # 样式格式化

yarn lint:prettier # js/ts代码格式化

其他

yarn reinstall # 删除依赖重新装,兼容window

yarn preview # 本地进行打包预览

yarn log # 生成CHANGELOG

yarn clean:cache # 删除缓存

yarn clean:lib # 删除node_modules,兼容window系统

vben-template's People

Contributors

peiyu-ye avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.