Skip to content

Commit 7f4a9ed

Browse files
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

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
build/
2-
build_with_cmake/
32
node_modules/
43
Debug/
54
Release/

README.md

Lines changed: 26 additions & 18 deletions

1_hello_world/README.md renamed to src/1-getting-started/1_hello_world/README.md

1_hello_world/nan/binding.gyp renamed to src/1-getting-started/1_hello_world/nan/binding.gyp

File renamed without changes.

1_hello_world/nan/hello.cc renamed to src/1-getting-started/1_hello_world/nan/hello.cc

File renamed without changes.

1_hello_world/nan/hello.js renamed to src/1-getting-started/1_hello_world/nan/hello.js

File renamed without changes.

1_hello_world/nan/package.json renamed to src/1-getting-started/1_hello_world/nan/package.json

File renamed without changes.

1_hello_world/napi/binding.gyp renamed to src/1-getting-started/1_hello_world/napi/binding.gyp

File renamed without changes.

1_hello_world/napi/hello.c renamed to src/1-getting-started/1_hello_world/napi/hello.c

File renamed without changes.

1_hello_world/napi/hello.js renamed to src/1-getting-started/1_hello_world/napi/hello.js

File renamed without changes.

0 commit comments

Comments
 (0)