cabbage-c
v1.0.0
Published
A pretty node-gyp wrapper.
Downloads
3
Readme
cabbage
A pretty ✨ node-gyp wrapper.
This is a really simple program that makes it easy to have organized NAPI modules.
It works by looking in your project's src/cpp directory, and building based off of the configured "target_name" and sources.
By default, it includes the NAPI includes and defines into your build, so you don't have to write them in cabbage.config.cjs
.
Usage
cabbage generate // generate a binding.gyp (before you run cabbage build)
cabbage build // build the binary
example-cabbage.config.js
buildModules = [
{
target_name: "test",
sources: ["src.cc"],
include_dirs: [],
defines: [],
dependencies: [],
direct_dependent_settings: [],
export_dependent_settings: [],
conditions: []
}
]
module.exports = {
buildModules
}