[annotator-dev] Annotator and Meteor

Mitar mmitar at gmail.com
Fri Sep 5 19:13:07 UTC 2014


Hi!

Yes, we are still using the old version, but I am not sure it matters.
You can package it in the same way, I believe. So you add Annotator as
a git submodule, you ignore browserify, and just add all CoffeeScript
files to the package. Meteor will then convert them into JavaScript
files and package them into one namespace automatically. Sometimes you
have just to add one more file which exposes globally the symbols you
want to have globally.

I don't have time to do it myself now, but you can start with a GitHub
repository for it now and let's see where you get stuck.


Mitar

On Fri, Sep 5, 2014 at 5:16 AM, Andrew - FinalsClub
<andrew at finalsclub.org> wrote:
> Thanks Mitar,
>
> I notice you are using an older version of Annotator (before browserify was added). Would the same thing be possible with Annotator 2.0?  We are currently a bit stumped. Ari can share more details on our efforts if you're curious.
>
> Eventually, it would be useful to make a Meteor package so others can easily use Annotator in their meteor projects. If you have any suggestions, we would love guidance / help.
>
> Warmly,
> Andrew
>
>
>
>
>> On Sep 5, 2014, at 3:39 AM, Mitar <mmitar at gmail.com> wrote:
>>
>> Hi!
>>
>> You can see here how we are bundling Annotator for Meteor:
>>
>> https://github.com/peerlibrary/peerlibrary/tree/development/packages/annotator
>>
>> And here how we are using it:
>>
>> https://github.com/peerlibrary/peerlibrary/tree/development/client/lib/annotator
>>
>>
>> Mitar
>>
>> On Wed, Sep 3, 2014 at 7:04 AM, Andrew - FinalsClub
>> <andrew at finalsclub.org> wrote:
>>> Hey All,
>>>
>>> Especially @Mitar. At FinalsClub, we have been working on a new social reading site built using Meteor (a newfangled JavaScript framework). Meteor is nice, because it offers isomorphic JavaScript - that is, the same code to run on the client and server. It also provides the magic of reactive data binding between clients and server.
>>>
>>> We have gotten a basic working version of Annotator with a meteor-specific store plugin. (I can share the code if anyone is curious.). However, there are some aspects of Annotator that we are grappling with.
>>>
>>> For instance, we were wondering how the XPath-Range plugin is currently being used. Also, we want to include the coffeescript (not compiled JS) of Annotator in our project, but aren't sure how to accomplish that using Meteor's custom package system.
>>>
>>> @Mitar, I've seen your handle on a few meteor github issues and wonder if could help us. I've cc'd Bryan and Ari from our team if they have anything to add.
>>>
>>> Also, if anyone else is interested in helping, just say so. We'd be glad to put our work on the OpenAnnotation organization if you'd like as well.
>>>
>>> Best,
>>> Andrew
>>
>>
>>
>> --
>> http://mitar.tnode.com/
>> https://twitter.com/mitar_m



-- 
http://mitar.tnode.com/
https://twitter.com/mitar_m



More information about the annotator-dev mailing list