eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
http://mraa.io
MIT License
1.37k stars 614 forks source link

[FR]switch from node-gyp to node-pre-gyp #663

Open farfromrefug opened 7 years ago

farfromrefug commented 7 years ago

That would be awesome if you could switch from node-gyp to node-pre-gyp. that way we could have pre build release and make npm install so much faster! If you need an example node-usb uses it

Thanks

arfoll commented 7 years ago

That's a really good idea, I did not know that existed, any ideas how we can quickly do that? just node-pre-gyp publish?

farfromrefug commented 7 years ago

you have to change the package.json and the binding.gyp. As an example: this is to set the host were to look for pre built this is for the actual node-pre-gyp build

PS: use a good name for "module_name" like simply "mraa". This is used by node-pre-gyp to allow override of host url.

arfoll commented 7 years ago

Ok, thanks for the info I'll have to dig a little bit.

Ping @intel-iot-devkit/upm-core-dev this looks pretty interesting!