Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Releases: bem-archive/bem-tools

0.6.1

04 Jul 19:15
Compare
Choose a tag to compare
0.6.1 Pre-release
Pre-release
  • 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 and project 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 and docs 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 block button:

    bem create -b button -T docs
    
    button/
    ├── button.docs/
    |   └── .bem/
    |       └── level.js
    └── ...
    
  • bem: Add tech-docs tech and tech-docs level prototype.

  • API: Introduce util.findLevel(path, [types]) function

0.6.0

04 Jul 19:17
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release
  • 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 in lib/level.js).

On migration your project from using Techs V1 API to V2 see migration guide (Russian only for now. Sorry).