Giter VIP home page Giter VIP logo

Comments (6)

stuartc avatar stuartc commented on August 17, 2024

Any guidelines on this bug? I'd like to have a go at this..

Is this related to this?

jspm-example/ › jspm install [email protected]

 Looking up angular in registry
 Checking versions for cdnjs:angular.js

err  Unable to load endpoint cdnjs

from registry.

guybedford avatar guybedford commented on August 17, 2024

Thanks for posting! Unfortunately this isn't as simple as fixing the js handling in the registry (that would be to allow jspm install angular.js as the name, which is this issue). What is needed for this is to create an endpoint module for cdnjs, as it doesn't have a download module yet.

For example, here are the endpoint modules for GitHub and NPM:

https://github.com/jspm/npm/blob/master/npm.js
https://github.com/jspm/github/blob/master/github.js

Basically, it returns a class that has two main methods: getVersions and download. getVersions returns an object of versions to hashes, download downloads to the given directory. Everything else is handled mostly automatically.

Endpoints are loaded from require('jspm-cdnjs') inside the CLI. So it can be tested by symlinking into the jspm-cdnjs global module name. The hard thing about this one is generating the version listings (perhaps from file listings somehow over the GitHub API). Happy to help where I can, and no pressure!

from registry.

guybedford avatar guybedford commented on August 17, 2024

There's a Bower and gist registry too here if it helps:

https://github.com/matthewp/jspm-bower/blob/master/bower.js
https://github.com/matthewp/gist/blob/master/gist.js

from registry.

stuartc avatar stuartc commented on August 17, 2024

Cool, you want to move these comments to a feature ticket? I'll see what I can do.

So whats the story with '.js' in the package name?

from registry.

guybedford avatar guybedford commented on August 17, 2024

Well I just tested it and the registry can in fact handle ".js" package names! (https://registry.jspm.io/[email protected])

So I've just renamed this issue :)

from registry.

guybedford avatar guybedford commented on August 17, 2024

This is now being tracked at jspm/jspm-cli#27

from registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.