LiteLoaderBDS-1.16.40/ScriptEngine/third-party/ScriptX/test/node_addon
2022-09-21 19:47:03 +08:00
..
src fist commit 2022-09-21 19:47:03 +08:00
.gitignore fist commit 2022-09-21 19:47:03 +08:00
CMakeLists.txt fist commit 2022-09-21 19:47:03 +08:00
hello.js fist commit 2022-09-21 19:47:03 +08:00
package.json fist commit 2022-09-21 19:47:03 +08:00
README.md fist commit 2022-09-21 19:47:03 +08:00

demo project showing how to use ScriptX to build node.js addon

  1. use cmake-js to build node.js addon
  2. write CMakeLists.txt using cmake-js. see CMakeLists.txt for detail.
  3. inside the initializer, use special V8Engine constructor. see src/addon.cc for detail.
  4. build and run using
npm i -g cmake-js   # install cmake-js
npm run test        # build & run test