Open mbredif opened 6 years ago
You're not far though: you just need to remove your MainBundle.js from the package imo and control more tightly what goes into your package when you run npm pack. Some deps should be in peerDependencies as well (like itowns, and maybe THREE). Tip, if you want it to still work in your examples, you also add your peerDependency in your devDependencies.
In short it's mainly a matter of configuring package.json
. Not sure if this is the place, the npm documentation is already quite detailed on this :-)
following your tips, I made some progress :
file:
dependency anymore but "ros3d": "git+https://github.com/mbredif/ros3djs.git#es6"
itowns
seems not to be bundled anymore (itowns
is undefined if I have only the script tag for itowns-ros
)but:
Not sure if this is the place, the npm documentation is already quite detailed on this :-)
It is too much detailed...
Would it be possible to create a third version that would show a template to quickstart an itowns plugin/library (rather than an application) ?
I am not sure about the difference, but @autra, you seemed to be knowledgeable about this when you say :