{"id":13488881,"url":"https://github.com/eleme/morjs","last_synced_at":"2025-05-13T20:22:10.643Z","repository":{"id":75075492,"uuid":"605167283","full_name":"eleme/morjs","owner":"eleme","description":"基于小程序 DSL（微信、支付宝）的，可扩展的多端研发框架，支持一键将微信或支付宝小程序转换为微信、支付宝、百度、字节、QQ、快手、淘宝、钉钉等小程序 或 Web 应用。","archived":false,"fork":false,"pushed_at":"2025-04-07T12:15:36.000Z","size":10015,"stargazers_count":1919,"open_issues_count":15,"forks_count":122,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-04-28T02:37:18.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mor.ele.me/","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/eleme.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-02-22T15:34:16.000Z","updated_at":"2025-04-26T14:15:47.000Z","dependencies_parsed_at":"2024-05-11T07:27:10.669Z","dependency_job_id":"44533941-4ec8-41b4-979d-abdf5f82ac9b","html_url":"https://github.com/eleme/morjs","commit_stats":{"total_commits":445,"total_committers":16,"mean_commits":27.8125,"dds":0.5123595505617977,"last_synced_commit":"b8c0a263dc9bf3295c6fc88efec8fc67daf671a0"},"previous_names":[],"tags_count":143,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fmorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fmorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fmorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fmorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eleme","download_url":"https://codeload.github.com/eleme/morjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251310432,"owners_count":21568998,"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-07-31T18:01:23.472Z","updated_at":"2025-04-28T11:49:50.377Z","avatar_url":"https://github.com/eleme.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n \u003ca href=\"https://github.com/eleme/morjs\"\u003e\u003cimg src=\"https://img.alicdn.com/imgextra/i3/O1CN01l7Xw6O1E1K4OCFYmw_!!6000000000291-2-tps-485-350.png\" width=\"150\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM Version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n[![PRs Welcome][pr-image]][pr-url]\n[![CLA assistant][cla-image]][cla-url]\n[![Discussions][discussions-image]][discussions-url]\n\n[discussions-image]: https://img.shields.io/badge/discussions-on%20github-blue\n[discussions-url]: https://github.com/eleme/morjs/discussions\n[pr-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg\n[pr-url]: https://github.com/eleme/morjs/pulls\n[npm-image]: https://img.shields.io/npm/v/@morjs/cli.svg\n[npm-url]: https://www.npmjs.com/package/@morjs/cli\n[license-image]: https://img.shields.io/npm/l/@morjs/cli.svg\n[license-url]: https://github.com/eleme/morjs/blob/main/LICENSE\n[cla-image]: https://cla-assistant.io/readme/badge/eleme/mor\n[cla-url]: https://cla-assistant.io/eleme/mor\n\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eMorJS\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eMor (发音为 /mɔːr/，类似 more)，是饿了么开发的一款基于小程序 DSL 的，可扩展的多端研发框架，使用小程序原生 DSL 构建，使用者只需书写一套（微信或支付宝）小程序，就可以通过 Mor 的转端编译能力，将源码分别编译出可以在不同端（\u003ca href='https://developers.weixin.qq.com/miniprogram/dev/framework/' target='_blank'\u003e微信\u003c/a\u003e/\u003ca href='https://opendocs.alipay.com/mini/development' target='_blank'\u003e支付宝\u003c/a\u003e/\u003ca href='https://smartprogram.baidu.com/developer/index.html' target='_blank'\u003e百度\u003c/a\u003e/\u003ca href='https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/introduction/overview/' target='_blank'\u003e字节\u003c/a\u003e/\u003ca href='https://open.dingtalk.com/document/orgapp/develop-org-mini-programs' target='_blank'\u003e钉钉\u003c/a\u003e/\u003ca href='https://mp.kuaishou.com/docs/develop/guide/introduction.html' target='_blank'\u003e快手\u003c/a\u003e/\u003ca href='https://q.qq.com/wiki/develop/miniprogram/frame/' target='_blank'\u003eQQ\u003c/a\u003e/\u003ca href='https://miniapp.open.taobao.com/docV3.htm?docId=117766\u0026docType=1' target='_blank'\u003e淘宝\u003c/a\u003e/Web…）运行的产物。\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eMorJS 以多端编译为基础，配以面向全生命周期的插件体系，覆盖从源码到构建产物的每个阶段，支持各类功能扩展和业务需求，无论是基础的页面和组件还是复杂的分包和插件，MorJS 都可以胜任，帮助你高效地开发多端小程序。\u003c/p\u003e\n\n### [📚 快速上手 MorJS →](https://mor.ele.me/guides/introduction/getting-started)\n\n## 优势与核心能力\n\nMor 是一套基于小程序 DSL (支付宝或微信) 的框架。他的易用性、标准化和灵活性，使得开发者能更好地专注于业务，让开发成本，招聘、管理、测试各方面成本都大幅下降，提高开发者的工作效率。\n\n- ⭐️ **易用性**：\n  - 💎 **DSL 支持**：可使用微信小程序 DSL 或 支付宝小程序 DSL 编写小程序，无额外使用成本；\n  - 🌴 **多端支持**：支持将一套小程序转换为各类小程序平台及 Web 应用, 节省双倍人力；\n  - 🚀 **快速接入**：仅需引入两个包，增加一个配置文件，即可简单快速接入到现有小程序项目；\n- 🌟 **标准化**：\n  - 📦 **开箱即用**：内置了脚手架、构建、分析、多端编译等完整研发能力，仅需一个依赖即可上手开发；\n  - 🌈 **表现一致**：通过编译时+运行时抹平多端差异性，让不同平台的小程序获得一致的用户体验；\n  - 🖇 **形态转换**：支持同一个项目的不同的形态，允许小程序、分包、插件不同形态之间的相互转换；\n- ✨ **灵活性**：\n  - 🎉 **方便扩展**：Mor 将完备的生命周期和内部功能插件化，使用插件(集)以满足功能和垂直域的分层需求；\n  - 📚 **类型支持**：除小程序标准文件类型外，还支持 ts、less/scss、jsonc/json5 等多种文件类型；\n  - 🧰 **按需适配**：可根据需求选择性接入适配能力，小项目仅需编译功能，中等项目可结合编译和页面注入能力，大型项目推荐使用复杂小程序集成能力；\n\n## 示例\n\n以下是饿了么-美食外卖频道在微信、支付宝、抖音小程序及 H5 中的表现。\n\n\u003cimg src=\"https://img.alicdn.com/imgextra/i2/O1CN01pbpEfK1JHQ6ejbjIb_!!6000000001003-0-tps-2478-1383.jpg\" /\u003e\n\n## 部分使用案例\n\n\u003cimg src=\"https://img.alicdn.com/imgextra/i2/O1CN01nT9RLK1wJ2WjD09Zc_!!6000000006286-0-tps-1520-3500.jpg\" /\u003e\n\n## 贡献\n\n参见 [参与贡献](https://mor.ele.me/guides/contributing)\n\n## 社区\n\n参见 [社区指南](https://mor.ele.me/about/community-guide)\n\n\u003cimg src=\"https://img.alicdn.com/imgextra/i2/O1CN010BILXm1vhwc7X1ccx_!!6000000006205-2-tps-1220-1603.png\" /\u003e\n\n### 核心成员\n\n核心成员是在 MorJS 相关问题、BUG 修复、功能增强、新特性添加等方便投入大量的时间和精力的社区贡献者。\n\n- [lyfeyaj](https://github.com/lyfeyaj)\n- [BboyZaki](https://github.com/BboyZaki)\n- [hwaphon](https://github.com/hwaphon)\n- [shujian-cao](https://github.com/shujian-cao)\n- [robin-shine](https://github.com/robin-shine)\n- [aboyforwind](https://github.com/aboyforwind)\n\n## 许可证\n\n[MIT](https://github.com/eleme/morjs/blob/master/LICENSE)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Fmorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feleme%2Fmorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Fmorjs/lists"}