{"id":28447714,"url":"https://github.com/nervjs/taro-plugin-migrate","last_synced_at":"2025-09-12T04:32:25.159Z","repository":{"id":40765548,"uuid":"263843896","full_name":"NervJS/taro-plugin-migrate","owner":"NervJS","description":"快速升级迁移插件","archived":false,"fork":false,"pushed_at":"2023-01-06T08:13:17.000Z","size":458,"stargazers_count":1,"open_issues_count":12,"forks_count":1,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-08-08T22:55:30.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NervJS.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}},"created_at":"2020-05-14T07:19:58.000Z","updated_at":"2020-07-27T18:16:46.000Z","dependencies_parsed_at":"2023-02-05T16:45:49.130Z","dependency_job_id":null,"html_url":"https://github.com/NervJS/taro-plugin-migrate","commit_stats":null,"previous_names":["nervjs/plugin-migrate"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/NervJS/taro-plugin-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-plugin-migrate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-migrate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274753612,"owners_count":25342825,"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-09-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2025-06-06T12:06:36.716Z","updated_at":"2025-09-12T04:32:25.145Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tarojs/plugin-migrate\n\n\u003e 快速升级迁移插件\n\n## 安装\n\n在 Taro 项目根目录下安装\n\n```bash\n$ npm i @tarojs/plugin-migrate --save\n```\n\n## 使用\n\n请确保 Taro CLI 已升级至 Taro 2/3 的最新版本。\n\n修改项目 `config/index.js` 中的 `plugins` 配置为如下\n\n```js\nconst config = {\n  ...\n  plugins: [\n    ...其余插件\n\n    '@tarojs/plugin-migrate'\n  ]\n  ...\n}\n```\n\n随后执行命令\n\n```bash\n$ taro migrate\n```\n\n即会开始进行代码迁移转换，迁移的目标版本会根据 CLI 的 major 版本来确定。\n\n## 功能\n\n* [x] Taro 2/3：对编译配置进行识别，并给予提示\n* [x] Taro 3：生成 babel.config.js 文件\n* [x] Taro 3：生成 App 和页面的配置文件 *.config.js\n* [ ] Taro 3：对代码进行调整\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervjs%2Ftaro-plugin-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-migrate/lists"}