Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bem-decl v1 #23

Open
1 of 18 tasks
skad0 opened this issue Nov 25, 2016 · 0 comments
Open
1 of 18 tasks

bem-decl v1 #23

skad0 opened this issue Nov 25, 2016 · 0 comments
Labels

Comments

@skad0
Copy link
Member

skad0 commented Nov 25, 2016


API

  • parse(bemdecl: String|Object): BemCell[] - add option to parse without detection and/or version wrapper

  • stringify(BemCell[], {format: String, exportType: String}): String

  • format(decl: BemCell[], opts: {format: 'v1'|'v2'|'enb'}): * (instead of convert)

  • load(file: String, opts: *): BemCell[]

  • save(file: String, BemCell[], opts: *)

  • merge(BemCell[], BemCell[], ...): BemCell[])

  • intersect(BemCell[], BemCell[], ...): BemCell[]

  • subtract(BemCell[], BemCell[]): BemCell[])

Private

  • assign(cell: BemCell, scope: BemEntityName): BemCell
  • detect(*): String
  • normalize(*, {format: String}): BemCell[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants