This repository has been archived by the owner on Jan 13, 2018. It is now read-only.
Releases: bem-archive/bem-tools
Releases · bem-archive/bem-tools
0.6.1
-
bem: Add
bem bench
command see docs
(in russian) for more info -
bem: Add ability to create level prototypes (js files) using
bem create level
command. See example:bem create level -l simple .bem/levels/docs.js
-
bem: Add
project
tech andproject
level prototype:This command will create
my
project:bem create -b my -T project
my/ ├── .bem/ | ├── levels/ | | ├── blocks.js | | ├── bundles.js | | ├── docs.js | | ├── examples.js | | └── tech-docs.js | ├── techs/ | └── level.js └── node_modules/ ├── .bin/ | └── bem -> symplink/to/globally/installed/bem (executable) └── bem/ -> symplink/to/globally/installed/bem (module)
-
bem: Add
docs
tech anddocs
level prototype.This command will create new level based on
docs
:bem create level -l docs docs
docs/ └── .bem/ └── level.js
This command will create
docs
tech for blockbutton
:bem create -b button -T docs
button/ ├── button.docs/ | └── .bem/ | └── level.js └── ...
-
bem: Add
tech-docs
tech andtech-docs
level prototype. -
API: Introduce
util.findLevel(path, [types])
function
0.6.0
- New techs API is implemented (see
lib/tech/v2.js
). It operates with real file paths instead of prefixes. This makes build avoid redundant operations and makes it work faster. - As a part of the new API new level introspection is implemented. In default implementation it just scans dirs/files and checks their validity to being BEM entity using simple string operations (see
scan*()
methods inlib/level.js
).
On migration your project from using Techs V1 API to V2 see migration guide (Russian only for now. Sorry).