Skip to content

ng help generate does not list existing blueprints (beta24) #3699

Closed
@denofevil

Description

@denofevil

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

macOS Sierra

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.24
node: 7.2.1
os: darwin x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Run ng help generate in an new app generated by CLI

The log given by the failure.

Normally this include a stack trace and some more information.
I'm getting only this

ng help generate
ember generate <blueprint> <options...>
  Generates new code from blueprints.
  aliases: g
  --dry-run (Boolean) (Default: false)
    aliases: -d
  --verbose (Boolean) (Default: false)
    aliases: -v
  --pod (Boolean) (Default: false)
    aliases: -p
  --classic (Boolean) (Default: false)
    aliases: -c
  --dummy (Boolean) (Default: false)
    aliases: -dum, -id
  --in-repo-addon (String) (Default: null)
    aliases: --in-repo <value>, -ir <value>

Mention any other details that might be useful.

beta20 output was like this

  Available blueprints:
    angular-cli:
      class <name> <options...>
        --spec (Boolean)
      component <name> <options...>
        --flat (Boolean) (Default: false)
        --inline-template (Boolean)
          aliases: -it
        --inline-style (Boolean)
          aliases: -is
        --prefix (Boolean) (Default: true)
        --spec (Boolean)
      component-test <name>
      directive <name> <options...>
        --flat (Boolean) (Default: true)
        --prefix (Boolean) (Default: true)
        --spec (Boolean)
      enum <name>
      interface <interface-type>
      mobile <name> <options...>
        --source-dir (String) (Default: src)
          aliases: -sd <value>
        --prefix (String) (Default: app)
          aliases: -p <value>
        --mobile (Boolean) (Default: false)
      model <name> <attr:type>
        Generates an ng-data model.
      module <name> <options...>
        --spec (Boolean)
        --routing (Boolean) (Default: false)
      ng2 <name> <options...>
        --source-dir (String) (Default: src)
          aliases: -sd <value>
        --prefix (String) (Default: app)
          aliases: -p <value>
        --style (String) (Default: css)
        --mobile (Boolean) (Default: false)
        --routing (Boolean) (Default: false)
        --inline-style (Boolean) (Default: false)
          aliases: -is
        --inline-template (Boolean) (Default: false)
          aliases: -it
      pipe <name> <options...>
        --flat (Boolean) (Default: true)
        --spec (Boolean)
      route <name>
      route-test <name>
      service <name> <options...>
        --flat (Boolean) (Default: true)
        --spec (Boolean)
      service-test <name>
    angular-cli:
      acceptance-test <name>
        Generates an acceptance test for a feature.
      adapter <name> <options...>
        Generates an ng-data adapter.
        --base-class (String)
      adapter-test <name>
        Generates an ng-data adapter unit test
      addon <name>
        The default blueprint for angular-cli addons.
      addon-import <name>
        Generates an import wrapper.
      app <name>
        The default blueprint for angular-cli projects.
      blueprint <name>
        Generates a blueprint and definition.
      component-addon <name>
        Generates a component. Name must contain a hyphen.
      controller <name>
        Generates a controller.
      controller-test <name>
        Generates a controller unit test.
      helper <name>
        Generates a helper function.
      helper-addon <name>
        Generates an import wrapper.
      helper-test <name>
        Generates a helper unit test.
      http-mock <endpoint-path>
        Generates a mock api endpoint in /api prefix.
      http-proxy <local-path> <remote-url>
        Generates a relative proxy to another server.
      in-repo-addon <name>
        The blueprint for addon in repo angular-cli addons.
      initializer <name>
        Generates an initializer.
      initializer-addon <name>
        Generates an import wrapper.
      initializer-test <name>
        Generates an initializer unit test.
      instance-initializer <name>
        Generates an instance initializer.
      instance-initializer-addon <name>
        Generates an import wrapper.
      instance-initializer-test <name>
        Generates an instance initializer unit test.
      lib <name>
        Generates a lib directory for in-repo addons.
      mixin <name>
        Generates a mixin.
      mixin-test <name>
        Generates a mixin unit test.
      model-test <name>
        Generates a model unit test.
      resource <name>
        Generates a model, template, route, and registers the route with the router.
      route-addon <name>
        Generates import wrappers for a route and its template.
      serializer <name>
        Generates an ng-data serializer.
      serializer-test <name>
        Generates a serializer unit test.
      server <name>
        Generates a server directory for mocks and proxies.
      template <name>
        Generates a template.
      test-helper <name>
        Generates a test helper.
      transform <name>
        Generates an ng-data value transform.
      transform-test <name>
        Generates a transform unit test.
      util <name>
        Generates a simple utility module/function.
      util-test <name>
        Generates a util unit test.
      vendor-shim <name>
        Generates an ES6 module shim for global libraries.

#3697 looks related


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions