brunch/brunch — pull request #254 by paulmillr (2012-04-20 12:02:06+00:00)
Title: New awesome scaffolder

This greatly improves `brunch g / brunch generate`.

* `brunch g controller user` will generate `{app}/controllers/user_controller.{extension}` & `{test}/controller/user_controller_test.{extension}`

* `brunch g model user` will generate `{app}/models/user.{extension}` & `{test}/models/user_test.{extension}`

* `brunch g view user` will generate `{app}/views/user_view.{extension}``{test}/views/user_view_test.{extension}`, `{app}/views/templates/user.{extension}`, `{app}/views/styles/user.{extension}`

* `brunch g scaffold user` will generate everything of above.

As you can see, `{app}/styles` will be moved to `{app}/views/styles` in brunch 1.2 (no change for existing apps). I'm still not sure if `brunch g view` should also generate corresponding style, but the time & usage will show if it's needed.

I'm also investigating integration with Chaplin in default skeletons (merging of paulmillr/brunch-with-chaplin) which is a Backbone for Backbone.js & have great app structure (e.g. mediator, controller, simple routes).