Skip to content
forked from Tencent/omi

Open and Modern framework for building user Interfaces - 开放现代的Web组件化框架

Notifications You must be signed in to change notification settings

zhangxuekun/omi

 
 

Repository files navigation

Omi

Open and modern framework for building user interfaces.

Version Download PRs

中文README

Omi

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 start                    # develop
$ npm run dist                 # release

other cmd:

$ npm run ie    # debugging in ie8

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)
  • art-template - JS template engine with excellent performance
  • sodajs - Light weight but powerful template engine for JavaScript
  • mustache.js - Minimal templating with {{mustaches}} in JavaScript

License

This content is released under the MIT License.

About

Open and Modern framework for building user Interfaces - 开放现代的Web组件化框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.7%
  • HTML 10.0%
  • Other 0.3%