Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(base): create hello world with C++ bindings #1

Merged
merged 1 commit into from
May 11, 2016

Conversation

robinjoseph08
Copy link
Contributor

What

Creates a Hello World Node.js Addon using C++ code that gets compiled into a requirable Node package.

Why

To lay the base to begin hooking into Poppler's pdffonts.

Notes

  • This project will be using node-gyp (which comes with every installation of Node) to build/compile the C++ code.
  • It also uses nan so that it can be targeted for many different versions of Node with one consistent API, even though v8's API have changed drastically.
  • Once a package has been compiled, it could be in one of several locations (build/Release, build/Debug, build/default, build/Release/bindings, etc.). So instead of having a bunch of try/catchs or fs.existss, bindings takes care of that.
  • I'm happy to explain any part of the C++ code that might seem a bit confusing. It's all a bit new to me too, so we can solidify our knowledge of this stuff together.

@charlesbjohnson
Copy link

LGTM

@@ -0,0 +1 @@
6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we match API's node version for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm testing against several node versions, which is why the test code isn't ES6, but I thought it would be better to make it use the latest version supported. I can change it to 5 but since I'm testing against 6 also, I didn't think it made much sense.

@mgartner
Copy link
Contributor

LGTM

@mgartner mgartner assigned robinjoseph08 and unassigned mgartner May 11, 2016
@robinjoseph08 robinjoseph08 merged commit cc8a4a8 into master May 11, 2016
@robinjoseph08 robinjoseph08 deleted the hello-world branch May 11, 2016 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants