{"id":22779348,"url":"https://github.com/microappjs/plugin-compatible","last_synced_at":"2025-03-30T14:14:25.557Z","repository":{"id":38427197,"uuid":"235338541","full_name":"MicroAppJS/plugin-compatible","owner":"MicroAppJS","description":"[Plugin] Compatible adaptation","archived":false,"fork":false,"pushed_at":"2023-01-05T05:28:51.000Z","size":2242,"stargazers_count":0,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T04:58:24.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MicroAppJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-01-21T12:34:34.000Z","updated_at":"2020-04-21T03:36:33.000Z","dependencies_parsed_at":"2023-02-03T13:31:10.178Z","dependency_job_id":null,"html_url":"https://github.com/MicroAppJS/plugin-compatible","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroAppJS%2Fplugin-compatible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroAppJS%2Fplugin-compatible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroAppJS%2Fplugin-compatible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MicroAppJS%2Fplugin-compatible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MicroAppJS","download_url":"https://codeload.github.com/MicroAppJS/plugin-compatible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326789,"owners_count":20759439,"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":[],"created_at":"2024-12-11T20:08:33.475Z","updated_at":"2025-03-30T14:14:25.526Z","avatar_url":"https://github.com/MicroAppJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro APP Plugin - Compatible\n\n[Plugin] compatible plugin.\n\n针对于跨版本升级的兼容性方案. 用于 `@micro-app/cli` 的插件.\n\n[![Github Actions Coveralls][Github-Actions-Coveralls]][Github-Actions-Coveralls-url]\n[![Coverage Status][Coverage-img]][Coverage-url]\n[![NPM Version][npm-img]][npm-url]\n[![NPM Download][download-img]][download-url]\n\n[Github-Actions-Coveralls]: https://github.com/MicroAppJS/plugin-compatible/workflows/Coveralls/badge.svg\n[Github-Actions-Coveralls-url]: https://github.com/MicroAppJS/plugin-compatible\n[Coverage-img]: https://coveralls.io/repos/github/MicroAppJS/plugin-compatible/badge.svg?branch=master\n[Coverage-url]: https://coveralls.io/github/MicroAppJS/plugin-compatible?branch=master\n[npm-img]: https://img.shields.io/npm/v/@micro-app/plugin-compatible.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@micro-app/plugin-compatible\n[download-img]: https://img.shields.io/npm/dm/@micro-app/plugin-compatible.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@micro-app/plugin-compatible\n\n## Install\n\n```sh\nyarn add @micro-app/plugin-compatible\n```\n\nor\n\n```sh\nnpm install -S @micro-app/plugin-compatible\n```\n\n## Usage\n\n### 在项目 `根目录` 的 `micro-app.config.js` 文件中配置\n\n```js\nmodule.exports = {\n    // ...\n\n    plugins: [ // 自定义插件\n        ['@micro-app/plugin-compatible', {\n            version: 'v1', // default: 'v1'\n            server: false, // default: true\n        }],\n    ],\n};\n```\n\n## Details\n\n### v1\n\n`v1` 版本兼容 `0.2.x` 版本配置，支持内置 `koa` 服务。\n\n```js\n// options\n{\n    version: 'v1', // default: 'v1'\n    server: false, // default: true\n}\n```\n\n### Options\n\n#### version\n\n版本切换\n\n- type: `string`,\n- default: `v1`\n\n#### server\n\n是否启用内置服务。\n\n- type: `boolean`,\n- default: `true`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroappjs%2Fplugin-compatible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicroappjs%2Fplugin-compatible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroappjs%2Fplugin-compatible/lists"}