列出自耕农的所有可用子发电机

时间:2014-07-14 20:55:55

标签: javascript node.js gruntjs yeoman gulp

说我跑yo marionette我得到一个木偶应用程序。那么我想列出这个生成器的所有可用子生成器,比如这个

Marionette marionette:app marionette:collection marionette:collectionview marionette:compositeview marionette:controller marionette:itemview marionette:layout marionette:model marionette:region marionette:router marionette:tmpl marionette:view

这是什么命令。

我正在构建一个yeoman生成器,我能以某种方式在生成器中实现它吗?

1 个答案:

答案 0 :(得分:0)

大多数yoeman生成器在帮助中实现了这一点 例如

:> yo aspnet --help
...
Subgenerators:

  yo aspnet:angularcontroller [options] <name>
  yo aspnet:angularcontrolleras [options] <name>
  yo aspnet:angulardirective [options] <name>
  yo aspnet:angularfactory [options] <name>
  yo aspnet:angularmodule [options] <name>
  yo aspnet:appsettings [options]
  yo aspnet:bowerjson [options]
  yo aspnet:class [options] <name>
  yo aspnet:coffeescript [options] <name>
  yo aspnet:dockerfile [options]
  yo aspnet:gitignore [options]
  yo aspnet:gruntfile [options]
  yo aspnet:gulpfile [options] <name>
  yo aspnet:htmlpage [options] <name>
  yo aspnet:interface [options] <name>
  yo aspnet:javascript [options] <name>
  yo aspnet:json [options] <name>
  yo aspnet:jsonschema [options] <name>
  yo aspnet:middleware [options] <name>
  yo aspnet:mvccontroller [options] <name>
  yo aspnet:mvcview [options] <name>
  yo aspnet:nuget [options]
  yo aspnet:packagejson [options]
  yo aspnet:program [options]
  yo aspnet:startup [options]
  yo aspnet:stylesheet [options] <name>
  yo aspnet:stylesheetless [options] <name>
  yo aspnet:stylesheetscss [options] <name>
  yo aspnet:taghelper [options] <name>
  yo aspnet:textfile [options] <name>
  yo aspnet:tfignore [options]
  yo aspnet:typescript [options] <name>
  yo aspnet:typescriptconfig [options] <name>
  yo aspnet:typescriptjsx [options] <name>
  yo aspnet:usersecrets [options] <name>
  yo aspnet:webapicontroller [options] <name>