cli icon indicating copy to clipboard operation
cli copied to clipboard

au generate should allow to specify path of generated resource

Open m-j opened this issue 9 years ago • 2 comments

I'm submitting a feature request

  • Library Version: 0.24.0

Current behavior: au generate lets you to specify name of generator and name of resource being generated.

Expected/desired behavior: au generate should let to specify: generator name, name of resource and path of element.

What is the motivation / use case for changing the behavior? Current setup works well if default project organization is being used (resources grouped by resource type) it will not work however for custom setups like grouping resources by feature which is very useful for bigger projects.

m-j avatar Jan 22 '17 12:01 m-j

Adding support for --here would be great, too. I'd love to work on this if everyone involved doesn't mind. I've been looking for a place to jump in.

MattGiesa avatar Feb 03 '17 14:02 MattGiesa

you can modify the element generator to add some stuff like I'm doing here: https://github.com/arabsight/oro/blob/master/lib/resources/generators/element.js

  • no-view: adds @noView decorator to the element.
  • inline-view: adds @inlineView decorator to the element.
  • html-only: generate an html-only component.
  • styles: generate a css file for the component.
  • explicit: Adds @customElement decorator to the component.
  • containerless: create a containerless component.
  • output: specify an output directory for the generated element.

arabsight avatar Feb 03 '17 16:02 arabsight