-
Notifications
You must be signed in to change notification settings - Fork 5
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
How do we use this endpoint with jspm? #5
Comments
Note the endpoint API has changed since this was last worked on so that it isn't currently working. The process to add a custom endpoint is through |
Thanks @guybedford I'll try and update this soon. |
Please update this ASAP. We want to switch to JSPM, but this is holding us back ;( |
@kristianmandrup Interesting. Is there a particular reason? Do you use dependencies on Bower that aren't also on NPM? |
@guybedford Please be more specific on the command to install a new endpoint.
Would like to see real examples for what goes in
And then add a new endpoint as follows:
Please confirm :) Thanks! |
@kristianmandrup This endpoint uses an older api and needs to be updated. I can't promise on a date when I can do this but will try to get to it when I have some free time. I'd like to learn the new api anyways. |
Or if you would like to tackle it that would be good too, i'd give you collaborator access. |
Cool :) Will do ASAP. Thanks! |
@kristianmandrup I'd be interested to hear what specifically you need from the Bower endpoint that you can't through the github endpoint? Endpoint docs are at https://github.com/jspm/jspm-cli/wiki/Endpoints. |
Yeah, I used github workaround for now, but would be nice to use the main bower repo as well, similar to npm. Thanks anyways, I will look at the docs ;) |
@kristianmandrup if you need the |
Let's do it :) I mean, please add it, thanks! |
@kristianmandrup sure, implemented in [email protected]. |
(sorry didn't mean to close!) |
I'm still thinking this endpoint could be useful to people who depend on libraries that only publish to bower (there are a few). |
@matthewp does Bower host code? |
No, that's true. How does the GitHub endpoint handle ignoring files/directories? |
@matthewp unfortunately we still have to download them as we use the GitHub tarballs. But Bower does exactly the same as far as I'm aware. |
@guybedford It might download them but it doesn't store them. This is important to companies that vendor and a lot do. |
So what is the conclusion here? How do we move ahead on this? I forked the repo. |
Well if you want the bower-main functionality that is in the endpoint - @matthewp jspm removes the Do let me know if there is other functionality that is needed here. Goal is for |
@guybedford What do you mean it removes |
@guybedford if they are at parity why not alias |
@matthewp ahh right, it only does this for the package.json - we can add the |
@matthewp GitHub because that's who you rely on for uptime if using the packages. |
I don't understand what you mean. Let me rephrase my proposal. Make it so that if a user does:
It will be the same (aliased to)
Or... if you're against that for some reason (i'd love to know why) spit out a warning saying to use |
Oh, nm, bower does have a registry. Well you could pull down their registry... I can see why you wouldn't want to though. |
@matthewp we could create a bower endpoint which just is a redirecting endpoint, since endpoints are allowed to redirect to other endpoints. This way If the Bower endpoint just did that, I would happily include it in core and add necessary changes to the GitHub endpoint to support metadata. |
@kristianmandrup if you want to take this (above suggestion) please submit a PR. Otherwise I'll get to it eventually, not sure when. |
I'll see what I can do when I have time... does github:components/jquery really relate to bower? |
Yes that's the Bower repo. Try searching for |
I would like to tackle this, however I don't have time now unfortunately. Sounds like you know exactly how it should be done... could you write some pseudo code or basic kinda "algorithm" for how it should be done? I never used an ETag. |
?
The text was updated successfully, but these errors were encountered: