Answer the question
In order to leave comments, you need to log in
How to develop with bem-core and bem-tools?
Hello!
I want to make a test page for training, I read a lot about bam, I have been using the same class naming system for a long time, but I don’t understand where to start developing the page. According to the tutorials, they suggest starting with project-stub, but I don’t want to be tied to anything like that at the moment.
So I downloaded bem-core and bem-tools, installed it, started the server. And what to do next? In which of this heap of directories should you develop your site? in common.blocks? but there are also blocks for bem-core. in desktop.blocks? or common.bundles? or where? :)
Answer the question
In order to leave comments, you need to log in
As for me, for a personal project or a project where you are the only frontender, using BAM tools is a perversion. Just write classes according to the methodology, adapting it a little for yourself, and don't mock yourself.
The easiest way is to clone https://github.com/bem/project-stub via git, remove the .git folder, install node, dependencies (npm install), and start working on the project.
A little more difficult to set up, but also simple - use yo and bem-stub, for this you need to install a node, these two packages: npm -g install yo generator-bem-stub; and then in the new folder you can run yo bem-stub, answer questions, and the project will be generated.
It is important to understand that bem server will soon start using enb internally, so you can switch to it now and use enb server.
In general, such questions can be answered very quickly on bem.info and the forum. ;-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question