From d4203bfd320d874bc9ca1c378e165fd682f18c7f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 11 Apr 2017 17:17:18 -0700 Subject: [PATCH 1/3] integrate an example of using mason + a mason dep --- Makefile | 3 +++ binding.gyp | 17 ++++++++++++++++- package.json | 3 +-- scripts/install_deps.sh | 15 +++++++++++++++ src/hello_world.cpp | 2 ++ 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100755 scripts/install_deps.sh diff --git a/Makefile b/Makefile index 554a191..c33948f 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,12 @@ coverage: clean: rm -rf lib/binding rm -rf build + @echo "run 'make distclean' to also clear node_modules, mason_packages, and .mason directories" distclean: clean rm -rf node_modules + rm -rf mason_packages + rm -rf .mason xcode: node_modules ./node_modules/.bin/node-pre-gyp configure -- -f xcode diff --git a/binding.gyp b/binding.gyp index 6e04665..3038b63 100644 --- a/binding.gyp +++ b/binding.gyp @@ -6,13 +6,28 @@ # As a variable to make easy to pass to # cflags (linux) and xcode (mac) 'system_includes': [ - "-isystem <(module_root_dir)/ #include +#include + // Custom constructor added in order to test/cover throwing an error during initialization HelloWorld::HelloWorld(std::string name) : name_(name) { From 139004e89e13539ed96894dbc6bbf50b31197c9d Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 11 Apr 2017 17:18:01 -0700 Subject: [PATCH 2/3] add to ignores --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 5afb73e..58a677a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ lib/binding node_modules build +mason_packages +.mason \ No newline at end of file From 00fb2c9e3991119904e3f9e0cd7cd91c8232b6fd Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 11 Apr 2017 17:18:51 -0700 Subject: [PATCH 3/3] add codecode ignores --- codecov.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..c0a0037 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +ignore: + - "test" \ No newline at end of file