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

V2 addon format and switch to pnpm, change localization and styles setup #1911

Merged
merged 16 commits into from
Jan 8, 2024

Conversation

AmauryD
Copy link
Contributor

@AmauryD AmauryD commented Nov 16, 2023

Related issue: #1910
@RobbieTheWagner I began to work on this, but this will be a breaking change:

treeFor, treeForAddon, treeForAddonTemplates, treeForAddonTestSupport, treeForApp, treeForPublic, treeForStyles, treeForTemplates, treeForTestSupport, treeForVendor: Dropped. Dynamically generating broccoli trees at app build time is no longer supported. Your trees are built at publication time. If you need to produce different output at build time based on dynamic configuration, see Build-time Conditionals.

The theme and language part of flatpickr will be impacted.

@RobbieTheWagner
Copy link
Owner

@AmauryD yeah, we will need to tell people to import the themes and languages directly, which I think is fine.

@RobbieTheWagner
Copy link
Owner

Maybe flatpickr should be be a peerDep as well, so people ship all their own flatpickr stuff, but we provide the components on top.

@AmauryD
Copy link
Contributor Author

AmauryD commented Nov 17, 2023

@AmauryD yeah, we will need to tell people to import the themes and languages directly, which I think is fine.

Maybe flatpickr should be be a peerDep as well, so people ship all their own flatpickr stuff, but we provide the components on top.

I agree, let's do this !

@AmauryD
Copy link
Contributor Author

AmauryD commented Nov 17, 2023

@RobbieTheWagner I'm having a hard time figuring how to tell the user to import themes/default locales correctly. Does this seems ok to you ? https://github.com/shipshapecode/ember-flatpickr/blob/8ea4e52ba814e3ace92eff85077f5c0d626f9c16/test-app/app/templates/docs/usage.md
I only made the theme import work by using a js import. Didn't seems to work from the css stylesheet.

@AmauryD
Copy link
Contributor Author

AmauryD commented Nov 25, 2023

I'm currently testing this PR in one of my company's project. Seems to be working fine. Just some documentation to finish and it's ready.

@AmauryD AmauryD marked this pull request as ready for review November 25, 2023 12:26
@RobbieTheWagner
Copy link
Owner

@AmauryD what's the status on this?

@AmauryD
Copy link
Contributor Author

AmauryD commented Dec 13, 2023

@RobbieTheWagner should be ready for review !

automerge:
needs: [test, floating, try-scenarios]
Copy link
Owner

Choose a reason for hiding this comment

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

@AmauryD can we add back the ember-try scenarios please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

The ember-try setup should remain as close to how it was before as possible for ease of upgrading.

Copy link
Owner

Choose a reason for hiding this comment

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

Also, I don't know if it runs in CI at all now. We want each try scenario to be a separate run so we can see which ones pass and fail.

Copy link
Contributor Author

@AmauryD AmauryD Dec 14, 2023

Choose a reason for hiding this comment

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

I understand. I'll fix this after work 😄
Thank's for the feedback by the way

Copy link
Owner

Choose a reason for hiding this comment

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

Thank you for all your hard work on this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The scenarios are back !


# misc
/.env*
Copy link
Owner

Choose a reason for hiding this comment

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

I think pretty much everything should stay as it was in this file and the old contents should be copied to the new ember-flatpickr folder, I think, to ensure the right things are ignored. Especially stuff like ember-try, which we want to keep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to be sure, you prefer to keep the original content of this file at the project root ?

@AmauryD
Copy link
Contributor Author

AmauryD commented Dec 18, 2023

Downgraded test helpers from 3.x to 2.x to pass compatibility of ember-lts-4.4

@AmauryD
Copy link
Contributor Author

AmauryD commented Dec 25, 2023

Merry PR Chistmas 🎅 ⛄

yarn add -D flatpickr
```

### Default style
Copy link
Owner

Choose a reason for hiding this comment

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

Should we mention themes or is that mentioned elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RobbieTheWagner RobbieTheWagner changed the title V2 Addon format and switch to pnpm V2 addon format and switch to pnpm, change localization and styles setup Jan 8, 2024
Copy link
Owner

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

Awesome work, thank you! There might be a few things we need to document a bit more, but I want to merge this so we don't keep getting conflicts.

@RobbieTheWagner RobbieTheWagner merged commit 8377a03 into RobbieTheWagner:main Jan 8, 2024
10 checks passed
@AmauryD
Copy link
Contributor Author

AmauryD commented Jan 9, 2024

Awesome work, thank you! There might be a few things we need to document a bit more, but I want to merge this so we don't keep getting conflicts.

You're welcome ! It was a pleasure ! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants