Coder Social home page Coder Social logo

a382695908 / omi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tencent/omi

0.0 1.0 0.0 2.84 MB

Open and modern framework for building user interfaces-开放现代的Web组件化框架。

Home Page: http://www.omijs.org

JavaScript 88.12% CSS 0.61% HTML 11.27%

omi's Introduction

Omi

Open and modern framework for building user interfaces.


中文 | English

  • 如果想体验一下Omi框架,可以访问 Omi Playground
  • 如果想使用Omi框架或者开发完善Omi框架,可以访问 Omi使用文档
  • 如果你想获得更佳的阅读体验,可以访问 Docs Website
  • 如果你懒得搭建项目脚手架,可以试试 omi-cli
  • 如果你有Omi相关的问题可以 New issue
  • 如果想更加方便的交流关于Omi的一切可以加入QQ的Omi交流群(256426170)

Omi

命令行

$ npm install omi-cli -g       //安装cli
$ omi init your_project_name   //初始化项目,你也可以在一个空的文件夹下执行 omi init
$ cd your_project_name         //如果你是在空文件夹下执行的 omi init。请无视这条命令
$ npm run dev                  //开发
$ npm run dist                 //部署发布

特性

  • 超小的尺寸,7 kb (gzip)
  • 良好的兼容性,支持IE8 (请自行引用es5-shim或es5-sham)
  • 完全面向对象的组件体系
  • 局部CSS,HTML+ Scoped CSS + JS组成可复用的组件
  • 更自由的更新,每个组件都有update方法,自由选择时机进行更新
  • 模板引擎可替换,开发者可以重写Omi.template方法来使用任意模板引擎
  • 提供了ES6+和ES5的两种开发方案供开发者自由选择

生态

通过npm安装

$ npm install omi

Hello World

你可以使用 webpack + babel,在webpack配置的module设置babel-loader,立马就能使用ES6+来编写你的web程序。

如果使用omi.lite.js版本(不包含mustache.js模板引擎)的话,也可以使用 ${this.data.name} 的方式

CDN

感谢

  • morphdom-Fast and lightweight DOM diffing/patching (no virtual DOM needed)

English | 中文

  • If you want to experience the Omi framework, you can visit Omi Playground
  • If you want to use the Omi framework or develop and improve omi framework, please read the Omi documentation
  • If you want to get a better reading experience of the documents, you can visit Docs Website
  • If you are too lazy to build a project scaffolding, you can try omi-cli
  • If you have Any problems,please New issue
  • If you want to be more convenient on the exchange of all Omi can join the QQ Omi exchange group (256426170)

omi-cli

$ npm install omi-cli -g       //install cli
$ omi init your_project_name   //init project, you can also exec 'omi init' in an empty folder
$ cd your_project_name         //please ignore this command if you executed 'omi init' in an empty folder
$ npm run dev                  //develop
$ npm run dist                 //release

Features

  • Super tiny size, 7 KB (gzip)
  • Good compatibility, support IE8 (please import es5-shim or es5-sham by yourself)
  • Fully object-oriented component system
  • Support Scoped CSS, reusable components are composed of HTML, Scoped CSS and JS
  • More free updates, each component has a update method, free to choose the right time to update
  • Template engines can be replaced, developers can override the Omi.template method to use any template engine
  • Provides two development way ( ES6+ and ES5) for developers to choose freely

Plugins

Install

$ npm install omi

Hello World

You can use webpack + babel,configure the babel-loader in the module settings of webpack,then you can use ES6+ to write your web program.

if using 'omi.lite.js' (without mustache.js),you can use the ${this.data.name} way

CDN

Thanks

  • morphdom-Fast and lightweight DOM diffing/patching (no virtual DOM needed)

Contributors

name avatars company
CodeFalling alibaba
abell123456 alibaba
Aresn TalkingCoder
pasturn Mars Holding
vorshen Tencent
xcatliu Microsoft
dntzhang Tencent

License

This content is released under the MIT License.

omi's People

Contributors

xcatliu avatar xcodebuild avatar pasturn avatar zhangsanshi avatar

Watchers

 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.