{"id":20010071,"url":"https://github.com/bxm0927/vue-cli-template","last_synced_at":"2026-05-08T23:02:17.538Z","repository":{"id":85449321,"uuid":"299507234","full_name":"bxm0927/vue-cli-template","owner":"bxm0927","description":"这是一个基于 Vue CLI v4 和 Vue v2 搭建的一个 Vue SPA 模板项目 📦","archived":false,"fork":false,"pushed_at":"2020-10-12T02:49:15.000Z","size":536,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T14:45:45.590Z","etag":null,"topics":["vue","vue-router","vuecli","vuex"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bxm0927.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":"2020-09-29T04:49:14.000Z","updated_at":"2020-10-12T02:49:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c94e061-f86f-41fe-999e-5c9bb7d148f7","html_url":"https://github.com/bxm0927/vue-cli-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxm0927%2Fvue-cli-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxm0927%2Fvue-cli-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxm0927%2Fvue-cli-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxm0927%2Fvue-cli-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bxm0927","download_url":"https://codeload.github.com/bxm0927/vue-cli-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447526,"owners_count":19964314,"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","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":["vue","vue-router","vuecli","vuex"],"created_at":"2024-11-13T07:18:17.956Z","updated_at":"2026-05-08T23:02:17.482Z","avatar_url":"https://github.com/bxm0927.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-cli-template\n\n## 项目简介\n\n这是一个基于 `Vue CLI v4` 和 `Vue v2` 搭建的一个开箱即用的 Vue SPA 模板项目 📦\n\n已经集成了以下功能：\n\n- [x] `Vuex`: Vue.js 官方状态管理库\n- [x] `Vue Router`: Vue.js 官方路由库，本项目使用 `history` 模式\n- [x] `axios`: HTTP 客户端\n- [x] `Vant`: 有赞前端团队开源的 Vue.js 移动端组件库，支持按需加载\n- [x] `postcss-px-to-viewport`: 基于 Viewport 的移动端适配方案\n- [x] `Sass/SCSS (with node-sass)`: CSS Pre-processor\n- [x] `style-resources-loader`: CSS Automatic imports\n- [x] `normalize.css`: CSS resets\n- [x] `ESLint + Stylelint + Prettier`: Linter / Formatter\n- [x] `husky + lint-staged`: Git Hooks\n- [x] `Nginx + Jenkins + Docker`: Deployment\n\n以下功能尚未集成：\n\n- [ ] TypeScript\n- [ ] Unit Testing\n- [ ] E2E Testing\n- [ ] Progressive Web App (PWA) Support\n\n\u003e Tips: 本项目默认为移动端模板项目，PC 端项目需要去掉 `postcss-px-to-viewport`，并将 `Vant` 替换为 `Element UI`.\n\n## 快速开始\n\n```bash\n# install dependencies\nnpm install\n\n# Compiles and hot-reloads for development\nnpm run serve\n\n# Compiles and minifies for production\nnpm run build\n\n# Lints and fixes files\nnpm run lint\n```\n\n## 部署\n\n使用 Nginx + Docker 部署：\n\n```bash\n# Build Docker image\n# docker build -t vue-cli-template .\n\n# Run Docker image\n# docker run -d -p 9000:80 vue-cli-template\n\n# Run Docker image with Docker Compose\ndocker-compose up -d --build # or: npm run deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbxm0927%2Fvue-cli-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbxm0927%2Fvue-cli-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbxm0927%2Fvue-cli-template/lists"}