【问题标题】:list all available sub generators in yeoman列出 yeoman 中所有可用的子生成器
【发布时间】:2014-07-14 20:55:55
【问题描述】:

说我运行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 生成器,我可以在生成器中以某种方式实现它吗?

【问题讨论】:

    标签: javascript node.js gruntjs yeoman gulp


    【解决方案1】:

    大多数 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>
    

    【讨论】:

      猜你喜欢
      • 2018-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多