[annotator-dev] packaging plugins
tilgovi at hypothes.is
Wed Apr 23 05:43:50 UTC 2014
I haven't done an npm publish from it yet, but in theory it would work.
The thing that's most notable and least intuitive (needs documentation) is
the browserify plugin shipping with annotator now. Using `browserify -p
annotator` causes any require calls for "annotator" will resolve to a
namespace shim that will find annotator in AMD, CommonJS, or the global
See the Makefile in annotator-annotateit for a complete command line which
builds the plugin bundle the same way the core plugins are built, which
results in a UMD module that should work in any environment.
On Apr 22, 2014 10:27 PM, "Randall Leeds" <tilgovi at hypothes.is> wrote:
> On Apr 22, 2014 8:42 PM, "Kristof Csillag" <csillag at hypothes.is> wrote:
>> Is there an example project somewhere which showcases how to properly
>> package a plugin for Annotator, which lives in an independent
>> repository, and is released via npm / browserify independently of the
>> upstream project?
>> I am talking about an example that showcases the required settings for
>> the whole toolchain.
>> Thank you:
>> annotator-dev mailing list
>> annotator-dev at lists.okfn.org
>> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev