cgross / generator-cg-angular

Yeoman generator for Enterprise Angular projects.
MIT License
592 stars 198 forks source link

Prompt for directive, filter [...] name #73

Closed martin-s closed 10 years ago

martin-s commented 10 years ago

There should be a fallback prompt, which asks for a name, if the user hasn't entered a name for a new directive or a filter etc. Currently, the user gets some ugly error message. Example:

  if( args.length === 0 ) {
    prompt...
  )
  yeoman.generators.NamedBase.apply(this, arguments);