Commit 7f4a9ed
Reorganize examples into categorized folders (#341)
* refactor: create directory structure to organize exmaples
* test: update test_all to work with new directory structure
* fix: bug in test_all if no package.json scripts
* test: cleanup output of test_all
* fix: remove default test script that throws from thread_safe_function_with_object_wrap
* fix: remove build_with_cmake from .gitignore
* fix: swith to ' from " and remove subdir from getAllTests call
* test: add extra test cases for npm start and just running the pkgJson.main with node
* refactor: move all examples to src directory
* refactor: add numbers to categories so they are ordered in the src folder
* refactor: simplify getAllExamples in test_all.js
* docs: add directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure to README.md
* docs: update directory structure example in readme
* add back build_with_cmake
---------
Co-authored-by: legendecas <legendecas@gmail.com>1 parent e68ad0f commit 7f4a9ed
File tree
274 files changed
+167
-121
lines changed- src
- 1-getting-started
- 1_hello_world
- nan
- napi
- node-addon-api-addon-class
- node-addon-api
- 2_function_arguments
- nan
- napi
- node-addon-api
- 3_callbacks
- nan
- napi
- node-addon-api
- 4_object_factory
- nan
- napi
- node-addon-api
- 5_function_factory
- nan
- napi
- node-addon-api
- 6_object_wrap
- nan
- napi
- node-addon-api
- 7_factory_wrap
- nan
- napi
- node-addon-api
- a-first-project/node-addon-api
- lib
- src
- test
- 2-js-to-native-conversion
- 8_passing_wrapped
- nan
- napi
- node-addon-api
- array_buffer_to_native/node-addon-api
- object-template-demo
- nan
- napi
- object-wrap-demo/node-addon-api
- lib
- src
- test
- typed_array_to_native/node-addon-api
- 3-context-awareness
- napi
- node_10
- 4-references-and-handle-scope/function-reference-demo/node-addon-api
- src
- 5-async-work
- async-iterator/node-addon-api
- async_pi_estimate
- nan
- node-addon-api
- async_work_promise
- napi
- node-addon-api
- async_work_thread_safe_function/napi
- call-js-from-async-worker-execute/node-addon-api
- src
- napi-asyncworker-example/node-addon-api
- src
- test
- 6-threadsafe-function
- promise-callback-demo/node-addon-api
- src
- test
- thread_safe_function_counting/node-addon-api
- thread_safe_function_round_trip/napi
- thread_safe_function_with_object_wrap/node-addon-api
- threadsafe-async-iterator/node-addon-api
- typed_threadsafe_function/node-addon-api
- 7-events
- emit_event_from_cpp/node-addon-api
- src
- inherits_from_event_emitter/node-addon-api
- src
- 8-tooling
- build_with_cmake
- napi
- node-addon-api
- typescript_with_addon/node-addon-api
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
274 files changed
+167
-121
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments