19808792ff | ||
---|---|---|
.. | ||
README.md | ||
buildbinary.js | ||
buildpackage.js | ||
install.js | ||
prunebinaries.js |
README.md
Overview
This directory is used for building the node-oracledb npm package. The scripts can also be used to create custom packages for hosting on a local server.
Most users do not need to use anything in this directory.
Maintainers
In a clone or copy of the repository:
-
npm run buildbinary
callsbuildbinary.js
to create a binary for the current node-oracledb / Node.js / platform combination. -
npm run buildpackage
callsbuildpackage.js
to make the node-oracledb package containing the node-oracledb JavaScript files, the available binaries, and a package.json that has an "install" script and a "prune" script. The package will be created in the top level directory.Before executing
npm run buildpackage
, all binaries and related build metadata information files from all node-oracledb / Node.js / platform combinations should be placed in thepackage/Staging
directory.
Package installation:
-
As part of an
npm install
that uses the created package, thepackage.json
install script runspackage/install.js
to check a binary module for the current Node.js and platform is available.If a suitable binary is not available, installation will fail. Users must then compile node-oracledb using source code from GitHub, or choose an alternative Node.js / platform that has a pre-built binary module.
-
After install, space conscious users can run
npm run prune
which removes pre-built binaries for all other Node.js releases and architectures.
By default the top level package.json
doesn't have an install script
target. This means that node-gyp will be invoked to compile
node-oracledb. This allows installation from source
code (via
GitHub) when no suitable pre-built binary is available.