mrichard / generator-marionette

Yeoman marionette generator a la AMD
329 stars 72 forks source link

--inherit does not seem to work #46

Open code-surfer opened 10 years ago

code-surfer commented 10 years ago

The documented

$ yo marionette:model model-name --inherit model-name

does not seem to work. It always extends from Backbone.Model.

Looking at the code (model/index.js), 'inherit' is a positional argument, not an option? If I grok the code with the NamedBase correctly, it means that the generator takes three positional arguments: name, model and inherit. Testing this with the command

$ yo marionette:model bar dummy foo

I finally get an app/scripts/models/bar.js that extends from models/foo as Foo.

mrichard commented 10 years ago

in the works to fix this. Should be soon :).