/
astafievk
/
source_code
Обзор
Документация
Войти
/
astafievk
/
source_code
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
source_code
/
...
/
@mapbox
/
node-pre-gyp
/
..
.github
source code
2 года назад
bin
source code
2 года назад
lib
source code
2 года назад
CHANGELOG.md
source code
2 года назад
LICENSE
source code
2 года назад
README.md
source code
2 года назад
contributing.md
source code
2 года назад
package.json
source code
2 года назад
@mapbox/node-pre-gyp
@mapbox/node-pre-gyp makes it easy to publish and install Node.js C++ addons from binaries
Special note on previous package
Features
Credits
FAQ
Depends
Install
Usage
Commands
Options
Configuring
1) Add new entries to your `package.json`
The `binary` object has three required properties
modulename
modulepath
host
The `binary` object other optional S3 properties
host
bucket
region
s3ForcePathStyle
The `binary` object has optional properties
remotepath
packagename
2) Add a new target to binding.gyp
3) Dynamically require your `.node`
4) Build and package your app
5) Test
6) Publish the tarball
7) Automate builds
8) You're done!
9) One more option
Node-API Considerations
The `napiversions` array property
The `napibuildversion` value
Defining `NAPIVERSION` for the C/C++ code
Path and file naming requirements in `package.json`
Supporting both Node-API and NAN builds
Two additional configuration values
S3 Hosting
1) Create an S3 bucket
2) Install node-pre-gyp
3) Configure AWS credentials
4) Package and publish your build
Appveyor Automation
1) Create a free Appveyor account
2) Create a new project
3) Add appveyor.yml and push it
4) Create secure variables
5) Hook up publishing
6) Publish when you want
Travis Automation
1) Install the Travis gem
2) Create secure variables
3) Hook up publishing
OS X publishing
Travis OS X Gotchas
4) Publish when you want
Versioning
Download binary files from a mirror
README.md