Maven like dependency management for browsers
Behrang Saeedzadeh
behrangsa at gmail.com
Thu Jul 30 08:58:58 UTC 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150730/64ed521b/attachment.html>
More information about the es-discuss
mailing list