https://github.com/lgeiger/napi-prebuild-starter
Create and package Node.js N-API modules using prebuildify and Azure pipelines
https://github.com/lgeiger/napi-prebuild-starter
azure-pipelines n-api node-gyp nodejs prebuild starter-template v8
Last synced: about 2 months ago
JSON representation
Create and package Node.js N-API modules using prebuildify and Azure pipelines
- Host: GitHub
- URL: https://github.com/lgeiger/napi-prebuild-starter
- Owner: lgeiger
- License: mit
- Created: 2018-10-29T02:24:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T20:54:22.000Z (over 7 years ago)
- Last Synced: 2025-01-19T17:16:21.650Z (over 1 year ago)
- Topics: azure-pipelines, n-api, node-gyp, nodejs, prebuild, starter-template, v8
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# N-API Prebuild Starter
[](https://dev.azure.com/lgeiger/napi-prebuild-starter/_build/latest?definitionId=1)
This is a small sample repository that uses [`prebuildify`](https://github.com/mafintosh/prebuildify) and [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) to automatically build and publish a fully contained N-API hello world app.
It can be installed without the need for setting up a complete [`node-gyp`](https://github.com/nodejs/node-gyp) build toolchain. It ships with prebuilt binaries for the following platforms:
- Windows (`x64` and `ia32`)
- macOS (`x64`)
- Linux (`x64`, `ARM` and `ARM64`)
Install it just like any other `npm` module not containing any native C++ code:
```shell
npm i @lgeiger/napi-prebuild-starter
```
## Further reading:
- https://www.nearform.com/blog/the-future-of-native-modules-in-node-js/
- https://github.com/mafintosh/prebuildify
- https://azure.microsoft.com/en-us/services/devops/pipelines/
- https://nodejs.org/api/n-api.html
- https://github.com/nodejs/node-addon-examples/tree/master/1_hello_world
- https://github.com/nodejs/node-addon-api