31

GitHub - max-team/Mars: Mars - Vue 驱动的多端开发框架

 5 years ago
source link: https://github.com/max-team/Mars
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Mars - Vue 驱动的多端开发框架

Mars 是由 Vue 驱动的多端开发框架,其语法规范完全遵循 Vue,支持一套代码同时运行到百度小程序、微信小程序以及 H5 Web 端。

快速开始

# 安装 mars-cli
npm install -g @marsjs/cli

# 创建项目
mars create [projectName]

# 可选项:
# 是否支持 H5,如需支持 H5 请选择:小程序和 H5
? 选择创建项目类型: (Use arrow keys)
❯ 小程序和 H5
  仅小程序

# 开发模式
# 如果 target 是小程序,需要用小程序开发工具打开对应的 dist 目录
mars serve [--target, -t swan (default) | wx | h5]

# 构建模式
# 如果 target 是小程序,需要用小程序开发工具打开对应的 dist 目录
mars build [--target, -t swan (default) | wx | h5]

文档教程

https://max-team.github.io/Mars/

案例

多端案例

百度智能小程序 H5 装馨家 健康养生说

小程序案例

百度百聘 AI 画报大师 AI 福利图 百度作业模式

Packages & CHANGELOGs

package version CHANGELOG @marsjs/cli CHANGELOG @marsjs/cli-template CHANGELOG @marsjs/core CHANGELOG @marsjs/build CHANGELOG @marsjs/api CHANGELOG @marsjs/components

Contributing & Discussion

请参考 如何贡献

欢迎提 Issue 和 PR。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK