-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update to ES6, expose getNativeBinary #55
Conversation
var spawn = require('child_process').spawn; | ||
var glob = require('glob'); | ||
var async = require('async'); | ||
const fs = require('fs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you changed this file to no longer be executable, is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. PTAL.
No. I am not sure how I did that. I'll update.
…On Wed, Mar 28, 2018, 18:12 Alex Eagle ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In index.js
<#55 (comment)>:
> @@ -1,32 +1,36 @@
#!/usr/bin/env node
'use strict';
-var fs = require('fs');
-var os = require('os');
-var path = require('path');
-var resolve = require('resolve').sync;
-var spawn = require('child_process').spawn;
-var glob = require('glob');
-var async = require('async');
+const fs = require('fs');
you changed this file to no longer be executable, is that intended?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#55 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPL8meohP8Cr2fbjJPBt7-lQmdyyyvjks5tjDTggaJpZM4S_jDH>
.
|
- use ES6 sugar, - split utility functions, - format the code with clang-fromat!
Returns the platform specific path to the clang-format executable
@vicb can you change the commit description to include why we expose the native binary? sounds like that should be an implementation detail. |
Rationale is I was trying to write a clang-format plugin for precise-commits and needed something synchronous. Up for debate. |
@alexeagle