Skip to content

Vue3 初始化项目,Vue3 + Vite + TypeScript + Vue Router + Pinia + Vitest + ESLint + Prettier

License

Notifications You must be signed in to change notification settings

dev-zuo/vue3-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

vue3-base

vue3 初始化项目

Vue3 + Vite + TypeScript + Vue Router + Pinia + Vitest + ESLint + Prettier

初始化方式

npm init vue@latest

√ Project name: ... vue3-base
√ 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
√ Add Prettier for code formatting? ... No / Yes

运行方式

 cd vue3-base
 npm install
 npm run lint
 npm run dev

版本

  "dependencies": {
    "pinia": "^2.0.26",
    "vue": "^3.2.45",
    "vue-router": "^4.1.6"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.1.4",
    "@types/jsdom": "^20.0.1",
    "@types/node": "^18.11.9",
    "@vitejs/plugin-vue": "^3.2.0",
    "@vue/eslint-config-prettier": "^7.0.0",
    "@vue/eslint-config-typescript": "^11.0.0",
    "@vue/test-utils": "^2.2.4",
    "@vue/tsconfig": "^0.1.3",
    "eslint": "^8.22.0",
    "eslint-plugin-vue": "^9.3.0",
    "jsdom": "^20.0.3",
    "npm-run-all": "^4.1.5",
    "prettier": "^2.7.1",
    "typescript": "~4.7.4",
    "vite": "^3.2.4",
    "vitest": "^0.25.3",
    "vue-tsc": "^1.0.9"
  }

About

Vue3 初始化项目,Vue3 + Vite + TypeScript + Vue Router + Pinia + Vitest + ESLint + Prettier

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published