{"id":22199170,"url":"https://github.com/xh-shen/micro-app-framework","last_synced_at":"2026-03-19T22:04:21.085Z","repository":{"id":143822058,"uuid":"492529323","full_name":"xh-shen/micro-app-framework","owner":"xh-shen","description":"微前端架构","archived":false,"fork":false,"pushed_at":"2023-02-20T02:00:19.000Z","size":1845,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-08-23T18:20:46.485Z","etag":null,"topics":["microapp","ts","vue3"],"latest_commit_sha":null,"homepage":"https://micro.shene.org.cn/docs/","language":"Vue","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/xh-shen.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,"zenodo":null}},"created_at":"2022-05-15T15:39:28.000Z","updated_at":"2023-02-20T02:02:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba1166f3-6425-4b76-af49-3ff8dc6fe8ff","html_url":"https://github.com/xh-shen/micro-app-framework","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xh-shen/micro-app-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xh-shen%2Fmicro-app-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xh-shen%2Fmicro-app-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xh-shen%2Fmicro-app-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xh-shen%2Fmicro-app-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xh-shen","download_url":"https://codeload.github.com/xh-shen/micro-app-framework/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xh-shen%2Fmicro-app-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["microapp","ts","vue3"],"created_at":"2024-12-02T15:13:32.914Z","updated_at":"2026-02-12T10:33:05.793Z","avatar_url":"https://github.com/xh-shen.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro-app-framework \r\n\r\n此处开始默认你已经下载了项目代码，项目代码包括底座、基座、0 个或多个子应用。\r\n\r\n开始前请检查自己的`node`版本及是否安装`pnpm`包管理器。`node版本需要16以上，pnpm版本需要7以上`\r\n\r\n```bash\r\n# 检查node版本\r\n$ node --version\r\n$ v16.15.0\r\n# 检查pnpm版本\r\n$ pnpm --version\r\n$ 7.1.0\r\n# 如果pnpm没有安装\r\n$ npm install pnpm -g\r\n```\r\n\r\n::: warning\r\n\r\n1. 切记切记，你只能使用 pnpm 安装及运行项目，使用 npm 及 yarn 将不能正常运行\r\n2. 切记切记，以下所有的 shell 脚本都只能在`底座`根目录执行\r\n\r\n:::\r\n\r\n## 安装依赖\r\n\r\n由于网络不稳定，安装可能存在失败的情况，请多次尝试，不建议使用`淘宝源`，最近发现淘宝源同步比较慢，会出现找不到包的情况。\r\n\r\npnpm 安装依赖时会安装所有`pnpm-workspace.yaml`文件内配置的包的依赖，不用进入到每个包单独安装，很方便。\r\n\r\n```bash\r\n$ pnpm install\r\n```\r\n\r\n## 本地运行\r\n\r\n本地运行的前提条件是您已经下载了`基座（主应用）`项目，因为没有启动基座，单独启动子应用是没有意义的。\r\n\r\n本地运行是使用自研的[脚手架](./cli)工具运行的，通过[配置](./config)文件`micro.config.js`结合扫描本地存在的应用的一个交互命令行的操作，让您方便的选择启动那些应用。\r\n\r\n假设您设置了以下 npm 脚本，这个只是参考示例，请结合项目设置。\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"dev\": \"shene-micro dev --argv argv1\",\r\n    \"dev:argv1\": \"shene-micro dev --argv argv1\",\r\n    \"dev:argv2\": \"shene-micro dev --argv argv2\"\r\n  }\r\n}\r\n```\r\n\r\n您可以运行 pnpm run dev 命令来选择启动应用吧。\r\n\r\n```bash\r\n$ pnpm run dev\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxh-shen%2Fmicro-app-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxh-shen%2Fmicro-app-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxh-shen%2Fmicro-app-framework/lists"}