A simple script used to help with the BEM file structure
assuming working installation of GO:
git clone git@github.com:rumiant348/bem-creator.git``
go build
go install
bem-creator block__modificator_element at the root of yor project would:
- create a css file with all subfolders
projectDir/blocks/block/__modificator/_element/block__modificator_element.css - write a css class in the file
.class__element_modificator {
}
- exit if file exists already
Script handles special cases like block__element or block_modificator_value
if anything, please contact me at
- telegram: @Rum348
- email: rumiant348@yandex.ru