Daniel Tschinder ff78fb19f7 Only set options in cli if different from default (#4507)
* CLI: Only set options if different from default 

Currently default values (like comments: true) will be set always for the transform.
This behaviour dos not allow for setting this options from babelrc as the default would always have precedence.

* Add new tests for comments
Also ensure that the babelrc in the fixture folder is copied over to the
working directory during tests
2016-09-13 08:25:08 -04:00
..
2015-11-03 10:04:20 +00:00
2015-07-12 12:51:20 +01:00
2015-10-30 23:45:42 +00:00
2015-10-29 17:51:24 +00:00
2016-08-24 17:40:46 -06:00

babel-cli

Babel command line.

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

There are some shell-executable utility scripts, babel-doctor.js, babel-external-helpers.js and babel-node.js, and the main Babel cli script, babel.js.

Install

$ npm install babel-cli

Usage

$ babel script.js

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