npm init vue@3
Need to install the following packages:
create-vue@3
Ok to proceed? (y) (选Y)
Vue.js - The Progressive JavaScript Framework
? Project name: › vue-project (输入项目名称,如:boyu-three)
Add TypeScript? … No / Yes // 是否使用TS
✔ Add JSX Support? … No / Yes // 是否支持JSX,除非你是搞React开发
✔ Add Vue Router for Single Page Application development? … No / Yes // 是否添加路由
✔ Add Pinia for state management? … No / Yes // 是否添加状态管理 推荐pinia
✔ Add Vitest for Unit Testing? … No / Yes // 是否添加单元测试
✔ Add an End-to-End Testing Solution? › No // 是否添加端对端测试
✔ Add ESLint for code quality? … No / Yes // 是否添加ESLint做代码质量检查
cd boyu-three-demo
npm install
npm run dev
除了npm install,也支持yarn
安装ant design for react
https://ant.design/docs/react/introduce-cn
- npm install antd --save
or
- yarn add antd
npm run dev
or
yarn run dev