Skip to content
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

build: migrate avatar, accordion and label to secondary entrypoints #514

Merged
merged 6 commits into from
Dec 9, 2024

Conversation

ashley-hunter
Copy link
Collaborator

@ashley-hunter ashley-hunter commented Dec 6, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • accordion
  • alert
  • alert-dialog
  • aspect-ratio
  • avatar
  • badge
  • button
  • calendar
  • card
  • checkbox
  • collapsible
  • combobox
  • command
  • context-menu
  • data-table
  • date-picker
  • dialog
  • dropdown-menu
  • hover-card
  • icon
  • input
  • label
  • menubar
  • navigation-menu
  • pagination
  • popover
  • progress
  • radio-group
  • scroll-area
  • select
  • separator
  • sheet
  • skeleton
  • slider
  • sonner
  • spinner
  • switch
  • table
  • tabs
  • textarea
  • toast
  • toggle
  • tooltip
  • typography

What is the current behavior?

N/A

What is the new behavior?

  • Migrated avatar to a secondary entrypoint
  • Migrated accordion to a secondary entrypoint
  • Migrated label to a secondary entrypoint
  • Fix a typo in contributing docs
  • Made a few improvements to the generator to automatically copy across missing peer dependencies

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

A breaking change, but with a generator/schematic to auto migrate it

"@angular/common": ">=18.0.0",
"@angular/core": ">=18.0.0",
"@angular/cdk": ">=18.0.0",
"@angular/forms": ">=18.0.0",
"rxjs": ">=6.6.0"
"rxjs": ">=6.6.0",
"@spartan-ng/brain": "0.0.1-alpha.357"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to order these automatically as part of the migration?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was added by ESLint Nx dependency checks rule rather than the migration itself in this case.

That being said I could add this prettier plugin https://github.com/matzkoh/prettier-plugin-packagejson to always ensure our deps are sorted correctly if you'd like?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you. I mean it's a nice to have, but doesn't really matter too much. I'll trust your judgement!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a commit there now including it, we can give it a go, if its not what we want we can always remove it I suppose.

.prettierrc.mjs Outdated Show resolved Hide resolved
@goetzrobin
Copy link
Collaborator

One comment about prettier tailwind plugin!

@goetzrobin goetzrobin merged commit c0dc56b into main Dec 9, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants