node-gyp的[选项]在哪里记录?

Jul*_* TF 7 node-gyp

node-gyp --help 说:

Usage: node-gyp <command> [options]

where <command> is one of:
 - build - Invokes `make` and builds the module
 - clean - Removes any generated build files and the "out" dir
 - configure - Generates a Makefile for the current module
 - rebuild - Runs "clean", "configure" and "build" all at once
 - install - Install node development files for the specified node version.
 - list - Prints a listing of the currently installed node development files
 - remove - Removes the node development files for the specified version

node-gyp@1.0.2  /usr/local/lib/node_modules/node-gyp
node@1.8.1
Run Code Online (Sandbox Code Playgroud)

[options]实际记录在哪里?我已经选择了各种.js源文件来试图解决它并且没有提出任何问题.

不要[options]只是直通到GYP?

具体来说,我正在尝试使用一个未命名为"binding.gyp"的绑定文件,但似乎节点 - >位于node.js和gyp之间的Python包装器由于某些硬编码而不允许它(尽我所能弄清楚).

例如:node-gyp configure custom.gyp产生:

<snip>
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp', <-- NOT OK
gyp info spawn args   'custom.gyp', <-- OK
<snip>
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/custom.gypi', <-- MAYBE OK? DON'T LIKE IT BEING GLOBAL (race condition here...)
<snip>
gyp: binding.gyp not found (cwd: <snip>) while trying to load binding.gyp
gyp ERR! configure error <-- YES because it doesn't exist, I want to use 'custom.gyp'
gyp ERR! stack Error: `gyp` failed with exit code: 1
<snip>
Run Code Online (Sandbox Code Playgroud)

这里<snip>只是代表我删除不相关的信息.

也许我可以通过修改Python包装器来绕过它,但还有其他方法吗?有些node-gyp --option=x例如吗?

iX3*_*iX3 3

看起来现在在node-gyp repo上有相当多的文档。