{"id":21529054,"url":"https://github.com/newbeea/vue-mp-web","last_synced_at":"2025-10-19T22:18:17.380Z","repository":{"id":117988313,"uuid":"139560821","full_name":"newbeea/vue-mp-web","owner":"newbeea","description":"利用 vue mpvue 同时生成微信小程序和SPA H5单页应用，获得一致开发体验","archived":false,"fork":false,"pushed_at":"2018-07-03T10:07:15.000Z","size":125,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:43:46.961Z","etag":null,"topics":["h5","miniprogram","mpvue","spa","vue","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newbeea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-03T09:34:38.000Z","updated_at":"2019-11-07T17:34:18.000Z","dependencies_parsed_at":"2024-08-17T00:34:10.752Z","dependency_job_id":null,"html_url":"https://github.com/newbeea/vue-mp-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/newbeea/vue-mp-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newbeea%2Fvue-mp-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newbeea%2Fvue-mp-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newbeea%2Fvue-mp-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newbeea%2Fvue-mp-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newbeea","download_url":"https://codeload.github.com/newbeea/vue-mp-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newbeea%2Fvue-mp-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279926967,"owners_count":26245501,"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-10-19T02:00:07.647Z","response_time":64,"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":["h5","miniprogram","mpvue","spa","vue","web"],"created_at":"2024-11-24T01:55:42.219Z","updated_at":"2025-10-19T22:18:17.374Z","avatar_url":"https://github.com/newbeea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 描述\n\n\u003e 利用 vue mpvue 同时生成小程序和SPA单页应用\n\n\n## 主要功能\n\n- vue开发体验\n- 一份代码生成小程序+SPA两个版本\n- 兼容vue路由写法\n- 动态添加路由页面\n- flyio统一请求库（TODO）\n\n## 感谢\n\n只是一些功能组合，方便快速搭建环境\n感谢[vuejs](https://vuejs.org/)\n感谢[mpvue](http://mpvue.com/)\n感谢[F-loat](https://github.com/F-loat)\n\n## 使用\n\n\n- 利用 vue-cli 生成初始工程，按步骤选择安装mpvue vue-router，根据需求选择其他组件\n\n``` bash\n$ npm install -g vue-cli\n$ vue init newbeea/vue-mp-web my-project\n```\n\n- 进入工程目录安装依赖，开始开发\n\n``` bash\n# 安装依赖\nnpm install\n\n# 编译 web 版本，启动服务器，具体端口见终端输出（默认8080），热更新\nnpm run dev\n\n# 构建 web 版本\nnpm run build\n\n# 编译小程序版本，实时更新，支持动态添加路由无需重启，打开微信开发者工具，选择 dist 目录，查看效果\nnpm run dev-mp\n\n# 构建小程序版本\nnpm run build-mp\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewbeea%2Fvue-mp-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewbeea%2Fvue-mp-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewbeea%2Fvue-mp-web/lists"}