{"id":20766179,"url":"https://github.com/navono/modular-frontend","last_synced_at":"2026-05-19T14:33:06.904Z","repository":{"id":74497011,"uuid":"175576916","full_name":"navono/modular-frontend","owner":"navono","description":"A simple demo for single-SPA and lerna","archived":false,"fork":false,"pushed_at":"2019-04-09T04:43:23.000Z","size":798,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T03:36:26.597Z","etag":null,"topics":["lerna","react","single-spa"],"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/navono.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":"2019-03-14T08:11:25.000Z","updated_at":"2025-01-25T06:19:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb92c1f6-398b-4a4d-b6da-919d85e6a13b","html_url":"https://github.com/navono/modular-frontend","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/navono%2Fmodular-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fmodular-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fmodular-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fmodular-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navono","download_url":"https://codeload.github.com/navono/modular-frontend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093958,"owners_count":20235467,"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":["lerna","react","single-spa"],"created_at":"2024-11-17T11:21:48.857Z","updated_at":"2025-09-23T13:06:05.559Z","avatar_url":"https://github.com/navono.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modular-frontend\n\n使用 `lerna` 与 `single-spa` 进行构建与管理。最初源码来自于 [Fantasy9527](https://github.com/Fantasy9527/microfrontend-base-demo)\n\n## Dev\n\nTODO\n\n## Build\n\n运行：\n\u003e yarn build\n\n目前还没有实现 `project.config.js` 的自动生成与更新，所有需要手动增加 `project.config.js` 文件，同时增加以下内容：\n\n```js\nmodule.exports = {\n  projects: [\n    {\n      \"name\": \"basemodule\",\n      \"prefix\": \"/basemodule/\",\n      \"main\": \"/basemodule/main.js\",\n      \"store\": \"/basemodule/store.js\",\n      \"base\": true\n    },\n    {\n      \"name\": \"submodule\",\n      \"path\": [\"/module1\"],\n      \"prefix\": \"/submodule/\",\n      \"main\": \"/submodule/main.js\",\n      \"store\": \"/submodule/store.js\"\n    }\n  ]\n}\n```\n\n然后可以使用 `http-server` 进行验证：\n\u003e npx http-server ./build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fmodular-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavono%2Fmodular-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fmodular-frontend/lists"}