我正在c 中的buidling node.js绑定
I am buidling node.js bindings in C++ should .gitignore the *.gypi files
我有以下node.js project:
.
├── auto.gypi
├── autogypi.json
├── auto-top.gypi
├── binding.gyp
├── build
│------ <Where node-gyp builds>
├── cpp
│ ├── example.cpp
│ └── example.h
├── index.js
├── node_modules
|----- <dependencies>
├── package.json
├── package-lock.json
└── structure.txt
305 directories, 1299 files
和i .gitignore
node.js项目中常用的以下文件:
node_modules
build
总线,您可以注意到有一些*.gypi
文件。如果git add
ed进入我的项目,或者应该是.gitignore
D?
如果打开其中一个,您会注意到以下评论:
# Automatically generated file. Edits will be lost.
# Based on: autogypi.json
,您也可以消失,这意味着两件事:
- 只要您拥有
autogypi.json
文件,就可以生成这些文件。 - 需要监视
autogypi.json
文件以在您的项目版本控制(akagit add
中(进行更改。
因此,您应该通过以下输入Inti .gitignore
文件 auto.gypi
和 auto-top.gypi
文件 git ingore
:
*.gypi
相关文章:
- 在 ubuntu 上安装 node js pulsar 客户端
- Node.js fs.open() 在尝试打开 4 个以上的命名管道 (FIFO) 后挂起
- 在 node.js 中将缓冲区从 C++ 转换为 UTF-8 字符串
- 使用 Node.js N-API 调用 C 函数时,不会显示预期的输出
- 如何使用 v8 本机插件将 C++ 数组交付到 Node.js
- C++ 和 node.js 之间的 RSA 加密
- node.js Nan:在函数C++调用 JavaScript 回调
- 迭代 Napi::对象属性(键)在 Node.js C++ N-API 中
- 上传大文件并解析时使用 Node.js v10.15.1 时出现致命错误
- 如何在 Node.js 中解压缩 c# 打包结构
- 使用 Node.js 调用child_process与从 C 调用子进程并创建C++绑定以从 node.js 调用
- 我们如何访问 Node.js 应用程序之外的内存?
- 我正在c 中的buidling node.js绑定
- 以有效的方式从 Node .js运行 C 或C++代码
- node.js:如何从C 模块中产生
- 如何编译 node.js for CentOS 6.10 (库问题)
- 如何使用 Node.js 开发一个侦听器来接收许多车辆跟踪数据(通过 TCP)
- 使用 N-API 将数据流式传输到 Node.js C++ 插件中
- 在node.js addon中阻止呼叫
- Node.js与C++的集成