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

Add ES2015 support to CLI #23

Closed
wants to merge 20 commits into from
Closed

Add ES2015 support to CLI #23

wants to merge 20 commits into from

Conversation

andrepolischuk
Copy link
Contributor

Fix #20

@andrepolischuk
Copy link
Contributor Author

I have no idea why execFile failed in travis

t.plan(3);

execFile('./cli.js', ['test/es2015.js'], {
cwd: __dirname
Copy link
Member

Choose a reason for hiding this comment

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

cwd: path.resolve(__dirname, '..')

@sindresorhus
Copy link
Member

Awesome! Thanks for working on this :)

Would you mind adding something about it to the readme too?

@sindresorhus
Copy link
Member

Why did you remove the test? Can you fix the merge conflict?

var updateNotifier = require('update-notifier');

try {
require(resolveFrom('.', 'babel/register'));
} catch (e) {
Copy link
Member

Choose a reason for hiding this comment

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

} catch (err) {

@andrepolischuk
Copy link
Contributor Author

I will fix

@andrepolischuk
Copy link
Contributor Author

@sindresorhus I fixed conflicts

@sindresorhus
Copy link
Member

Can you add back the test? We need a test to make sure it's working ok.

var updateNotifier = require('update-notifier');

try {
require(resolveFrom('.', 'babel/register'));
Copy link
Member

Choose a reason for hiding this comment

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

This should also be babel-core.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, should probably do both, in case users use plain babel.

require(resolveFrom('.', 'babel-core/register') || resolveFrom('.', 'babel/register'));

@sindresorhus
Copy link
Member

Looks good. Thank you @andrepolischuk :)

sindresorhus added a commit that referenced this pull request Sep 6, 2015
@andrepolischuk
Copy link
Contributor Author

Thank you for review and comments

@sindresorhus
Copy link
Member

🍻

@andrepolischuk andrepolischuk deleted the es2015 branch September 6, 2015 13:23
sindresorhus pushed a commit that referenced this pull request Sep 8, 2015
sindresorhus added a commit that referenced this pull request Sep 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants