Publishing a Yeoman generator and its sub generators.

So I have a Yeoman generator that helps scaffold a Backbone.Marionette application using the module paradigm, which is all good.

Though I did get a little caught out when publishing the sub-generator component of it.

That is so you can do things like yo marionette-modules:module aSubModule, to get a module generated.

The :module part was not being registered in the Yeoman package when running yo --help.

The solution in the end is to add all folders you want to deploy into package.json before you publish eg:

“files”: [
“app”,
“module”
],

Leave a Reply

Your email address will not be published. Required fields are marked *