Babel Doctor

Babel Doctor is heavily inspired ripped from the awesome


This content originally appeared on Babel Blog and was authored by Sebastian McKenzie

Babel Doctor is heavily inspired ripped from the awesome Yeoman Doctor by Sindre Sorhus.


babel-doctor has been removed as of v6.18.0 of babel-cli. If anyone needs it we will bring it back as a standalone npm module called babel-doctor.

We launched Babel 6 last week. This was a pretty big change from the previous batteries included Babel and with it came a host of potential environment issues.

In order to combat this we now include a babel-doctor command with the babel-cli that detects common problems with your Babel installation such as:

  • Missing .babelrc.
  • Duplicate Babel core modules
  • Outdated Babel core modules

Usage

First, make sure you have the Babel CLI installed.

Shell
$ npm install -g babel-cli@^6.1.0

Then simply cd into your project directory and run:

Shell
$ babel-doctor

Babel Doctor
Running sanity checks on your system. This may take a few minutes...

✔ Found config at /Users/sebastian/.babelrc
✔ All babel packages appear to be up to date
✔ No duplicate babel packages found

Everything looks all right!


We hope this makes it easier to setup and use Babel in your project.

Happy hacking!


This content originally appeared on Babel Blog and was authored by Sebastian McKenzie


Print Share Comment Cite Upload Translate Updates
APA

Sebastian McKenzie | Sciencx (2015-11-03T10:30:00+00:00) Babel Doctor. Retrieved from https://www.scien.cx/2015/11/03/babel-doctor-2/

MLA
" » Babel Doctor." Sebastian McKenzie | Sciencx - Tuesday November 3, 2015, https://www.scien.cx/2015/11/03/babel-doctor-2/
HARVARD
Sebastian McKenzie | Sciencx Tuesday November 3, 2015 » Babel Doctor., viewed ,<https://www.scien.cx/2015/11/03/babel-doctor-2/>
VANCOUVER
Sebastian McKenzie | Sciencx - » Babel Doctor. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2015/11/03/babel-doctor-2/
CHICAGO
" » Babel Doctor." Sebastian McKenzie | Sciencx - Accessed . https://www.scien.cx/2015/11/03/babel-doctor-2/
IEEE
" » Babel Doctor." Sebastian McKenzie | Sciencx [Online]. Available: https://www.scien.cx/2015/11/03/babel-doctor-2/. [Accessed: ]
rf:citation
» Babel Doctor | Sebastian McKenzie | Sciencx | https://www.scien.cx/2015/11/03/babel-doctor-2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.