Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 7, 2025

When updating to Angular v20 via ng update, a migration will be executed that will add schematic generation (ng generate) defaults to the workspace. These defaults will ensure that existing projects will continue to generate files as done in previous versions of the Angular CLI. All new projects (via ng new) or projects that do not explicitly contain these options in their workspace will use the updated style guide naming behavior.

The option values for the schematics field are as follows:

{
    '@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: '.' },
}

@clydin clydin added the target: major This PR is targeted for the next major release label Apr 7, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @schematics/angular labels Apr 7, 2025
@clydin clydin changed the title feat(@schematics/angular): add update migration to keep existing style guide generation behavior feat(@schematics/angular): add update migration to keep previous style guide generation behavior Apr 7, 2025
@clydin clydin force-pushed the style-guide/migration branch from c969852 to fe5d0e6 Compare April 7, 2025 16:53
@clydin clydin marked this pull request as ready for review April 7, 2025 17:49
@clydin clydin requested a review from alan-agius4 April 7, 2025 18:52
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 7, 2025
…e guide generation behavior

When updating to Angular v20 via `ng update`, a migration will be executed
that will add schematic generation (`ng generate`) defaults to the workspace.
These defaults will ensure that existing projects will continue to generate
files as done in previous versions of the Angular CLI. All new projects (via `ng new`) or
projects that do not explicitly contain these options in their workspace
will use the updated style guide naming behavior.

The option values for the `schematics` field are as follows:
```
{
    '@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: '.' },
}
```
@clydin clydin force-pushed the style-guide/migration branch from fe5d0e6 to 2337300 Compare April 7, 2025 18:53
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 8, 2025
@clydin clydin merged commit fdc6291 into angular:main Apr 8, 2025
31 checks passed
@clydin clydin deleted the style-guide/migration branch April 8, 2025 13:28
@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 May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants