|
|
2 سال پیش | |
|---|---|---|
| .vscode | 2 سال پیش | |
| public | 2 سال پیش | |
| src | 2 سال پیش | |
| .eslintrc.cjs | 2 سال پیش | |
| .gitignore | 2 سال پیش | |
| .prettierrc.json | 2 سال پیش | |
| README.md | 2 سال پیش | |
| env.d.ts | 2 سال پیش | |
| index.html | 2 سال پیش | |
| package-lock.json | 2 سال پیش | |
| package.json | 2 سال پیش | |
| tsconfig.app.json | 2 سال پیش | |
| tsconfig.json | 2 سال پیش | |
| tsconfig.node.json | 2 سال پیش | |
| vite.config.ts | 2 سال پیش |
npm create vue@latest
- 输入项目名称:
vue3-admin;- 是否添加
TypeScript:是。选择yes;- 是否添加
JSX:否。选择no;- 是否添加
Vue Router用于单页应用程序开发:否,选择no;- 是否添加
Pina,Pina我们后面手动添加所以这里不用添加;否,选择no;- 是否添加
Vitest单元测试:否,选择no;- 是否添加
End-to-End格式:否,选择no;- 是否添加
ESLint:是,选择yes;- 是否添加
Prettier:是,选择yes;
✔ Project name: … <your-project-name>
✔ 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 / Cypress / Playwright
✔ Add ESLint for code quality? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
Scaffolding project in ./<your-project-name>...
Done.
npm install
git init
git add .
git commit -m "初始化项目"
git remote add origin 远程仓库地址
git checkout -b 分支名称
git push origin 分支名称
npm run dev
npm run build
可以清理的文件名称:
components文件夹删除 ,并assets文件夹里面文件删除。,并main.js里面的css引入方法清除就要可以啦。