Skip to content

Feature Request: Allow to generate libraries within a particular folder & allow to rename 'projects' folder name #11927

Closed
@micronyks

Description

@micronyks

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)

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

Versions

Latest

Desired functionality

Currently It is not possible to generate a library within a specific folder with relative path.
When I run ng generate library mylib --prefix=mylib command, it generates a folder called projects under root directory and places mylib under projects

Current Flow,

|---MyFoodApplication
|                    |---projects
|                                |---mylib-1
|                                |---mylib-2
|                    |---src

Sometimes use-case can be like:

  1. Create all libraries under common folder resides at (anywhere) angular project's root directory. (common is just a folder and nothing else)

  2. When I want to create any library, It should create desire name of the folder (eg. companyname-libraries) which must contain all generated library.

So, the final output should be like below,

|---MyFoodApplication
|                    |---common
|                              |---companyname-libraries
|                                                       |---mylib-1
|                                                       |---mylib-2
|                    |---src

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angularfeatureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions