Why my wrapped meteor package isn't working? -
i seek little wrap package meteor. has been weakness on framework. know not difficult, read tutorials , articles : https://www.discovermeteor.com/blog/wrapping-npm-packages/ http://www.meteorpedia.com/read/packaging_existing_libraries
however lost in export , stuff, , time understand !
i tried wrap package :
https://github.com/fians/waves
(i knew 1 day going not find package made on atmosphere :() wanted thnings right, following guidelines made dandv. forked repo, add meteor packages files : export.js
, package.js
. following example of moment can see here :
https://github.com/voyag3r/waves
finally, in app, created local package folder meteor command : meteor create --package voyag3r:waves
tried called waves
variable, bit not defined. tried , without capital letter. (like in source code waves.js). no, tried this.waves
instead of waves
in export.js, neither. there not understand namespace , visibility think, , errors not displaying useful information time. there explain me ? because lot of other packages !
thanks !
glad see read through documents above, they're quite helpful. however, understand can confusing work through details. hopefully, can assist you.
i finished packaging couple of libraries meteor, should take @ repositories examples:
more specifically, take @ jspdf:core
repository above , inspect meteor-pre.js
, meteor-post.js
files how handle exporting variables:
meteor-pre.js
var window = {};
meteor-post.js
jspdf = window.jspdf;
other important files include package.js
, package.json
, , of course autopublish.json
, integrating version updates http://autopublish.meteor.com/, fantastic tool written luca mussi @splendido.
additionally, recommend review official meteor integration directly 3rd party libraries discussion , ask @splendido or @dandv assistance reserving namespace library.
this process has gone through rapid change on last few months, , although not perfect, it's improving steadily. i'm encouraged see that, me, want assist meteor ecosystem.
Comments
Post a Comment