Logan Smyth
acf509bab5
Upgrade Babel to self-host with beta.46 ( #7784 )
2018-04-27 15:04:37 -07:00
Deven Bansod
f3f0197890
Migrate babel-core tests to use jest-expect ( #7513 )
...
* Used codemods at: https://gist.github.com/devenbansod/03c5cff857661e076cbec72fcb2e7eb3 along with some manual intervention and review
2018-03-10 11:40:28 +01:00
Logan Smyth
8fc8a1f2ee
Use public options API for tests.
2017-11-28 13:25:10 -08:00
Logan Smyth
189c56628a
Replace repeated plugins/preset in top-level config instead of running both.
2017-11-25 18:47:13 -08:00
Logan Smyth
2bfa2eb5cd
Apply option defaults when transforming, not up front.
2017-11-09 12:20:52 -08:00
Logan Smyth
64abf75d1f
Perform option validation up front to avoid repeating assertions.
2017-10-25 15:55:58 -07:00
Logan Smyth
eae76e5b89
Break apart the File class into multiple files and add type definitions.
2017-10-02 13:55:37 -07:00
Sven SAULEAU
0c5fae2faa
Make sure source type is module when parsing .mjs ( #5700 )
...
* feat: force source type module for mjs extension
* style: fix lint
2017-09-12 20:59:00 -07:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Logan Smyth
d7e10a3adc
Misc refactoring of OptionManager.
2017-04-10 10:01:01 -07:00
Logan Smyth
75847306fd
Expose passes as a first-class output of OptionManager.
2017-04-10 10:01:01 -07:00
Logan Smyth
258e82ca13
Expose a function rather than a class from option-manager.
2017-04-10 10:01:01 -07:00
Logan Smyth
86fc4fbc4f
Avoid using OptionManager statics
2017-04-10 10:01:01 -07:00
Logan Smyth
12a2124d16
Move the deeply nested option logic to a toplevel folder.
2017-03-17 00:03:58 -07:00
Logan Smyth
305165eda4
Remove Logger usage from options processing.
2017-03-09 16:13:38 -08:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Daniel Tschinder
6d6cdf6baf
[7.0] Allow presets to be objects ( #5385 )
...
* Allow presets to be objects
* Improve logic to detect preset format
2017-02-28 16:39:08 -05:00
Daniel Tschinder
87ca6150ae
[7.0] Remove bc code from preset handling and preset-es2015 ( #5128 )
...
* Remove bc code from preset handling and preset-es2015
* Add more tests
* Only allow functions for presets
* Fix lint
2017-02-22 14:58:01 +01:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Andrew Levine
9f8ab29213
Change usage of "suite"/"test" in unit-tests to "describe"/"it" ( #4734 )
...
Fixes #4733
2016-10-15 18:45:35 -04:00
Andrew Levine
c0038221d7
Run ESLint on test files, and fix lint errors in test files ( #4732 )
2016-10-15 18:27:48 -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
Kai Cataldo
27ee74ea14
Better error messaging when preset options are given without a corresponding preset ( #4685 )
2016-10-11 16:56:53 +02:00
Daniel Tschinder
46339463bd
Resolve presets with named exports correctly ( #4620 )
2016-09-30 18:27:40 -04:00
Moti Zilberman
e64d86c1eb
If loading a preset fails, show its name/path ( #4506 ) ( #4517 )
2016-09-17 23:01:08 -04:00
Henry Zhu
0916e2d189
Give specific error messages for babel 5 options that were removed in babel 6
2016-02-29 14:34:46 -05:00
Henry Zhu
6425c47537
Show a better error when trying to use a babel 5 plugin
2016-02-17 20:31:49 -05:00