1.0.0 • Published 3 years ago

cabbage-c v1.0.0

Weekly downloads
49
License
MIT
Repository
github
Last release
3 years ago

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
}