Skip to content

Added support for CommonJS require()#1215

Merged
haberman merged 13 commits intoprotocolbuffers:masterfrom
haberman:commonjs
Feb 19, 2016
Merged

Added support for CommonJS require()#1215
haberman merged 13 commits intoprotocolbuffers:masterfrom
haberman:commonjs

Conversation

@haberman
Copy link
Copy Markdown
Member

@haberman haberman commented Feb 4, 2016

This required several codegen changes and a bunch of glue in gulp.js to test it all.

Comment thread js/README.md Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A link to the protoc downloads would be nice.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@haberman
Copy link
Copy Markdown
Member Author

I added a commit to address your comments. PTAL.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Isn't [^ ] basically \S?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In general, your JS is a big mix of camel case and underscore naming. Be consistent if you can.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done. Good catch on that -- I don't write enough JavaScript regularly to be used to camelCasing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants