bem / bem/project-stub

Как нибудь можно чтобы на основании bemjson создавались директории для блоков?

Open
#107 1 comment 0 reactions 0 assignees View on GitHub
backlog prio:low
Dominant language
JavaScript
Stars
312
Forks
189
PR merge metrics
No merged PRs in 30d

Description

index.bemjson.js:

block : 'information',

content : [
{
block : 'telephone',
content : [
{
elem : 'phone-number',
content : '8 (831) 280-96-51'
},
{
elem : 'opening-times',
content : 'Пн-Пт: 9:00-18:00'
}
]
},
{
block : 'telephone',
content : [
{
elem : 'phone-number',
content : '8 (800) 555-18-38'
},
{
elem : 'additional-information',
content : 'Звонок по России бесплатный'
}
]
}
]

У меня еще не созданы блок information в desktop.blocks, и я не хочу его вручную создавать, вот можно было бы на основании bemjson всего лишь одной командой или по сейву их получать

Хочу чтобы по определенной команде создался файл desctop.blocks/telephone/telephone.css:

.telephone {


}

.telephone__phone-number {

}

.telephone__opening-times {

}

.telephone__additional-information {

}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with index.bemjson.js and the desktop.blocks layout described in the issue, then identify the project entry point for commands or save-time generation. Done should be a documented way to derive the information and telephone block directories and a telephone.css containing the block and element selectors shown in the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.