Giter Club home page Giter Club logo

mars's Introduction

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
装馨家
健康养生说
百股精

小程序案例

百度百聘 百拍智能构图 百看君 百度作业模式 爱眼日

Packages & CHANGELOGs

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

Contributing & Discussion

请参考 如何贡献

欢迎提 Issue 和 PR。

百度员工可以加 Hi 群:1659354

mars's People

Contributors

allen-zh avatar jingyuanzhang avatar meixg avatar traviscibot avatar dependabot[bot] avatar loongfay avatar liujiaor avatar keyiran avatar zhaomenghuan avatar kingphone-he avatar xuexb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.