-
-
Notifications
You must be signed in to change notification settings - Fork 254
Improve .razor.css cleanup in boilerplate (#10955) #10956
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
Improve .razor.css cleanup in boilerplate (#10955) #10956
Conversation
WalkthroughThe MSBuild target Changes
Assessment against linked issues
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props (1)
90-91: Improved logic for detecting orphaned CSS files.The change from checking for
.scssfiles to checking for the base.razorfile is more comprehensive and appropriate. This will catch orphaned.razor.cssfiles regardless of whether they were generated from.scssor directly from.razorfiles.However, consider using forward slashes for better cross-platform compatibility:
- <RazorCssFiles Include="**\*.razor.css" /> + <RazorCssFiles Include="**/*.razor.css" />
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Knowledge Base: Disabled due to Reviews > Disable Knowledge Base setting
📒 Files selected for processing (1)
src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build and test
🔇 Additional comments (2)
src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props (2)
81-87: Well-documented target purpose and behavior.The updated comments clearly explain the scenario where orphaned
.razor.cssfiles can cause build errors and how this target addresses the issue.
88-94: Target timing and implementation are appropriate.Running this target before
ComputeCssScopeensures orphaned CSS files are cleaned up before they can cause build errors. The implementation correctly identifies and deletes unmatched files.
closes #10955
Summary by CodeRabbit
Bug Fixes
.razor.cssfiles to prevent build errors by ensuring they are deleted when no matching.razorfile exists.Documentation
.razor.cssfiles.