-
Notifications
You must be signed in to change notification settings - Fork 38
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
Config Updates #4
Conversation
Hey @avataar, I noticed you might have seen the new PR with all the config updates and stuff. I'd love to get your thoughts on it! You can check it out and drop any comments or suggestions, pull the branch and tweak things yourself if you like, and of course let me know if you think something could be done differently or better. I'm totally open to different ways of doing things, so don't hold back! Just a heads-up, the CI is failing right now because we don't have any releases yet, and maybe due to the repo name issue. But it's not related to the content itself, and everything seems to work on this branch. When we merge it, a release will be created automatically, and that should fix the CI stuff. But if you have other ideas, feel free to share. Looking forward to hearing from you! Cheers! |
I think either order of merging is acceptable, but this PR is quite opinionated and requires a thorough review and input (probably from @avataar). Additionally, @avataar can suggest the best approach for the merge order, as I believe we should integrate his work and fixes from the I don't mind reworking this after merging @avataar's work if that's easier. |
It doesn't build for me because of lint errors:
I was able to run eslint --fix and removed the offending console.error() call and then it worked (but still shows the warnings). Regarding the merge order I'm not sure if you're aware that the develop branch (from the original project, not just my fork) has lots of changes that aren't present in the main branch (including to some of those build files that @selfish changes with this PR). Thus I believe we should ditch the existing main and rename develop to main, then rebase this onto the new main. |
Makes sense. How about we do this: |
Also, sorry for lraving the lint errors in there, I neglected to push fixes for these |
I opened a PR from my develop to this develop - no big changes there so order shouldn't matter. After we end up with a single up-to-date main branch here I'll open another PR with some other improvements that affect the failing tests. |
Sure, go ahead! |
I've closed my original PR that combined my old 3 PRs and opened 3 new PRs instead so it's clearer what/why. |
It built for me without any changes (other than the ones related to the name that I just discovered you have done before me). I have the lovelace-sun-card.js in another PR. I think we should prioritise uploading that file as it is required to the hacs validation (which is required to add to HACS default repository list). |
I'll take care of it soon. I'll make sure everything is resolved, we have a successful build, and we release with a changelog. |
@ThomDietrich @avataar - ready for review. |
Note that once this PR is merged, release v0.2.0 will automatically be created, and HACS action will no longer complain about structure. |
Fixed homepage URL Co-authored-by: Thomas Dietrich <[email protected]>
Fixed github URL Co-authored-by: Thomas Dietrich <[email protected]>
Fixed issues URL Co-authored-by: Thomas Dietrich <[email protected]>
File empty, replaced by rollup.config.mjs
Restored original copyright notice, changed ours to year 2023
It's starting to look really good. I resolved most of the suggestions and left some new comments. Here's a summary of what's left to resolve before we can merge this:
|
@selfish decided to work on his own fork instead, so I'll fix the remaining issues. |
@avataar amazing, yes please do! Thanks! Users are getting nervous and it would be great if we could publish a version asap |
- Kept only changes necessary to prevent lint errors - Added rules (warn level) to check semicolons, parens before function names and quotes - Added override .eslintrc.cjs in tests to allow explicit any and non-null asserts - Fixed tests path in tsconfig and added tests to lint run in package.json
Anything I could help? I'm a it lost about which branch and what is still remaining to do. |
Everything should be OK now. If anyone wants to have a final look at the changes I'd appreciate it. |
All good from my side. @avataar imho you are imho good to merge |
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.
Let's merge so we fix any remaining issues required for building (and test in HACS). Cosmetics can come later.
rollup.config.dev.mjs
Outdated
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.
file: "./dist/lovelace-sun-card.js",
Is this correct? On dev/index.html
you removed the reference to folder /dist
.
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.
I think it's just a remnant from this file originally being a copy of the prod rollup config, while the relevant part is the serve section. Running "yarn dev" certainly works as expected.
rollup.config.mjs
Outdated
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.
Same comment about /dist
folder.
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.
This one just packages it to dist/lovelace-sun-card.js and works too. Am I missing something?
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.
Are those ,
at the end of lines 28, 32 and 35 needed?
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.
Either way is fine. For me personally having commas allows you to reorder things easily.
Background and Notable Changes: