{"id":21325765,"url":"https://github.com/wp993080086/vite-pc-template","last_synced_at":"2026-04-11T03:31:58.603Z","repository":{"id":41459266,"uuid":"486092594","full_name":"wp993080086/Vite-PC-Template","owner":"wp993080086","description":"一个开箱即用基于vue3和ts的PC项目模板。","archived":false,"fork":false,"pushed_at":"2023-11-08T08:17:37.000Z","size":646,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T15:06:57.371Z","etag":null,"topics":["axios","element-plus","nprogress","pinia","sass","typescript","vite","vue","vue-router"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp993080086.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-27T07:36:29.000Z","updated_at":"2025-01-02T03:29:52.000Z","dependencies_parsed_at":"2025-01-22T12:28:50.010Z","dependency_job_id":"5c6d499f-c502-4a4c-a234-f736b8bca266","html_url":"https://github.com/wp993080086/Vite-PC-Template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wp993080086/Vite-PC-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp993080086%2FVite-PC-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp993080086%2FVite-PC-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp993080086%2FVite-PC-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp993080086%2FVite-PC-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp993080086","download_url":"https://codeload.github.com/wp993080086/Vite-PC-Template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp993080086%2FVite-PC-Template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267791136,"owners_count":24144912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","element-plus","nprogress","pinia","sass","typescript","vite","vue","vue-router"],"created_at":"2024-11-21T21:07:20.437Z","updated_at":"2025-12-30T21:55:14.732Z","avatar_url":"https://github.com/wp993080086.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n  \n![vite](https://img.shields.io/badge/2.9.5-vite-orange)\n![typeScript](https://img.shields.io/badge/4.4.0-typeScript-lightgrey)\n![vue](https://img.shields.io/badge/3.2.33-vue-brightgreen)\n  \n\u003c/div\u003e\n\u003cdiv align=center\u003e\n\n![axios](https://img.shields.io/badge/0.26.1-axios-ff69b4)\n![vue-router](https://img.shields.io/badge/4.0.14-vue%20router-blueviolet)\n![pinia](https://img.shields.io/badge/2.0.13-pinia-yellow)\n![element-plus](https://img.shields.io/badge/2.1.11-element--plus-409EFF)\n![nprogress](https://img.shields.io/badge/0.2.0-nprogress-red)\n![sass](https://img.shields.io/badge/1.50.1-sass-orange)\n\n\u003c/div\u003e\n\n# ⚡️ 简介\n\n一个开箱即用，基于 `vite 4` + `vue 3` + `typeScript 5` + `element Plus` + `pinia` + `vue-router 4` 的PC端项目模板。\n\n# 🚀 开发\n\n1. 安装\n\n```\nnpm install\n```\n\n2. 运行\n\n```\nnpm run serve\n```\n\n\u003e 如果不需要使用jsx/tsx，请做如下操作。\n\n- 删除`tsconfig.json`文件里的 `\"plugins\": [{\"name\": \"typescript-plugin-css-modules\"}]`\n- 删除`vite.config.ts`文件里的 `requireModuleExtension: true`\n\n\u003e 否则，请在根目录创建.vscode文件夹，并创建settings.json文件，并写入如下代码\n\n```\n{\n  \"typescript.tsdk\": \"node_modules/typescript/lib\",\n  \"typescript.enablePromptUseWorkspaceTsdk\": true\n}\n```\n\n# 📦️ 多环境打包\n\n- 测试环境打包\n\n```\nnpm run build_test\n```\n\n- 生产环境打包\n\n```\nnpm run build\n```\n\n# 🔧 代码检查修复\n\n- 格式检查\n\n```\nnpm run lint\n```\n\n- 自动修复\n\n```\nnpm run lint-fix\n```\n\n# 📚 目录\n\n```\n│  .env.development\n│  .env.production\n│  .env.test\n│  .eslintignore\n│  .eslintrc.js\n│  .gitignore\n│  .lintstagedrc.json\n│  .prettierignore\n│  .prettierrc.js\n│  favicon.ico\n│  index.html\n│  package-lock.json\n│  package.json\n│  README.md\n│  tsconfig.json\n│  vite.config.ts\n├─.husky\n│  │  pre-commit\n│  │\n│  └─\n│    .gitignore\n│    husky.sh\n│\n├─mock\n├─public\n│      favicon.ico\n│\n└─src\n    │  App.vue\n    │  main.ts\n    │\n    ├─assets\n    │  ├─font\n    │  ├─icon\n    │  ├─images\n    │  │      404.png\n    │  │      logo.png\n    │  │\n    │  └─styles\n    │          colors.css\n    │          reset.css\n    │\n    ├─components\n    │  │  HelloWorld.vue\n    │  │\n    │  ├─dialog\n    │  └─svgIcon\n    ├─constants\n    │      index.ts\n    │\n    ├─layouts\n    │  ├─header\n    │  │      index.vue\n    │  │\n    │  └─menu\n    │          index.vue\n    │          menu-item.vue\n    │\n    ├─pages\n    │  ├─base\n    │  │  │  not-found.vue\n    │  │  │\n    │  │  └─login\n    │  │          index.vue\n    │  │\n    │  └─home\n    │          index.vue\n    │\n    ├─router\n    │  │  index.ts\n    │  │\n    │  └─routers\n    │          base.ts\n    │\n    ├─servers\n    │  │  request.ts\n    │  │\n    │  └─api\n    │      ├─files\n    │      │      index.ts\n    │      │\n    │      └─login\n    │              index.ts\n    │\n    ├─static\n    │  ├─audio\n    │  └─video\n    ├─store\n    │  │  index.ts\n    │  │\n    │  └─modules\n    │      ├─menu\n    │      │      index.ts\n    │      │\n    │      └─user\n    │              index.ts\n    │\n    ├─types\n    │  │  common.d.ts\n    │  │  declare.d.ts\n    │  │  shim.d.ts\n    │  │  source.d.ts\n    │  │\n    │  ├─servers\n    │  │      files.d.ts\n    │  │      login.d.ts\n    │  │\n    │  └─store\n    │          menu.d.ts\n    │          user.d.ts\n    │\n    └─utils\n            cookie.ts\n            index.ts\n            loading.ts\n            storage.ts\n            toast.ts\n            token.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp993080086%2Fvite-pc-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp993080086%2Fvite-pc-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp993080086%2Fvite-pc-template/lists"}