Skip to content

Add option "--flat=true|false" to all "ng g" schematic commands #14643

@meness

Description

@meness

🚀 Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

Some of ng g schematic commands have --flat=true|false option but some others don't, i.e. ng g class. Please add that option to all schematic commands because as a developer want to have classes and their .spec files together in separate directories.

Describe the solution you'd like

The solution is very simple, just define that option to all schematic commands, please.

Describe alternatives you've considered

A workaround is first to create a folder and open a terminal in that directory, then run the command. This hurts!

Thanks, everyone 😘

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions