Andrew Abramov
Andrew Abramov
I think we should create new scheme which will support platforms. I don't want to add this logic in `nested` scheme.
@zxqfox ты предлагаешь поддерживать обе схемы?
Scheme can know when it scan files for depth. ``` common.blocks/ # level depth button/ # block depth button__text/ # elem depth input/ desktop.blocks/ button/ ``` It is mean that...
For a start we can wait until all levels will be scaned and do optimization later.
Related #54
We can also move the flex scheme and get it as npm dependency.
@tenorok, it seems that you were talking about something like that ;)
> I think it's fine for small projects, but it should report object asap for big projects and blocks/block/*\* schemes. For big projects should use the `nested` scheme.
I think we can get declaration instead of path parameter. ``` blocks/ button/ button.css button.js ``` ``` js const config = require('bem-config')(); const walk = require('bem-walk'); walk({ block: 'button' },...
### API I think API should look like this: ``` js const config = require('bem-config')(); const walk = require('bem-walk'); const levelMap = config.levelMapSync(); const storage = new walk.Storage(); walk(['path/to/level'], {...