Huáng Jùnliàng
53af9e8b7a
fix: allow the process to exit naturally ( #10400 )
2019-09-11 12:24:44 +02:00
Huáng Jùnliàng
f08062b1de
chore: fix ESLint errors ( #10278 )
2019-07-29 10:14:11 -05:00
Letladi Sebesho
4d12c8971b
added flow to babel cli ( #10244 )
...
* added flow to babel cli
* added 'SourceMapGenerator' as a argument to 'fromObject'
2019-07-25 09:59:41 +02:00
cphamlet
116ca22def
Minor typo for -f flag in cli ( #9201 )
2018-12-17 19:29:23 -08:00
Veaceslav Cotruta
2bf8dde782
Propagates the extensions overrides provided by CLI during files walk ( #8668 )
...
* Propagates the extensions overrides provided by CLI during files walk
* Adds tests for issue #7620 , PR #8668
2018-11-29 18:57:27 -08:00
0xflotus
9d0dcedb2b
fixed "source map" formatting in comment ( #8878 ) [skip ci]
2018-10-20 00:51:46 +02:00
Logan Smyth
3b0f9a9f1e
Delete undefined options so we handle old core versions with new CLI versions. ( #8728 )
2018-09-19 08:56:40 -07:00
Logan Smyth
bd0c62dc0c
Allow users to choose how the configuration root is selected. ( #8660 )
2018-09-15 13:03:46 -07:00
Logan Smyth
7273cf8fe5
Fix a linting error.
2018-09-07 16:09:25 -07:00
Aaron Ang
dad55ef1d6
Test babel-cli --source-maps and errors ( #5377 )
2018-09-07 15:30:24 -07:00
Logan Smyth
90bebe7186
Pass the caller.name option in Babel's own callers.
2018-08-20 10:27:54 -07:00
Jan Schmidle
cb51704745
Babel cli fix recursion in file mode ( #8418 )
...
* added test case
* remove unnessecary parameter
* check for type directory as well in readRecursive filter
2018-08-03 09:06:27 -07:00
John Buffington
236bd9309c
remove emojis from cli output ( #8243 ) ( #8250 )
2018-07-02 09:34:55 +02:00
Soumya Himanish Mohapatra
cb79473499
remove regression to support output of full directory hierarchy with --out-dir ( #8189 )
...
* remove regression to support output of full directory hierarchy with --out-dir
* add mkdirp to package.json
2018-06-18 21:19:46 -07:00
Logan Smyth
21b9b2e42d
Avoid a race condition in CLI directory creation. ( #8082 )
2018-05-30 10:35:08 -07:00
Logan Smyth
8ff675ad69
Refactor CLI to use promises/async fns.
2018-05-14 23:07:50 -07:00
Logan Smyth
41ca312545
Define a clear separation between Babel and CLI options.
2018-05-14 22:03:47 -07:00
Logan Smyth
df1afa3160
Fix watch bug with output-dir paths. ( #7875 )
2018-05-13 08:54:04 -05:00
Justin Ridgewell
2afe9404fe
Use Object Spread Syntax ( #7777 )
...
* Use Object Spread Syntax
* Nits
2018-04-23 21:44:27 -04:00
Logan Smyth
485e37fcb0
Support a babel.config.fs file in a 'root' directory.
2018-04-20 17:00:53 -07:00
Daniel Tschinder
f0d681a238
Remove obsolete max-len eslint rule and reformat some stuff to fit ( #7602 )
2018-03-20 08:51:47 -05:00
Logan Smyth
b5e6536f26
Remove the sourceMapTarget option from core and implement it in babel-cli. ( #7500 )
2018-03-09 14:14:25 -08:00
Raja Sekar
50b9fbb570
empty src dir error fix - fixes #7375
2018-03-05 17:46:38 -08:00
Logan Smyth
212058148c
Require users to pass a filename, or specify --no-babelrc when using CLI with stdin. ( #7461 )
2018-03-03 12:29:11 -08:00
Michał Pierzchała
cc6e739f15
Add a brief summary to CLI's build output ( #7439 )
...
* 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
2018-03-03 13:29:26 +01:00
Vojtěch Štěpančík
88a0f52230
Fix CLI compilation callback calling ( #7366 )
2018-02-12 08:10:35 -05:00
Tauyekel Kunzhol
2254ed45d2
[Bug fix] Reaching maximum calls stack when copying large number of non-js files in babel-cli ( #7320 )
...
Maximum call stack occurs when you try to copy large number of non-js files using `babel-cli@7.0.0-beta.38` or `babel-cli@7.0.0-beta.39`
2018-02-02 20:56:57 -08:00
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
Logan Smyth
aa2d415507
Expose the envName as a programmatic and CLI option.
2017-11-15 11:24:39 -08:00
Logan Smyth
0a2a0bb254
Remove the relative babel-core option.
2017-10-25 15:55:57 -07:00
Mateusz Burzyński
859ea4b175
Scoped: updated numerous docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Logan Smyth
c1df126b83
Remove wrap function and calculate code frames earlier.
2017-10-02 13:48:02 -07:00
Brian Ng
9cd4716cb4
Add --include-dotfiles option to babel-cli ( #6232 )
2017-10-02 08:55:53 -05:00
Pranav Prakash
2374062bbd
Remove babel-node from babel-cli ( #6251 )
...
* 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
2017-09-23 11:25:27 -07:00
Laurin Quast
8742012b5e
Add --keep-file-extension option to babel-cli ( #6221 )
...
* Add --keep-module-extension option to babel-cli
* Rename keep-module-extension option to keep-file-extension; Change option to preserve all file extensions
2017-09-11 18:06:44 -04:00
Lukas Geiger
b6467a68ca
Add option to define output directory relative to the input ( #5421 )
...
* Fix output directory if filename is given
* Add test for relative output path
* Add option to define output dir relative to input
* Add tests for --copy-files
* Test error handling for wrong arguments
2017-09-09 20:38:06 -04:00
Zev Isert
2dd03e3ee9
Allow NodeJS v8.4 experimental HTTP2 ( #6175 )
...
* Allow NodeJS v8.4 experimental HTTP2
Native NodeJS HTTP/2 support experimental though, so might not be worth merging this
* Linter picked up on a line with only spaces
Removed the spaces
2017-09-02 00:42:45 +02:00
Justin Ridgewell
f7109658f9
Added --delete-dir-on-start option for babel ( #6187 )
...
* added --delete-dir-on-start option
added --delete-dir-on-start-option to delete dir on start of compilation to remove deleted files from the orignial files from the --out-dir
* added option --delete-dir-on-start
added --delete-dir-on-start that option will delete the --out-dir before the compilation of code to remove the deleted files from the source from the out directory
* added --delete-dir-on-start option
added --delete-dir-on-start-option to delete dir on start of compilation to remove deleted files from the orignial files from the --out-dir
* bug removed deleting the correct dir
in the previous code, the source dir was deleted each time rather than deleting the out dir
* Remove shorthand
* Prevent babel-cli option from reaching babel-core
* Lint
2017-09-01 17:45:13 -04:00
Bryan Wain
63baaa7148
add --config-file option to CLI to pass in .babelrc location ( #6133 )
2017-08-22 13:58:24 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
bill-improbableio
851d2cb6e0
Pass SIGINT signals to the spawned child process ( #5861 )
...
* Pass SIGINT signals down to the spawned child
* Kill process with correct signal
* Fix lint issues
* Fix exit for outer process
2017-06-24 19:04:53 -04:00
Henry Zhu
4595729cbb
fix issue as a result of refactor ( #5867 )
2017-06-17 16:01:33 -04:00
noinkling
517ecdae65
Allow --inspect-brk option to be used with babel-node
2017-05-28 18:08:04 +12:00
Bradley Farias
7ca81700f7
add .mjs to list of well known extensions
...
this is to conform to the plan of the Node.js EP
2017-05-01 09:43:49 -07:00
Logan Smyth
39c862c195
Make only/ignore relative to cwd/config file and move only/ignore checking all to core. ( #5487 )
...
* Make only/ignore relative to cwd/config file and move only/ignore checking all to core.
2017-03-16 23:22:43 -07:00
Logan Smyth
4f72232ca9
Move option parsing to babel-cli.
2017-03-13 11:06:46 -07:00
Logan Smyth
2c564a6973
Move babel config descriptions to babel-cli.
2017-03-13 00:06:01 -07:00
Logan Smyth
0c0f090a98
Get rid of circular dependencies in babel cli script.
2017-03-13 00:00:56 -07:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00