H
H
hopman2018-08-17 15:52:22
JavaScript
hopman, 2018-08-17 15:52:22

How to quickly create a BEM block?

I use gulp and bam, but I have to manually create and include folders for blocks. What is the solution to quickly create a block with css and js file and a folder for images.
It would also be nice if you describe how you can create ready-made blocks and connect with a command or tab like a snippet

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-08-17
@werty1001

I use gulp and bam, but I have to manually create and connect folders for blocks. What is the solution to quickly create a block with css and js file and a folder for images.

You can write an NPM script, like npm run add block, and you can also automatically create a block depending on the HTML markup. You can look at this assembly and pull out the necessary functionality for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question