一、自动创建Vue项目
1.1 创建项目结构
yarn create vue
项目名称04_auto_vite,所有选项均为No
- create-vue
[##] 2/2
Vue.js - The Progressive JavaScript Framework
√ Project name: ... vue-project
√ Add TypeScript? ... No / Yes
√ Add JSX Support? ... No / Yes
√ Add Vue Router for Single Page Application development? ... No / Yes
√ Add Pinia for state management? ... No / Yes
√ Add Vitest for Unit Testing? ... No / Yes
√ Add an End-to-End Testing Solution? » No
√ Add ESLint for code quality? ... No / Yes
Scaffolding project in E:\VirtualEnv\Vue3\Day01\02_使用vite\vue-project...
Done. Now run:
cd vue-project
yarn
yarn dev
1.2 安装项目依赖
yarn