-
Notifications
You must be signed in to change notification settings - Fork 25
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
Configure project with 1 level #290
Comments
@tadatuta tells me that Like: {
levels: [{ layer: 'common', path: 'blocks' }],
sets: { common: 'common' }
} |
This approach will fail when BemCell will be stringified with preset. We will get something like "blocks/common.blocks". Besides level defined with path property is deprecated |
|
{
naming: {
basedOn: 'react',
fs: { patter: 'blocks/${entity}.${tech}' }
},
levels: [{ layer: 'common', path: 'blocks' }],
sets: {
common: 'common'
}
} Yes? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bem-react-components is good example of project with 1 level. For now it has only "blocks" directory for all components and have no
bemrc
. My project uses "bem-react-components". I want to build it with webpack-bem-plugin. "webpack-bem-plugin" needs from all libraries to have itsbemrc
. So I had to write it for "bem-react-components"My knowledge base:
My attempt:
It is not working because of you cannot simply pass empty layer.
My suggestions:
layer?
from "react-preset" or remove default layer from "naming.cell.stringify".bemrc
for them without hackingThe text was updated successfully, but these errors were encountered: