Antoine Prieëls 26e4911eb2 Use the async version of transform in babel-cli (#6826)
* use the async version of transform in babel-cli

* Modify compile to use async version of transformFile

* Babel-CLI: transform files sequentially

* Remove useless res in callback
2018-01-09 19:17:07 -08:00
..
2017-03-25 21:46:16 -04:00
2018-01-08 11:02:14 -05:00

@babel/cli

Babel command line.

In addition, various entry point scripts live in the top-level package at @babel/cli/bin.

There is a shell-executable utility script, babel-external-helpers.js, and the main Babel cli script, babel.js.

Install

npm install --save-dev @babel/core @babel/cli

Usage

babel script.js

For more in depth documentation see: http://babeljs.io/docs/usage/cli/