mapbox / geometry.hpp

C++ geometry types
ISC License
95 stars 37 forks source link

Added npm packaging for geometry hpp #45

Closed flippmoke closed 7 years ago

flippmoke commented 7 years ago

As per conversion with @springmeyer adding npm packaging for geometry hpp for use in node cpp applications.

jfirebaugh commented 7 years ago

@flippmoke @springmeyer Can you elaborate on the rationale here? Why not use mason?

springmeyer commented 7 years ago

@jfirebaugh thanks for asking. The usecase here is for writing node c++ addons and easily integrating c++ header-only libs without adding extra complexity that is unusual to node.js devs or extra dependencies (like mason). By duel publishing in npm it makes it possible to include something like geometry.hpp in the dependencies section of the package.json and the include_dirs section of binding.gyp in the same, consistent way that https://github.com/nodejs/nan does it. More details at https://github.com/mapbox/cpp/issues/20

springmeyer commented 7 years ago

@flippmoke let's abandon adding a package.json here per https://github.com/mapbox/cpp/issues/20#issuecomment-272044708 (However a contributing is still well worth it).