apsavin / bnsf

bem node single page application framework
MIT License
43 stars 4 forks source link

How can I create new pages from CLI? #1

Closed jifeon closed 9 years ago

jifeon commented 10 years ago

Creating new pages a so boooooring. Can I do something like this:

bem create page-my-super-page

?

apsavin commented 10 years ago

You can use bem create -l desktop.blocks -b page-my-super-page.

jifeon commented 10 years ago

It's cool in spite of length :) But I still have to add a block to index.bemdecl What about some shortcuts, for example:

$ bnsf page my-super-page

?

jifeon commented 10 years ago

By the way bem create -l ... create files of other types.. It is absolutely useless

apsavin commented 10 years ago

bem create -l ... creates files that you specified in your project. If you work in bnsf-adwiki just pull my changes to see. Well, it's greate to have a CLI interface to automate all the boring things. May be, I'll write some wrapper around bem create. I'll think about it.

jifeon commented 10 years ago

ня :)

jifeon commented 10 years ago

How the hell did you know about my private repos?! ))

jifeon commented 10 years ago

Can we build index.bemdecl automatically? Really, I can't imagine situation when someone creates a page and do not want to include them to build. If something is unnecessary it should be removed from a project.

apsavin commented 9 years ago

I've created a generator: https://github.com/apsavin/generator-bnsf