Daniel Tschinder
c8992e4155
Enforce Prettier defaults + also format .babelrc and .json ( #7499 )
...
* .prettierrc: full configuration for Prettier
This way, contributors using different-from-default settings will still
use the correct prettier settings
* Makefile: also lint .babelrc.js
* Makefile: also prettify .json files
* Exclude package.json files and correct build dir
* Add more default options to prettierrc and load it in cli
This avoids prettier looking up the config for each file
* Format json
* Update prettier and eslint and reformat codebase
* Remove obsolete file
* Add comment
2018-03-06 11:40:36 +01:00
Daniel Tschinder
3e95830646
Migrate to jest ( #7455 )
2018-03-03 10:58:19 +01:00
Henry Zhu
0e2a249746
Update to beta.5 with scoped packages 👻 ( #6654 )
...
* Update to beta.5 with scoped packages
* update to released version
* allow node 9 [skip ci]
2017-10-31 19:55:54 -04:00
Logan Smyth
0c2ac9d907
Use a standard .babelignore and babel-register. ( #5555 )
2017-03-27 21:16:09 -04:00
Daniel Tschinder
1dca51f8ab
Enable babel for tests ( #4564 )
...
* Enable babel for tests
This enables babel for tests by using a mocha compiler
It uses the babel config from package.json
Transformed OptionsManager test to es2015 to see if it works
Removed the 5s timeout from cli tests, as the default timeout is already 10s, this should probably fix the timouts on travis that we had in babylon
Also run the cli tests on travis, they were disabled if istanbul active, but istanbul is always active on travis so we were never running this tests.
* ignore scripts directory
* only register for tests
* Set only flag correctly
2016-10-12 10:56:50 +02:00
Sebastian McKenzie
5a8fa4ccf1
add 10s timeout to mocha tests
2015-11-09 17:58:36 -08:00
Sebastian McKenzie
91f9cfb902
remove browser tests
2015-10-05 16:41:32 +01:00
Sebastian McKenzie
582061a9e8
move mocha.opts into test directory
2015-09-01 04:49:42 +01:00
Sebastian McKenzie
3ef9bffcc2
split up babel core into multiple modules
2015-08-11 17:40:59 +01:00
Sebastian McKenzie
14d2625753
switch babylon tests to fixtures
2015-07-25 05:19:32 +01:00
Sebastian McKenzie
2d5d1ceb5c
t
2015-07-13 16:34:43 +01:00
Sebastian McKenzie
7a268c95a5
remove dead files
2015-07-12 12:35:53 +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
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
Sebastian McKenzie
e45dc0fbaf
Merge pull request #1974 from loganfsmyth/hoist-class-inherits
...
Hoist class inheritance call so it runs before prototype use.
2015-07-11 09:59:47 +01:00
cpojer
18380d2aee
Add support for import typeof, fixes #1975
2015-07-11 01:54:25 -07:00
Logan Smyth
19b1032474
Hoist class inheritance call so it runs before prototype use - fixes #1972
2015-07-10 19:51:53 -07:00
Sebastian McKenzie
9805c0387f
reenable travis node 0.10 testing
2015-07-09 19:17:12 +01:00
Sebastian McKenzie
af7510adec
fix some bugs in PathHoister - fixes babel-plugins/babel-plugin-react-constant-elements#1
...
- Don't hoist constant elements to the same function as their original paths function parent.
- Push each violation paths ancestry to the breakOnScopePaths collection to avoid constant hoisting to nested paths.
2015-07-08 11:35:34 +01:00
Sebastian McKenzie
4a36a9fb31
check for functions in util.shouldIgnore - closes #1865 , closes #1859
2015-07-07 11:23:31 +01:00
Sebastian McKenzie
4d25b0d96a
Merge branch 'master' of github.com:babel/babel
2015-07-07 11:12:42 +01:00
Sebastian McKenzie
babc9c90b4
fix tail call recursion on functions with less arguments than parameters - fixes #1938
2015-07-07 11:11:58 +01:00
Sebastian McKenzie
a262e99abd
strip flow directives in flow transformer - fixes #1934
2015-07-07 10:52:43 +01:00
Logan Smyth
b518394a3f
Only special-case for..on/of declaration hoisting - fixes #1929
2015-07-06 21:06:11 -07:00
Sebastian McKenzie
337c51df5c
fixes out of bounds check to default parameter template - #1845 - cc @RReverser
2015-07-06 21:25:33 +01:00
Sebastian McKenzie
0509fb148f
add out of bounds check to default parameter template - addresses #1845 - cc @RReverser
2015-07-06 20:12:10 +01:00
Logan Smyth
cdb8e3aefa
Optimize export-from in System.register - fixes #1722
2015-07-05 11:40:33 -07:00
Logan Smyth
f47d17345c
Ensure _blockHoist is set on function destructuring defaults - fixes #1908
2015-07-05 09:10:09 -07:00
Sebastian McKenzie
64903d0dcf
Merge branch 'master' of github.com:babel/babel
2015-07-04 23:33:33 +02:00
Sebastian McKenzie
1fd0b1f741
delay this assignment when referencing this inside an arrow function pre-bare super in derived class constructors - fixes #1920
2015-07-04 23:32:11 +02:00
Sebastian McKenzie
cda2bfce38
enable do expression tests
2015-07-04 21:51:57 +02:00
Sebastian McKenzie
0e4bb5ee3f
clean up verifyConstructor classes visitor and disallow super.* before super() in derived class constructors - fixes #1921
2015-07-04 21:38:22 +02:00
Conrad Zimmerman
224db29c05
Handle single child when using React inlining
...
Changes optimisation.react.inlineElements to handle a single child as the
value of the `children` property instead of wrapping it with an array.
This matches the behavior of `React.createElement`.
2015-07-03 18:55:38 -04:00
Sebastian McKenzie
1f39114126
Merge branch 'master' into development
2015-07-03 00:07:53 +02:00
Logan Smyth
3f38a83600
Properly regenerate scope for replaced nodes - fixes #1773
2015-07-01 22:06:05 -07:00
Sebastian McKenzie
72771ed439
update escape regex test to use new lodash result
2015-06-30 23:56:47 +01:00
Sebastian McKenzie
336c65fe2c
restructure classes transformer, fix class name inference - #1877
2015-06-30 14:49:04 +01:00
Sebastian McKenzie
092d98fb27
add constructor to body in order that it was supplied in - fixes #1877
2015-06-30 10:10:52 +01:00
Sebastian McKenzie
e55ce575cd
move up template literal simplification logic - fixes #1874
2015-06-29 23:36:06 +01:00
Sebastian McKenzie
0044100e3d
perform function name inference on functions in properties before they're properly visited - fixes #1860
2015-06-29 00:20:47 +01:00
Sebastian McKenzie
54819b94e9
skip flow types when finding rest parameter references
2015-06-26 23:29:09 +01:00
Sebastian McKenzie
50ca6b1018
clean up inType tracking in flow parser plugin
2015-06-26 23:26:32 +01:00
Sebastian McKenzie
a2fb70bae3
fix deprecated return from visitor method api
2015-06-26 15:16:31 +01:00
Sebastian McKenzie
ae067a08b7
switch to mocha dot reporter
2015-06-26 13:23:15 +01:00
Sebastian McKenzie
c0fd4c1f9e
merge es6.parameters.rest and es6.parameters.default transformers
...
This is necessary in order to retain correct function arity and to have
completely correct semantics. Sometimes features are tied together so much
that they would require so much desugaring to retain the correct semantics
that they'd be equivalent to... the normal transpiled output.
2015-06-26 02:20:16 +01:00
Sebastian McKenzie
4c233e88ff
add use strict
2015-06-26 01:09:47 +01:00
Sebastian McKenzie
e4083fbbd7
add support for trailing commas in arrow function parameter lists - fixes #1841
2015-06-26 00:37:33 +01:00
Sebastian McKenzie
1acc71aa4e
fix api module id relative tests
2015-06-25 23:32:43 +01:00
Mark-Simulacrum
b308602098
Use path-exists instead of fs.exists.
...
fs.exists is being deprecated, see: https://github.com/nodejs/io.js/issues/103 .
2015-06-25 12:39:39 -06:00
Sebastian McKenzie
95d830fde0
don't output comma separator for decorator list and output Property decorators - fixes #1811
2015-06-25 12:23:45 +01:00