[Sugar-devel] How to deploy the webactivity libraries
Daniel Narvaez
dwnarvaez at gmail.com
Wed May 29 09:07:39 EDT 2013
On 29 May 2013 14:56, Simon Schampijer <simon at schampijer.de> wrote:
>
> Don't we include it already in the activity bundle?
> https://github.com/sugarlabs/sugar-html-template/blob/master/package.json
>
>
Yeah, though not quite intentionally I think, it's not used.
> I looked at the volojs docs but couldn't figure out how exactly the
> version comes into play here.
> https://github.com/volojs/**volo/wiki/Library-best-**practices#wiki-**
> volodependencies<https://github.com/volojs/volo/wiki/Library-best-practices#wiki-volodependencies>
>
> Is that part of the url, like in "github:requirejs/domReady/2.**0.1"?
>
That url is in the form user/repo/tag, with tag being a git tag or branch.
Maybe we can consider unversioned only dependencies in the form user/repo.
> Maybe that example can help: https://github.com/volojs/**
> create-responsive-template/**blob/master/package.json<https://github.com/volojs/create-responsive-template/blob/master/package.json>
>
> Can you elaborate on who would do the mapping?
>
>
This code
https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/htmlactivity.py#L98
It's already mapping request path to local path. We just need to add logic
to map lib paths to the system libraries instead of the activity directory.
This should give the best of both worlds because the bundles would still be
>> self contained, but at the same time we would able to use the latest
>> available version of the library installed in the system.
>>
>
> So a copy of the library is included into the activity bundle, and if no
> version is specified for that dependency it is checked if a newer library
> is installed in the system for usage.
>
I think with the way volo dependencies are specified, we cannot check if
the system library is newer. So if no version is specified we always use
the system library, if there is one installed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130529/18847744/attachment.html>
More information about the Sugar-devel
mailing list