Skip to content

Generate standalone library project #10929

@epelc

Description

@epelc

Are there any plans to support generating a standalone single library project without generating a app? Right now you use ng new to create a new app and then add a library with ng g library. Are there any plans to add a --lib option to ng new if you wish to have a standalone git project?

I know there are numerous workarounds such as just ignoring the empty app or sticking your shared lib in some app project but this would be useful.

edit: so I just found out ng new really generates a workspace + a default project outside the proejcts dir. Maybe the solution is just not generate the default project and make a lib instead if the rest of the cli thinks of things in terms of workspaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions