Omip

Today, Omi can not only develop desktop Web, mobile H5, but also directly develop small programs! Direct development of small procedures! Direct development of small procedures!

Github

Omi profile

Omi framework is the next generation front-end framework developed by the R&D department of wechat Payment line. It is a componentalized framework designed based on Web Components specifications, which can develop PC Web and MOBILE TERMINAL H5, and can also directly develop small programs using Omi. Omi serves the H5 page of wechat Pay, the PC website of wechat Pay, the internal OA system, and small programs related to wechat pay, etc. Since open source at the end of last year, the project has received 7,000 + stars and 40+ contributors. Omi made use of the excellent taro multi-terminal unified framework of JD O2Team, as well as the recent joint efforts of Omi development team and community contributors, to make Omi open up small programs and the Web. Careful users will find that Omi’s slogan changes from the next generation Web framework to the next generation front-end framework. Because OF the addition of Omip, Omi was born on The Web but can escape from the Web.

The same syntax, the same writing format, running on different platforms, in different environments, with little change except for some platform-specific apis! The old Omi project was able to run in android /IOS applets with very minor (platform-specific) changes.

  • Learn Once, Write Anywhere
  • Write Once, Run Anywhere

Omip features

  • Learn once, develop many places, develop once, run many places
  • With JSX, expressiveness and programming experience outweigh templates
  • NPM/YARN can be used to install and manage third-party dependencies
  • ES6+ is supported
  • Support for using CSS precompilers
  • Small program API optimization, asynchronous API Promise
  • Ultra-lightweight dependency packages, compliant with applets tags and component design

Quick start

npm i omi-cli -g
omi init-p my-app
cd my-app
npm start
Copy the code

The node version must be >= 8

Set the applets directory to the dist directory and debug happily!

NPX omi-cli init-p my-app also supported (NPM v5.2.0+)

Omip multi-terminal example

Omi other

Community development, welcome to join and contribute to community

At present, Omi contributors are all over major companies at home and abroad (China, South Korea, the United States, Turkey). Omi has received documents and code submissions from nearly 40 contributors, including 11 core contributors. Developers with ideas, ability and passion are welcome to join the ranks of contributors and eventually join the Omi Team.

Here are some ways you can contribute:

1. Translation documents, currently available in Chinese, English and Korean, welcome translation in other languages to add 2. Submit patch code to optimize Omi 3. Actively participate in Issue discussions, such as answering questions, providing ideas, or reporting unresolvable bugs 4. Contribution cases can be management background, PC website, mobile terminal H5, etc. 6. Expand Omi ecology and write Omi custom components 7. 8. Write an Omi blog

Developers are very welcome to contribute to Tencent open source, and we will give incentives to contributors accordingly to show our recognition and gratitude. See The Tencent Contributor Incentive Plan

Omi group of communication

Welcome to Omi exchange group, chat number: 256426170, you can also scan code to join:

Thank you

  • Thanks to JD O2Team Taro project
  • Thanks to the O2Team Taro team

Github

github.com/Tencent/omi