Vite 中文文档 Vite 中文文档
指南
GitHub (opens new window)
指南
GitHub (opens new window)
  • vite

    • 指引
    • 为什么选 Vite
    • 开始
    • 功能
    • 命令行界面
    • 使用插件
    • 依赖预构建
    • 静态资源处理
    • 构建生产版本
    • 部署静态站点
    • 环境变量和模式
    • 服务端渲染
    • 后端集成
    • 与其他工具比较
    • 故障排除
    • 从 v3 迁移
  • API

  • 配置参考

  • vite

  • API

  • 配置参考

fearless


A dashboard scaffolding based on Vue.js 3.x & TypeScript created by Vite.


Todo


SWR composable
Global store
CRUD demos
Data virtualization
More demos

Features


Modern Vue.js Ecosystem
vue 3.x
vuex 4.x
vue-router 4.x

Fully strongly typed
typescript 4.x

Next generation frontend tooling
vite 2.x

HTTP request based on Fetch API
ky 0.x (not axios)

Customizable UI Library
naive-ui 2.x

Complete engineering workflow
eslint 7.x
husky 7.x
lint-staged 11.x
commitlint 13.x

Locally mocked API server
express 4.x

Authorization
Access token
Refresh token
Auth refresh token
Role based authorization

Modern application deployment
GitHub Actions
Vercel (with Serverless functions)

Online Preview


https://fearless.zce.me
owner - username: zce; password: wanglei
admin - username: jack; password: 123
staff - username: pony; password: 123
owner - username: tom; password: 123

Getting Started


Prerequisites


Node.js (>= 12.10, 14.17 preferred)
npm (>= 6.x) or yarn (>= 1.22)
Git (>= 2.20)

Scaffolding tools


Create an application by zce/caz

  1. ``` shell
  2. # create apps through this
  3. $ npx caz vue#next my-app
  4. # enter generated directory
  5. $ cd my-app
  6. ```

Clone & Install


  1. ``` shell
  2. # clone repo
  3. $ git clone https://github.com/zce/fearless.git
  4. $ cd fearless

  5. # install dependencies
  6. $ npm install # or yarn
  7. ```

Available Scripts


  1. ``` shell
  2. # dev with hot reload at http://localhost:3000
  3. $ npm run dev # or yarn dev

  4. # build for production with minification
  5. $ npm run build # or yarn build
  6. ```

Mock API Server


The built-in mock server starts as a vite plugin. that means you don't need to start it alone.

Contributing


Forkit on GitHub!
Clonethe fork to your own machine.
Checkoutyour feature branch: git checkout -b my-awesome-feature
Commityour changes to your own branch: git commit -am 'Add some feature'
Pushyour work back up to your fork: git push -u origin my-awesome-feature
Submit a Pull Requestso that we can review your changes.

NOTE: Be sure to merge the latest from "upstream" before making a pull request!


License


MIT © zce
Last Updated: 2023-05-23 11:11:51