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

Move schemes to separate packages #17

Open
3 tasks
blond opened this issue Feb 16, 2015 · 1 comment
Open
3 tasks

Move schemes to separate packages #17

blond opened this issue Feb 16, 2015 · 1 comment

Comments

@blond
Copy link
Member

blond commented Feb 16, 2015

I think we should leave only flex scheme (#18) in this package.

  • bem-walk-nested-scheme
  • bem-walk-flat-scheme
  • bem-walk-flex-scheme

Scheme package should provide walk and path method.

const nestedScheme = require('bem-nested-scheme');

const blockPath = nestedScheme.path({ block: 'button', elem: 'text' }); // button/__elem/

const info = {
    path: 'blocks/button/',
    depth: 1,
    naming: 'origin',
    level: 'blocks/'
};

const add = (file) => console.log(file);

nestedScheme.walk(info, add, err => console.log(err));
@blond
Copy link
Member Author

blond commented May 10, 2016

We can also move the flex scheme and get it as npm dependency.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants