Skip to content

fix(@schematics/angular): add less dependency in application migration if needed#27559

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:application/cleanup-2
Apr 29, 2024
Merged

fix(@schematics/angular): add less dependency in application migration if needed#27559
clydin merged 1 commit intoangular:mainfrom
clydin:application/cleanup-2

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 29, 2024

The application migration schematic will now attempt to detect the usage of Less stylesheets within a workspace and install the less dependency if required. This will only occur if the migration analysis allows for the conversion to use the @angular/build package instead of the @angular-devkit/build-angular package. The Less usage detection may not detect Less stylesheets within Node.js packages and currently does not handle the case where a project only has inline Less stylesheets. More complex analysis may be added in the future. However, a build time error message will be presented with instructions to install less in these cases if the stylesheet preprocessor is required and not present.

…n if needed

The application migration schematic will now attempt to detect the usage
of Less stylesheets within a workspace and install the `less` dependency
if required. This will only occur if the migration analysis allows for
the conversion to use the `@angular/build` package instead of the
`@angular-devkit/build-angular` package. The Less usage detection may
not detect Less stylesheets within Node.js packages and currently does
not handle the case where a project only has inline Less stylesheets.
More complex analysis may be added in the future. However, a build time
error message will be presented with instructions to install `less` in
these cases if the stylesheet preprocessor is required and not present.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Apr 29, 2024
@clydin clydin marked this pull request as ready for review April 29, 2024 14:59
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 29, 2024
@clydin clydin requested a review from alan-agius4 April 29, 2024 14:59
@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 29, 2024
@clydin clydin merged commit 3dae3c0 into angular:main Apr 29, 2024
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 30, 2024
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 target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants