Maven like dependency management for browsers

Sébastien Cevey seb.cevey at guardian.co.uk
Thu Jul 30 09:14:39 UTC 2015


Hi Behrang,

Have you had a look at JSPM and SystemJS? They cover similar grounds in
userspace, with the intent for SystemJS to be the upcoming standard Module
Loader.

https://github.com/jspm/jspm-cli
https://github.com/systemjs/systemjs

On Thu, 30 Jul 2015 at 09:59 Behrang Saeedzadeh <behrangsa at gmail.com> wrote:

> Hi,
>
> Has this been discussed before? In a nutshell this diagram illustrates the
> idea:
>
> http://i.imgur.com/X1n57iQ.png
>
>    - Rather than referencing a url in <script> or <style> tags, we
>    require the browser to load name-spaced, versioned libraries. For example:
>    com.jquery:jquery:1.0.
>    - This can either be done using the <script>/<style> tags similar to
>    <script module="com.jquery:jquery:1.0"/> or <style
>    module="com.jquery:jquery:1.0" /> or probably programmatically too: (in a
>    JS file: require "com.jquery:jquery:1.0")
>    - There will be a central placed governed by W3C, for example, that
>    can host libraries. Third-party repositories could also exist and be used
>    (e.g. <script module="com.jquery:jquery:1.0" repository="cdn.jquery.com
>    "/>
>    - One benefit of this is dependency management. If jquery, for
>    example, depends on lodash, it also gets downloaded and loaded
>    automatically.
>
> This is just the core of the idea. Nothing new (already similar systems
> are available for Java, Node, .NET, Ruby, etc.) but this will bring it to
> the web.
>
> What do you think?
> --
> Best regards,
> Behrang Saeedzadeh
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>

-- 

------------------------------
Visit theguardian.com. On your mobile and tablet, download the Guardian 
iPhone and Android apps theguardian.com/guardianapp and our tablet editions 
theguardian.com/editions.  Save up to 57% by subscribing to the Guardian 
and Observer - choose the papers you want and get full digital access. 
 Visit subscribe.theguardian.com

This e-mail and all attachments are confidential and may also be 
privileged. If you are not the named recipient, please notify the sender 
and delete the e-mail and all attachments immediately. Do not disclose the 
contents to another person. You may not use the information for any 
purpose, or store, or copy, it in any way.  Guardian News & Media Limited 
is not liable for any computer viruses or other material transmitted with 
or as part of this e-mail. You should employ virus checking software.
 
Guardian News & Media Limited is a member of Guardian Media Group plc. Registered 
Office: PO Box 68164, Kings Place, 90 York Way, London, N1P 2AP.  Registered 
in England Number 908396


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150730/f302e036/attachment-0001.html>


More information about the es-discuss mailing list