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

Update to ES6, expose getNativeBinary #55

Merged
merged 3 commits into from
Apr 3, 2018
Merged

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Mar 29, 2018

var spawn = require('child_process').spawn;
var glob = require('glob');
var async = require('async');
const fs = require('fs');
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. PTAL.

@vicb
Copy link
Contributor Author

vicb commented Mar 29, 2018 via email

- use ES6 sugar,
- split utility functions,
- format the code with clang-fromat!
Returns the platform specific path to the clang-format executable
@mprobst
Copy link
Contributor

mprobst commented Mar 29, 2018

@vicb can you change the commit description to include why we expose the native binary? sounds like that should be an implementation detail.

@vicb
Copy link
Contributor Author

vicb commented Mar 30, 2018

Rationale is I was trying to write a clang-format plugin for precise-commits and needed something synchronous. Up for debate.

@mprobst mprobst merged commit b25cd8d into angular:master Apr 3, 2018
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.

4 participants