Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Logan Smyth
9843c87573
Fix block statement code style. ( #3493 )
2016-05-02 21:15:37 -04:00
Logan Smyth
d221e21102
Handle mappings with no source when using CLI file.
2016-04-07 09:34:43 -07:00
Anna Henningsen
bd99179abc
Make sure input to path.{dir,base}name is a string
...
Since nodejs/node@08085c49b6 , which will be part of Node.js v6.0,
functions from the `path` core module (like `dirname`) will require
their input to be a string.
Currently, at some points in the code they might be called
with `undefined`; This patch adds `… || ""` so that the input
is always a string.
For `path.dirname` in the babel-core file, this does not change
behaviour, since
`path.dirname(undefined) === path.dirname("") === "."` (where the
first expression is only defined for Node.js ≤ v5.x).
For `path.basename`, this changes the return value, since
`path.basename(undefined) === "undefined"` (on Node.js ≤ v5.x), but
`path.basename("") === ""`. However, it seems reasonable to assume
that, due to the trailing expression in
`path.basename(…) || "stdout"`, the current behaviour is not actually
the intended one.
There are possibly more places in the code base where similar changes
may be neccessary; However, these suffice to make the tests pass
and un-break the build of at least one external project when using
the current Node.js master branch.
2016-03-28 15:31:38 +02:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Sam Goldman
2827ff6b01
Remove flow
2016-03-01 22:33:30 -08:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Jordan Klassen
89b20c6562
Fix typo: sorucemap -> sourcemap
2016-02-13 12:35:45 -08:00
Joshua Peek
005c4cb7a8
Show specific error message when chokidar can't be loaded
2016-02-01 19:24:08 -08:00
Joshua Peek
0878685a5a
Defer requiring chokidar dependency until --watch flag is passed
2016-02-01 17:03:13 -08:00
Stefan Kleeschulte
f9bab3a25c
Added handling of "--nolazy" flag
...
See https://phabricator.babeljs.io/T6897
2015-12-29 06:43:46 +01:00
Henry Zhu
d06cfe63c2
eslint: add space-after-keywords
2015-12-06 11:30:07 -05:00
Evgeny Kruglov
a43a60e5b8
Make babel-cli watching only given files and extensions. Use --only, --ignore and --extensions while process filenames with --out-file option.
2015-11-16 23:43:14 +03:00
James Kyle
cd11f1e4f5
double quotes
2015-11-09 15:59:43 -08:00
James Kyle
0f90b6eaf2
Add link to npm upgrade guide on windows. Re: 1c3b4aa410 (commitcomment-14211658)
2015-11-08 15:35:14 -08:00
Sebastian McKenzie
5f732d1c02
ignore babel-runtime version mismatch in babel-doctor - fixes #2915
2015-11-08 06:43:32 -08:00
Sebastian McKenzie
1a996cdcc7
move babel-register import down
2015-11-08 06:26:31 -08:00
Sebastian McKenzie
3076063d47
move babel/register into a separate package
2015-11-08 04:05:13 -08:00
Sebastian McKenzie
1c3b4aa410
add npm check to babel-doctor
2015-11-03 19:13:46 +00:00
Sebastian McKenzie
dd76272fb1
fix source map merging - closes #2522 , fixes #2336
2015-11-03 14:24:36 +00:00
Sebastian McKenzie
9110cbfbc8
stop looking for configs in babel-doctor when we get to the root
2015-11-03 10:20:57 +00:00
Sebastian McKenzie
a31d211e2e
remove unused imports
2015-11-03 10:05:39 +00:00
Sebastian McKenzie
5ee8f7568b
add babel-doctor
2015-11-03 10:04:20 +00:00
Sebastian McKenzie
ae7d5367f1
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
6568aaa175
add babel-polyfill to CLI
2015-10-05 16:39:16 +01:00
Sebastian McKenzie
c99a179401
var -> let
2015-09-18 18:45:55 +01:00
Sebastian McKenzie
b1648fb339
switch babel-node binary to use v8 flags
2015-09-18 18:40:46 +01:00
Sebastian McKenzie
5dadb67a1a
remove transformers and module formatters from $ babel --help
2015-09-15 06:33:50 +01:00
Sebastian McKenzie
95e36e10be
update babel-node with plugins and presets option
2015-09-15 06:10:17 +01:00
Sebastian McKenzie
a4a347b4f0
Merge branch 'master' into development
...
Conflicts:
packages/babel/src/generation/generators/flow.js
packages/babel/src/generation/generators/types.js
packages/babel/src/transformation/transformers/es6/for-of.js
packages/babel/src/traversal/path/inference/inferers.js
packages/babel/src/types/index.js
packages/babel/src/util.js
packages/babel/test/util.js
2015-08-15 19:50:34 -04:00
Henry Zhu
8c98386434
update eslint, babel-eslint, fix unused vars
2015-08-15 19:36:54 -04:00
Sebastian McKenzie
34bc8b0aea
disallow let and modules in babel-node REPL
2015-08-09 20:37:18 +01:00
Sebastian McKenzie
8596db3bac
fix git exec commands in babel-plugin
2015-08-04 01:30:53 +01:00
Darío Javier Cravero
79d70d85db
Fix typo on babel-plugin publish: verison x version
2015-08-02 22:37:47 +01:00
Sebastian McKenzie
c4e43bdeea
add error name to babel-cli syntax errors
2015-07-31 12:48:52 +01:00
Sebastian McKenzie
f5d9427153
only output code frame and message on syntax errors in CLI - fixes #1971
2015-07-31 02:19:06 +01:00
Sebastian McKenzie
5990785ab1
fix bug where files that babel can compile weren't being written when ignored with the --copy-files flag
2015-07-28 20:04:32 +01:00
Sebastian McKenzie
8e63ef162c
switch function variables to declarations
2015-07-26 21:48:09 +01:00
Sebastian McKenzie
d2dc5e7149
add LICENSE file to babel-plugin
2015-07-26 21:48:01 +01:00
Sebastian McKenzie
9cb5006136
fix broken imports and test newlines
2015-07-24 21:15:27 +01:00
Sebastian McKenzie
07e1ce8bf4
convert CLI imports to ES6
2015-07-24 21:10:11 +01:00
Sebastian McKenzie
b20b6adf06
fix babel-plugin build hanging
2015-07-24 21:09:16 +01:00
Sebastian McKenzie
e294b76a06
add extensions to babel-cli bin files
2015-07-14 17:14:10 +01:00
Sebastian McKenzie
f9498d7a2d
Merge branch 'master' into top-secret
...
# Conflicts:
# packages/babylon/src/options.js
# src/acorn/plugins/flow.js
# src/acorn/src/util.js
2015-07-11 21:04:33 +01:00
Sebastian McKenzie
a226641631
more architectural changes
2015-07-11 20:56:26 +01:00
Sebastian McKenzie
fedf894904
Begin transition of Babel to a more scalable architecture, async flow to allow for RPC and better build system for multiple packages
2015-07-11 12:39:54 +01:00