Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Generators can be used for more than initial project scaffolding. Take the backbone[0] or ember[1] generators for models, views, templates, etc. that automatically generate the scaffolding work of creating dirs and files.

To get a the scaffolding for a backbone app, and the pieces of a "blog" MVC module:

    yo backbone # generates your application base and build workflow
    yo backbone:model blog
    yo backbone:collection blog
    yo backbone:router blog
    yo backbone:view blog
    grunt server
[0] https://github.com/yeoman/generator-backbone

[1] https://github.com/yeoman/generator-ember



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: