node-gyp-build:支持预构建的node-gyp的构建工具和绑定加载器

时间:2024-05-17 18:40:35
【文件属性】:
文件名称:node-gyp-build:支持预构建的node-gyp的构建工具和绑定加载器
文件大小:8KB
文件格式:ZIP
更新时间:2024-05-17 18:40:35
nodejs node-gyp prebuild native-modules prebuildify 节点gyp构建 支持预构建的 gyp的构建工具和绑定加载器。 npm install node-gyp-build 与一起使用可轻松支持本机模块的prebuilds。 用法 笔记。 预node-gyp-build@4名称在和node-gyp-build@4 node-gyp-build@4已更改。 请参阅下面的文档。 node-gyp-build工作原理与 gyp相似,不同之处在于它将在重建项目之前检查是否存在构建或预构建。 它的主要用途是作为本机模块的npm安装脚本和绑定加载器,这些模块使用捆绑预 。 首先将node-gyp-build作为安装脚本添加到您的本机项目中 { ... "scripts" : { "install" : "node-gyp-build" } } 然后在index.js ,而不是使用模块,而是使用node-gyp-build来加载
【文件预览】:
node-gyp-build-master
----.gitignore(13B)
----package.json(772B)
----LICENSE(1KB)
----index.js(5KB)
----test.js(3KB)
----build-test.js(398B)
----.github()
--------workflows()
----README.md(2KB)
----optional.js(143B)
----.npmignore(16B)
----bin.js(2KB)

网友评论