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 setup guide for babel6 #78

Open
lukabot opened this issue May 30, 2016 · 2 comments
Open

Update setup guide for babel6 #78

lukabot opened this issue May 30, 2016 · 2 comments

Comments

@lukabot
Copy link

lukabot commented May 30, 2016

First of all, thanks for the great tutorial.

I'm new to babel today, and I was unable to compile the code after following this setup guide.
After googling for a while, I found that babel now needs presets to compile.

So, I suggest to update setup guide to official setup guide.

  1. Install babel as local installation, not global (for project management).
  2. Mention about presets and .babelrc file.

    Adding this line might be better.

    npm install babel-preset-es2015 --save-dev

    echo '{ "presets": ["es2015"] }' > .babelrc
@lukabot
Copy link
Author

lukabot commented May 30, 2016

Opps, some bug here.
tower-of-babel run and tower-of-babel verify does not work with presets.

Could not run: [BABEL] ... Unknown option: .babelrc.presets

Any suggestions?

@yosuke-furukawa
Copy link
Owner

ya, I know the issue. I will fix asap.

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

No branches or pull requests

2 participants