[Sugar-devel] How to deploy the webactivity libraries
Daniel Narvaez
dwnarvaez at gmail.com
Wed May 29 09:22:16 EDT 2013
Actually volo versioning seems to be more complicated than I thought
https://github.com/volojs/volo/blob/master/commands/add/doc.md
The part about user/repo/semverVersion in particular.
So we need to figure out exactly how to behave for the different version
types, when to use the system library and when the bundled one.
On 29 May 2013 15:07, Daniel Narvaez <dwnarvaez at gmail.com> wrote:
> 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.
>
--
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130529/b2b85895/attachment-0001.html>
More information about the Sugar-devel
mailing list