Skip to content

Tool to poll intersections between BEM blocks level and bemdecl file

Notifications You must be signed in to change notification settings

nascii/bem-convergence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convergence

Tool and library to intersect entities from bemdecl.js with entities from BEM levels on filesystem.

npm install git://github.com/corpix/convergence.git

Usage example on https://github.com/bem/project-stub:

$ cd project-stub
$ node_modules/.bin/convergence -l libs/bem-components/desktop.blocks desktop.bundles/index/index.bemdecl.js  | jq '.[] | select(.tech == "js")'
{
    "block": "input",
    "level": "libs/bem-components/desktop.blocks",
    "tech": "js",
    "path": "libs/bem-components/desktop.blocks/input/input.js",
    "id": "input",
    "bem": "input"
}
{
    "block": "input",
    "modName": "has-clear",
    "modVal": true,
    "level": "libs/bem-components/desktop.blocks",
    "tech": "js",
    "path": "libs/bem-components/desktop.blocks/input/_has-clear/input_has-clear.js",
    "id": "input_has-clear",
    "bem": "input_has-clear"
}

About

Tool to poll intersections between BEM blocks level and bemdecl file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published