All Projects → bem → Bem Core

bem / Bem Core

Licence: other
BEM Core Library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Bem Core

Mam mol
$mol - fastest reactive micro-modular compact flexible lazy ui web framework.
Stars: ✭ 385 (+40%)
Mutual labels:  framework, components, bem
Ivory
IVORY is simple and highly customizable CSS framework, gives you all to build your pages faster and easier.
Stars: ✭ 196 (-28.73%)
Mutual labels:  framework, components
Cmui
Lightweight UI solution for mobile web.
Stars: ✭ 182 (-33.82%)
Mutual labels:  framework, components
Vue.py
Pythonic Vue.js
Stars: ✭ 223 (-18.91%)
Mutual labels:  framework, frontend
Visualplus
🎨 The VisualPlus Framework (VPF) for WinForms allows you to rapidly deploy professional .NET applications with customizable components and controls.
Stars: ✭ 268 (-2.55%)
Mutual labels:  framework, components
Strudel
A front-end framework for the back-end powered web
Stars: ✭ 180 (-34.55%)
Mutual labels:  framework, frontend
Crank
Write JSX-driven components with functions, promises and generators.
Stars: ✭ 2,487 (+804.36%)
Mutual labels:  framework, components
Uibench
UI Benchmark
Stars: ✭ 163 (-40.73%)
Mutual labels:  framework, frontend
A17t
An atomic design toolkit for pragmatists
Stars: ✭ 236 (-14.18%)
Mutual labels:  framework, components
Inesita
Frontend web application framework in Ruby using Opal.
Stars: ✭ 253 (-8%)
Mutual labels:  framework, frontend
Vue
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Stars: ✭ 191,421 (+69507.64%)
Mutual labels:  framework, frontend
Fe
前端热门文章阅读
Stars: ✭ 174 (-36.73%)
Mutual labels:  framework, frontend
Sifrr
⚡️ Set of tiny, independent libraries for creating modern and fast webapps with javascript/typescript
Stars: ✭ 174 (-36.73%)
Mutual labels:  framework, frontend
Quasar
An experimental rust-to-{wasm,asmjs} frontend framework.
Stars: ✭ 180 (-34.55%)
Mutual labels:  framework, frontend
Tawian Frontend
A markdowny CSS framework
Stars: ✭ 167 (-39.27%)
Mutual labels:  framework, frontend
Aleph.js
The Full-stack Framework in Deno.
Stars: ✭ 3,448 (+1153.82%)
Mutual labels:  framework, components
Frontend Boilerplates
Collection of Boilerplates with ES6, Vue, React, Nuxt, TypeScript, SCSS, Nodejs. Using good practices and file structures to inspire your real projects.
Stars: ✭ 269 (-2.18%)
Mutual labels:  frontend, bem
Portfolio Generator
JS framework to dynamically generate a portfolio site from a JSON file
Stars: ✭ 135 (-50.91%)
Mutual labels:  framework, frontend
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (-46.55%)
Mutual labels:  framework, frontend
Tko
🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
Stars: ✭ 227 (-17.45%)
Mutual labels:  framework, frontend

bem-core library Build Status GitHub Release devDependency Status

Documentation on bem-core in a much more informative way is also available at bem.info. It is also available in Russian.

What is this?

bem-core is a base library for web interface development. It provides the minimal stack for coding client-side JavaScript and templating.

Use

The easiest way to run a project with bem-core is to use the project-stub.

You can use any other way you are familiar with to include the library into the project.

Inside

Levels

  • common.blocks — suited for any devices and browsers
  • desktop.blocks — should be used for desktop browsers
  • touch.blocks — implement some touch-platforms specifics

Blocks

  • i-bem — base block with helpers for JS and HTML
  • strings — helpers for JS-strings
  • objects — helpers for JS-objects
  • functions — helpers for JS-functions
  • events — JS-events
  • querystring — helpers for work with querystring
  • tick — global timer
  • idle — IDLE event
  • next-tick — polyfill for nextTick/setTimeout(0, ...)
  • inherit — OOP helpers
  • jquery — jQuery
  • clearfix — CSS clearfix trick
  • identify — identify JS-objects
  • cookie — helpers for work with browser cookies
  • vow — Promises/A+ implementation
  • dom — helpers for work with DOM
  • loader — loader for JS files
  • ua — browser features detection
  • keyboard — keyboard helpers
  • page — html/head/body scaffold

Technologies

  • vanilla.js + browser.js
  • bemhtml
  • bemtree

API

The autogenerated JSDoc API can be found on bem.info. E.g. JSDoc for i-bem is here https://en.bem.info/platform/libs/bem-core/current/desktop/i-bem/#jsdoc

Changelog

You can check the changelog at the Changelog page.

Migration

If you used BEM before, check the migration instructions.

Development

Working copy

  1. Get the needed version code (e.g., v4):

    $ git clone -b v4 git://github.com/bem/bem-core.git
    $ cd bem-core
    
  2. Install the dependencies:

    $ npm install
    

    You need export PATH=./node_modules/.bin:$PATH or an alternative way to run locally-installed npm dependencies.

  3. Install all necessary libraries:

    $ npm run deps
    
  4. Build and run tests (specs):

    $ npm test
    
  5. Run development server:

    $ npm start
    

How to contribute

Please refer to How to contribute guide.

Modular testing

A default test bundle for functions__debounce:

$ magic make desktop.specs/functions__debounce

You can see the results of the tests in the terminal after the building process finishes.

You can also watch them in a browser loading desktop.specs/functions__debounce/spec-js+browser-js+bemhtml/spec-js+browser-js+bemhtml.html.

Run tests for other BEM entities in the same way. This will work for those which are equipped with .spec.js file.

Code coverage

To build code coverage report add ISTANBUL_COVERAGE=yes environment variable to the tests run command:

$ ISTANBUL_COVERAGE=yes magic make desktop.specs && istanbul report html

You can run modular testing with coverage as well by using more concrete build target as was described above.

$ ISTANBUL_COVERAGE=yes magic make desktop.specs/functions__debounce && istanbul report html

After tests finish, you can view coverage HTML report by opening coverage/index.html in your favorite browser.

The whole code coverage statistics can be found on the bem-core profile page on Coveralls.

Tests are built with a enb-bem-specs library. Check the details (available in Russian only).

Supported browsers

Our browser support policy is based on statistics we get from Yandex services.

Browsers with more than 2% users get full compliant support, more than 0.5% — partially compliant (which means that data is accessible but not necessary 100% functional). New features testing is not provided by us for  browsers with less than 0.5% users.

Desktop

Fully compliant

  • Google Chrome 29+
  • Firefox 24+
  • Yandex 1.7+
  • Opera 12.16
  • MSIE 10.0
  • MSIE 9.0
  • MSIE 8.0
  • Opera 12.15

Partially compliant

  • Opera 17.0
  • Opera 16.0
  • Opera 12.14
  • Opera 12.2
  • Firefox 23

Touch

Fully compliant

  • iOS 6+
  • Android 2.3+
  • Opera Mobile 12+
  • Windows Phone 7+

Partially compliant

  • iOS 5
  • Android 2.2

License

Code and documentation copyright 2012 YANDEX LLC. Code released under the Mozilla Public License 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].