Skip to content

feature request: generators can generate where we want them to #6105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wbhob opened this issue Apr 27, 2017 · 4 comments
Closed

feature request: generators can generate where we want them to #6105

wbhob opened this issue Apr 27, 2017 · 4 comments

Comments

@wbhob
Copy link

wbhob commented Apr 27, 2017

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.0.0
node: 6.9.4
os: darwin x64
@angular/common: 4.0.2
@angular/compiler: 4.0.2
@angular/core: 4.0.2
@angular/forms: 4.0.2
@angular/http: 4.0.2
@angular/material: 2.0.0-beta.3
@angular/platform-browser: 4.0.2
@angular/platform-browser-dynamic: 4.0.2
@angular/platform-server: 4.0.2
@angular/router: 4.0.2
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.2

Repro steps.

The log given by the failure.

Desired functionality.

Ionic has great generators that generate into a directory that is relevant to what you are generating. For example, 'pages' go into the pages directory, pipes go into their own directory, and providers go into their own directory. The Angular CLI currently puts everything into the app directory, which can be extremely disorganized for larger projects. Please consider a generation tree like this one:

src
    - app
        - app.module.ts
        - app.component.ts
        - app.component.html
        - app.component.(s)css
    - components
        - comp-name
            - comp-name.component.ts
            - comp-name.component.html
            - comp-name.component.(s)css
    - pipes
        - pipes.module.ts
        - pipe-name
            - pipe-name.pipe.ts
            - pipe-name.pipe.spec.ts
    - providers
        - providers.module.ts
        - provider-name
            - provider-name.provider.ts
            - provider-name.provider.spec.ts

Mention any other details that might be useful.

https://www.github.com/driftyco/ionic-cli

@clydin
Copy link
Member

clydin commented Apr 27, 2017

The CLI follows the style guide which emphasizes a directory hierarchy based on features. This lends itself directly to the Angular module concept wherein an application is a hierarchy of reusable (and potentially lazy loaded) modules.

@delasteve
Copy link
Contributor

Also, this is essentially a dupe of #5995

@sumitarora
Copy link
Contributor

Closing as above being track on #5995

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants