mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
.. | ||
src | ||
.gitignore | ||
CMakeLists.txt | ||
hello.js | ||
package.json | ||
README.md |
demo project showing how to use ScriptX to build node.js
addon
- use cmake-js to build
node.js
addon - write CMakeLists.txt using cmake-js. see
CMakeLists.txt
for detail. - inside the initializer, use special
V8Engine
constructor. seesrc/addon.cc
for detail. - build and run using
npm i -g cmake-js # install cmake-js
npm run test # build & run test