GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CLI: [command new] add option to enable previous suffix generation on create · Issue #30594 · angular/angular-cli

CLI: [command new] add option to enable previous suffix generation on create #30594

New issue
Copy link
New issue
Copy link
Closed
#31053
Closed
CLI: [command new] add option to enable previous suffix generation on create#30594
#31053
Copy link
Labels
area: @schematics/angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration

Description

@giacomo
giacomo
opened on Jun 24, 2025
Issue body actions

Which @angular/* package(s) are relevant/related to the feature request?

compiler-cli

Description

The problem:

Starting in Angular v20, by default Angular CLI will not generate suffixes

As written in https://blog.angular.dev/announcing-angular-v20-b5c9c06cf301

Starting in Angular v20, by default Angular CLI will not generate suffixes for your components, directives, services, and pipes. For existing projects, ng update will enable suffix generation by updating your angular.json. To enable suffix generation in new projects, use the following schematic configuration:

{
  "projects": {
    "app": {
      ...
      "schematics": {
        "@schematics/angular:component": { "type": "component" },
        "@schematics/angular:directive": { "type": "directive" },
        "@schematics/angular:service": { "type": "service" },
        "@schematics/angular:guard": { "typeSeparator": "." },
        "@schematics/angular:interceptor": { "typeSeparator": "." },
        "@schematics/angular:module": { "typeSeparator": "." },
        "@schematics/angular:pipe": { "typeSeparator": "." },
        "@schematics/angular:resolver": { "typeSeparator": "." }
      },
  ...
}

Proposed solution

The solution:

To add an option to the new command, to be able to create a new application with suffixes:

ng new angular-app --with-suffix

This command will automatically add schematics to the angular.json and creates e.g. app.component.ts instead off app.ts

Alternatives considered

The only way to achive this, add manually the schematics and rename the auto generated files manually.
This is time consuming.

Reacted by Tomas Rimkus, denesh-r, Giacomo Barbalinardo, PythonPunktExe, Jochen Thiel, Angelo Pepe, Johannes Schölermann, casaelza, NeoScript, Kyle J. Kemp and 367 more
Reacted by Alexander Ciesielski, Justin White, Marco Rinaldi, Adrián UB, michael faith, Angel D. Munoz and Clara Castillo
Reacted by Adison Peña Martínez, anusha-bhat, Gustave, coderiyke, Joni Van Roost, Justin White, Rafael, Ariel Rennola, Fournet Enzo, Wilmer Blanco and 7 more
Reacted by Jacob Samuel G., Davide Dal Santo, andreasreinkeivoflow, Spencer, Adam Thoor, Stephanie Leazer, Morte, Akatum, thibaut-st, Domas Trijonis and 38 more

Activity

Next
  1. JeanMeche
    transferred this issue fromangular/angularon Jun 25, 2025
  2. alan-agius4
    added
    featureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
    area: @schematics/angular
    on Jun 25, 2025
  3. angular-robot
    added
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Jun 25, 2025
  4. angular-robot commented on Jun 25, 2025

    @angular-robot
    angular-robotBot
    on Jun 25, 2025 – with Angular Robot
    Contributor
    More actions

    This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

    You can find more details about the feature request process in our documentation.

  5. jacsamg commented on Jun 25, 2025

    @jacsamg
    jacsamg
    on Jun 25, 2025
    More actions

    This is very necessary 🙏🏾

    Reacted by Vincent Wochnik, Duc Thang Vu, Justin White, Rafael, Ariel Rennola, Fournet Enzo, Wilmer Blanco, Ali Gamal, Jorge Cendal, Absalon and 8 more
  6. Echarnus commented on Jun 25, 2025

    @Echarnus
    Echarnus
    on Jun 25, 2025
    More actions

    Makes it easy to identify files within a project. Have an upvote!

    Reacted by Vincent Wochnik, Duc Thang Vu, Ariel Rennola, Fournet Enzo, Ali Gamal, Jorge Cendal, Dimosthenis K., Konrad Stępień, Furkan Tas, Adhiraj Saha and 3 more
    Reacted by Aurélien Dussauge, Adrián UB and Angel D. Munoz
  7. andlewis commented on Jun 25, 2025

    @andlewis
    andlewis
    on Jun 25, 2025
    More actions

    Seems like a good option to me!

    Reacted by Duc Thang Vu, Fournet Enzo, Wilmer Blanco, Ali Gamal, ivan-pleskonjic, Adhiraj Saha, Diego Rapoport and RomanDan
  8. haimyul commented on Jun 25, 2025

    @haimyul
    haimyul
    on Jun 25, 2025
    More actions

    I like this feature request!

    Reacted by Duc Thang Vu, Wilmer Blanco, ivan-pleskonjic, Adhiraj Saha, Diego Rapoport and RomanDan
  9. thibaut-st commented on Jun 25, 2025

    @thibaut-st
    thibaut-st
    on Jun 25, 2025
    More actions

    The damage control feature.

    Reacted by Ben, Adison Peña Martínez, Pablo Padilla, Farrukh, Steven Tuckness, DanielHilpoltsteiner, Adam Kuziemski, Duc Thang Vu, Tomas Rimkus, Daniel Schuba and 6 more
  10. thischarmingsam8 commented on Jun 25, 2025

    @thischarmingsam8
    thischarmingsam8
    on Jun 25, 2025
    More actions

    Removing the suffixes increases ambiguity, opinionated defaults are a key reason people choose Angular.

    Reacted by Raluca Scorus, thibaut-st, yceron, Klaus Ferreira, Adison Peña Martínez, Abed Alaziz Owidat, jvenene, Giacomo Barbalinardo, Farrukh, NeoScript and 58 more
    Reacted by Aurélien Dussauge, Angel D. Munoz and Maurizio Cescon
    Reacted by Andre Mesquita
  11. ducthang-vu commented on Jun 25, 2025

    @ducthang-vu
    ducthang-vu
    on Jun 25, 2025
    More actions

    Removing the suffixes in the first place was completely unnecessary.

    Reacted by Adison Peña Martínez, Abed Alaziz Owidat, jvenene, Pablo Padilla, Farrukh, NeoScript, Szymon Hełmecki, Gustave, James Jenkinson, fime-tst and 40 more
    Reacted by Andre Mesquita
  12. alan-agius4
    marked ## Title: Angular CLI 20.x generates confusing filenames and disables default naming conventions #30609 as a duplicate of this issue on Jun 26, 2025
  13. angular-robot
    added
    feature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
    and removed
    feature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
    on Jun 26, 2025
  14. 31 remaining items

  15. Milldrew commented on Aug 7, 2025

    @Milldrew
    Milldrew
    on Aug 7, 2025
    More actions

    Am i talking to myself?

    Is it not obvious that suffix is a misnomer?

    @giacomo where did this suffix name come from?

    It is certainly wrong and inaccurate.

    replace suffix with sub-filetype and we are somewhat on track.

    Besides the sub-filetypes should have never been removed. They prevent name space collisions among many other benefits that should be obvious. I am refraining from saying anything that will get this comment censored.

    Love to see you all here trying to get things on track! 🙏🏻

  16. thibaut-st commented on Aug 7, 2025

    @thibaut-st
    thibaut-st
    on Aug 7, 2025
    More actions

    Am i talking to myself?

    Apparently since most people calls it suffix for years now.

  17. giacomo commented on Aug 9, 2025

    @giacomo
    giacomo
    on Aug 9, 2025
    Author
    More actions

    @francoqueirolo great seem not so complex your purpose. I hope the angular team finds the right solution it is annoing to rename all files created by new projects.

  18. srquev commented on Aug 10, 2025

    @srquev
    srquev
    on Aug 10, 2025
    More actions

    I noticed that the Angular CLI no longer automatically appends the Component suffix when generating new components, a feature that existed in earlier versions. This change impacts consistency and clarity in component naming across projects.

    Please revert it to avoid confusion between components and other classes or files. For example, a file named model.ts might be mistaken for an interface or data model file rather than a component. Appending Component makes the purpose explicit.

    Reacted by Andrew Miller and liviu-c
    Reacted by Andre Mesquita
  19. clydin
    added 7 commits that reference this issue on Aug 27, 2025

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit dc65b3a is merged into the 'main' branch.
    dc65b3a

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit fc4a07e is merged into the 'main' branch.
    fc4a07e

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit 2fd9912 is merged into the 'main' branch.
    2fd9912

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit 6fa0a72 is merged into the 'main' branch.
    6fa0a72

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit 869420a is merged into the 'main' branch.
    869420a

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit 78d88bc is merged into the 'main' branch.
    78d88bc

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit f85ac76 is merged into the 'main' branch.
    f85ac76
  20. clydin
    closed this as completedin #31053on Sep 2, 2025
  21. clydin
    added a commit that references this issue on Sep 2, 2025

    feat(@schematics/angular): support different file name style guides i…

    This issue will close once commit 4e6c94f is merged into the 'main' branch.
    4e6c94f
  22. angular-automatic-lock-bot commented on Oct 3, 2025

    @angular-automatic-lock-bot
    angular-automatic-lock-botBot
    on Oct 3, 2025
    More actions

    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.

  23. angular-automatic-lock-bot
    locked and limited conversation to collaborators on Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angularfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.