-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use the icon components internally #486
Conversation
@piemonkey (CC @abeforgit) this should cover everything to unblock the embeddable I think. I'm not familiar with the project, but maybe it might be interesting to |
@abeforgit we need to be using https to test this fully, right? I have a local branch of embeddable that I used to test the component passing PR, so I can update this to use this branch as a git dep. Then I can test it locally with a proxy and a self-signed cert. I think that's the easiest, though if others want to test they'll also need to do the https set-up. |
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 did have to use yalc in the end due to the combination of npm lifecycle scripts and git: dependencies being broken. I didn't realise that you'd gone for the build-on-package approach in the end. I didn't need the https proxy though, the problem is evident without it.
After updating our use of components to pass icon components instead of strings, this version does indeed fix the problem.
Yea, it didn't feel right and I consider this a temporary setup anyways since the script will be converted to a rollup plugin once we switch to the v2 addon setup.
While looking into this last week I came across a comment from an npm maintainer who seemed to imply that he considers using github dependencies a very bad practice, so that might explain why things like this don't get fixed 😄.
Thanks for testing 🙏. I'll merge and tag a release today. |
Wait, was the issue related to missing dependencies? It seems npm only installs devDeps for git dependencies if there is a prepare script. We're using
In any case, I'm not sure if we should actually support using Appuniversum as a Git dependency to be honest, so I'll just leave it as-is for now. |
This is a good experiment to see if everything works, and it allows projects to skip the svg-symbolset download if they also refactor their own code.
b31ffe6
to
5798602
Compare
I forget for certain now, but I think it was not generating the components at all. I don't think it's a thing that needs to be fixed as I think trying to find a solution that works for that and in all the other possible configurations is either impossible or very hard. I just mentioned it to potentially avoid others wasting time with it in the future. |
chiming in with: npm git dependencies -> "just don't" |
This is a good experiment to see if everything works, and it allows projects to skip the svg-symbolset download if they also refactor their own code.
Builds on #483 and is part of #482