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

Make bemjson and bemdecl optional #11

Open
Yeti-or opened this issue Apr 20, 2017 · 1 comment
Open

Make bemjson and bemdecl optional #11

Yeti-or opened this issue Apr 20, 2017 · 1 comment

Comments

@Yeti-or
Copy link
Member

Yeti-or commented Apr 20, 2017

Case: I want abstraction over fs for bem bundles and this module is suitable, but i want to collect bemjson or decls later

@Yeti-or
Copy link
Member Author

Yeti-or commented Apr 22, 2017

possible solution:
{bemjson: undefined, decl: null}
plus add setters

asserts:

  • get bemjson -> assert(decl null)
  • set bemjson -> assert(bemjson !undefined)
  • get decl -> assert(decl null)
  • set decl -> assert(decl !null)

cc @zxqfox

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

No branches or pull requests

1 participant