GithubHelp home page GithubHelp logo

Questions about systemjs HOT 3 CLOSED

systemjs avatar systemjs commented on July 22, 2024
Questions

from systemjs.

Comments (3)

guybedford avatar guybedford commented on July 22, 2024

I'm glad you like it. It is very early days, and my documentation is very much lacking, so I hope I'm not doing a disservice. Any suggestions on how to make things clearer always welcome.

I'm working on allowing it to be a "drop in" replacement for RequireJS as well, still aiming to get the test coverage up a little more before announcing that properly though.

About your questions -

  1. In theory it can support IE8+. The ES6 module polyfill works on IE8, but I would need to do a few IE8 function replacements (Array.prototype.indexOf etc) to properly get this support going. It shouldn't take more than an hour to get that up when the time comes though - create a ticket when you need it, and I'll get it done :)

  2. The CDN is a convenience. It basically provides all of github and npm available without any install process necessary. The CDN is located at "https://github.jspm.io" and "https://npm.jspm.io". These CDNs then are created as "locations" by default in jspm (https://github.com/jspm/jspm-loader/blob/master/loader.js#L656).

This means I can write things like: jspm.import('npm:underscore');, which simply loads the URL https://npm.jspm.io/underscore.js, which then intelligently downloads the NPM module and gives back the latest version main file, with dependency management as well.

Does that make sense? Will think about how I can explain this better on the site.

from systemjs.

vanthome avatar vanthome commented on July 22, 2024

Hello Guy,

that sounds amazing!

You should clarify regarding the CDN

  • Whether it is or will be a commercial offer
  • Whether it just routes the requests to Github and npm or actually caches the resources
  • Provide usage terms

As far as I understand the CDN machanism, I would be able to add my own one (programmatically)
If I had something like cdnjs -- is that right?

Again, I really really like this approach.

Cheers

from systemjs.

guybedford avatar guybedford commented on July 22, 2024

I actually just added cdnjs this morning - cdnjs/cdnjs#1728 (comment)

The CDN caches the resources, but regularly updates the cache so that there is never more than a minute delay (it is actually instant for new requests and a few seconds for branch updates). Exact version tag numbers are cached for longer than say the "master" branch request. It does all this quite intelligently.

The CDN costs money to run, but I am offering and always will offer it as a free service.

I have been thinking about whether or not to open source the CDN itself, but am undecided on this at the moment.

In terms of a commercial offering, I plan to provide a paid production service to pay for the free CDN. But I am first working on providing a completely open source build workflow using the jspm commandline tool that will work just as easily, exactly like the RequireJS optimizer. This way there is no lock in, as the self-hosting option will be simple and free just like standard builds today.

Would be interested to hear how that comes across though as well.

from systemjs.

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.