Ability to keep elem files in the same folder as block
Closed this issue · 6 comments
kovchiy commented
This:
App/
App.js
Footer/
App-Footer.js
Became this:
App/
App.js
App-Footer.js
And maybe the same for mods?
App/
App.js
App-Footer.js
App-Footer_context_native.js
App-Footer_context_browser.js
Please.
tadatuta commented
Should be easy to support as bem-fs-scheme
is already used in https://github.com/bem/webpack-bem-loader so all we need to do is to provide an option.
awinogradov commented
Also, we can support:
Block/
Elem1.js
Elem1_mod.js
Elem2.js
Elem2_mod_val.js
Block.js
_mod1.js
_mod2_val1.js
_mod2_val2.js
kovchiy commented
also would be great
qfox commented
It called flex scheme and should be already supported in bem-walk
with another naming, but bem-walk
can't use bem-fs-scheme
because of performance issues.
App/
App.js
App-Footer.js
But definitely we should collaborate on this.
(as @tadatuta said there is no bem-walk
usage in webpack loader).
@awinogradov I don't see how you can detect elems without a special character:
Block/
Shittyfile.js
Anothershittyfile.js
More.js
AndMoreShittyFiles.js
awinogradov commented
@zxqfox all of them are elements
awinogradov commented
Do it here bem/webpack-bem-loader#35 and bem/babel-plugin-bem-import#20