* prevent ignored files in out dir
* added includeIgnore cli option
* Help text change
* Update packages/babel-cli/src/babel/options.js
Copy review.
Co-Authored-By: Brian Ng <bng412@gmail.com>
* review comments
* throw error if copyIgnored is used without ignore flag
* check for ignored files
* duplicate pathToPattern fn in babel/cli
* change implementation
* removed ignore option from cliOption
* added test case with ignore in config
* added test case with ignore in config
* review
Co-authored-by: Brian Ng <bng412@gmail.com>
* Add --use-file-extension option to babel-cli
* refactor file extension logic
use existing methods from path module
* Rename use-file-extension -> out-file-extension
* add error message if bot keep- and out-file-extension is used
* add test for error when mixing --keep- and --out-file-extension
* poke travis
* grammar correction of an option description
(missed in #10589)
* changed description to be consistent with others
Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
* ran prettier
* Make dir for babel --out-file
Currently there's unexpected regression after upgrade from babel 6.
On creating file with any depth like dist/index.js the error about
not existing directory is thrown.
In this diff I modified babel-cli to create deep directory for out-file
command.
I also replaced `mkdirp` with more supported `make-dir` package which
also have official promise support.
* Fix test
* feat(babel-cli): add a brief summary to build output
* address feedback
* further adjustments
* Use quiet output as default, add --verbose
* fix tests
* remove verbose alias
* 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
* Remove babel-node from babel-cli
* Use new Array instead of Array for V8 optimization
* Remove extraneous use strict clauses
* Require babel-node in babel-cli
* Remove babel-node from babel-cli
* Require babel-node in babel-cli
* Remove babel-node executable from babel-cli
* Clean up babel-node from package.json
* Add --keep-module-extension option to babel-cli
* Rename keep-module-extension option to keep-file-extension; Change option to preserve all file extensions