Skip to content

Feature Request: option to generate folder if missing #4014

@johnpapa

Description

@johnpapa

I believe it would be helpful to generate a folder, if it doesn't exist. For example:

ng g c models/person

... this will generate a class named person in the models folder only if that folder exists. This often forces the user to perform mkdir models first.

This is a minor feature request, but one that I think will be helpful in many cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions