Backport: use preset-env and remove flow-strip-types (#324)
* es2015 -> env. * Remove transform-flow-strip-types plugin.
This commit is contained in:
parent
a3654478df
commit
842d0540a4
@ -58,8 +58,7 @@
|
|||||||
"babel-helper-fixtures": "^6.22.0",
|
"babel-helper-fixtures": "^6.22.0",
|
||||||
"babel-helper-plugin-test-runner": "^6.22.0",
|
"babel-helper-plugin-test-runner": "^6.22.0",
|
||||||
"babel-plugin-istanbul": "^3.1.2",
|
"babel-plugin-istanbul": "^3.1.2",
|
||||||
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
"babel-preset-env": "^1.4.0",
|
||||||
"babel-preset-es2015": "^6.22.0",
|
|
||||||
"babel-register": "^6.23.0",
|
"babel-register": "^6.23.0",
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"codecov": "^1.0.1",
|
"codecov": "^1.0.1",
|
||||||
@ -76,15 +75,7 @@
|
|||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
["env"]
|
||||||
"es2015",
|
|
||||||
{
|
|
||||||
"loose": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"transform-flow-strip-types"
|
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"test": {
|
"test": {
|
||||||
|
|||||||
@ -483,10 +483,6 @@ babel-plugin-syntax-export-extensions@^6.8.0:
|
|||||||
version "6.13.0"
|
version "6.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721"
|
||||||
|
|
||||||
babel-plugin-syntax-flow@^6.18.0:
|
|
||||||
version "6.18.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
|
|
||||||
|
|
||||||
babel-plugin-syntax-function-bind@^6.8.0:
|
babel-plugin-syntax-function-bind@^6.8.0:
|
||||||
version "6.13.0"
|
version "6.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz#48c495f177bdf31a981e732f55adc0bdd2601f46"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz#48c495f177bdf31a981e732f55adc0bdd2601f46"
|
||||||
@ -667,7 +663,7 @@ babel-plugin-transform-es2015-modules-systemjs@^6.22.0, babel-plugin-transform-e
|
|||||||
babel-runtime "^6.22.0"
|
babel-runtime "^6.22.0"
|
||||||
babel-template "^6.23.0"
|
babel-template "^6.23.0"
|
||||||
|
|
||||||
babel-plugin-transform-es2015-modules-umd@^6.22.0, babel-plugin-transform-es2015-modules-umd@^6.23.0:
|
babel-plugin-transform-es2015-modules-umd@^6.23.0:
|
||||||
version "6.23.0"
|
version "6.23.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.23.0.tgz#8d284ae2e19ed8fe21d2b1b26d6e7e0fcd94f0f1"
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.23.0.tgz#8d284ae2e19ed8fe21d2b1b26d6e7e0fcd94f0f1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -757,13 +753,6 @@ babel-plugin-transform-export-extensions@^6.22.0:
|
|||||||
babel-plugin-syntax-export-extensions "^6.8.0"
|
babel-plugin-syntax-export-extensions "^6.8.0"
|
||||||
babel-runtime "^6.22.0"
|
babel-runtime "^6.22.0"
|
||||||
|
|
||||||
babel-plugin-transform-flow-strip-types@^6.22.0:
|
|
||||||
version "6.22.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
|
|
||||||
dependencies:
|
|
||||||
babel-plugin-syntax-flow "^6.18.0"
|
|
||||||
babel-runtime "^6.22.0"
|
|
||||||
|
|
||||||
babel-plugin-transform-function-bind@^6.22.0:
|
babel-plugin-transform-function-bind@^6.22.0:
|
||||||
version "6.22.0"
|
version "6.22.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz#c6fb8e96ac296a310b8cf8ea401462407ddf6a97"
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz#c6fb8e96ac296a310b8cf8ea401462407ddf6a97"
|
||||||
@ -799,34 +788,39 @@ babel-polyfill@^6.23.0, babel-polyfill@latest:
|
|||||||
core-js "^2.4.0"
|
core-js "^2.4.0"
|
||||||
regenerator-runtime "^0.10.0"
|
regenerator-runtime "^0.10.0"
|
||||||
|
|
||||||
babel-preset-es2015@^6.22.0:
|
babel-preset-env@^1.4.0:
|
||||||
version "6.22.0"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.22.0.tgz#af5a98ecb35eb8af764ad8a5a05eb36dc4386835"
|
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a"
|
||||||
dependencies:
|
dependencies:
|
||||||
babel-plugin-check-es2015-constants "^6.22.0"
|
babel-plugin-check-es2015-constants "^6.22.0"
|
||||||
|
babel-plugin-syntax-trailing-function-commas "^6.22.0"
|
||||||
|
babel-plugin-transform-async-to-generator "^6.22.0"
|
||||||
babel-plugin-transform-es2015-arrow-functions "^6.22.0"
|
babel-plugin-transform-es2015-arrow-functions "^6.22.0"
|
||||||
babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
|
babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
|
||||||
babel-plugin-transform-es2015-block-scoping "^6.22.0"
|
babel-plugin-transform-es2015-block-scoping "^6.23.0"
|
||||||
babel-plugin-transform-es2015-classes "^6.22.0"
|
babel-plugin-transform-es2015-classes "^6.23.0"
|
||||||
babel-plugin-transform-es2015-computed-properties "^6.22.0"
|
babel-plugin-transform-es2015-computed-properties "^6.22.0"
|
||||||
babel-plugin-transform-es2015-destructuring "^6.22.0"
|
babel-plugin-transform-es2015-destructuring "^6.23.0"
|
||||||
babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
|
babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
|
||||||
babel-plugin-transform-es2015-for-of "^6.22.0"
|
babel-plugin-transform-es2015-for-of "^6.23.0"
|
||||||
babel-plugin-transform-es2015-function-name "^6.22.0"
|
babel-plugin-transform-es2015-function-name "^6.22.0"
|
||||||
babel-plugin-transform-es2015-literals "^6.22.0"
|
babel-plugin-transform-es2015-literals "^6.22.0"
|
||||||
babel-plugin-transform-es2015-modules-amd "^6.22.0"
|
babel-plugin-transform-es2015-modules-amd "^6.22.0"
|
||||||
babel-plugin-transform-es2015-modules-commonjs "^6.22.0"
|
babel-plugin-transform-es2015-modules-commonjs "^6.23.0"
|
||||||
babel-plugin-transform-es2015-modules-systemjs "^6.22.0"
|
babel-plugin-transform-es2015-modules-systemjs "^6.23.0"
|
||||||
babel-plugin-transform-es2015-modules-umd "^6.22.0"
|
babel-plugin-transform-es2015-modules-umd "^6.23.0"
|
||||||
babel-plugin-transform-es2015-object-super "^6.22.0"
|
babel-plugin-transform-es2015-object-super "^6.22.0"
|
||||||
babel-plugin-transform-es2015-parameters "^6.22.0"
|
babel-plugin-transform-es2015-parameters "^6.23.0"
|
||||||
babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
|
babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
|
||||||
babel-plugin-transform-es2015-spread "^6.22.0"
|
babel-plugin-transform-es2015-spread "^6.22.0"
|
||||||
babel-plugin-transform-es2015-sticky-regex "^6.22.0"
|
babel-plugin-transform-es2015-sticky-regex "^6.22.0"
|
||||||
babel-plugin-transform-es2015-template-literals "^6.22.0"
|
babel-plugin-transform-es2015-template-literals "^6.22.0"
|
||||||
babel-plugin-transform-es2015-typeof-symbol "^6.22.0"
|
babel-plugin-transform-es2015-typeof-symbol "^6.23.0"
|
||||||
babel-plugin-transform-es2015-unicode-regex "^6.22.0"
|
babel-plugin-transform-es2015-unicode-regex "^6.22.0"
|
||||||
|
babel-plugin-transform-exponentiation-operator "^6.22.0"
|
||||||
babel-plugin-transform-regenerator "^6.22.0"
|
babel-plugin-transform-regenerator "^6.22.0"
|
||||||
|
browserslist "^1.4.0"
|
||||||
|
invariant "^2.2.2"
|
||||||
|
|
||||||
babel-preset-es2015@latest:
|
babel-preset-es2015@latest:
|
||||||
version "6.24.0"
|
version "6.24.0"
|
||||||
@ -1036,6 +1030,13 @@ browser-stdout@1.3.0:
|
|||||||
version "1.3.0"
|
version "1.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
|
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
|
||||||
|
|
||||||
|
browserslist@^1.4.0:
|
||||||
|
version "1.7.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9"
|
||||||
|
dependencies:
|
||||||
|
caniuse-db "^1.0.30000639"
|
||||||
|
electron-to-chromium "^1.2.7"
|
||||||
|
|
||||||
browserslist@^2.1.2:
|
browserslist@^2.1.2:
|
||||||
version "2.1.2"
|
version "2.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.1.2.tgz#a9dd0791342dab019861c2dd1cd0fd5d83230d39"
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.1.2.tgz#a9dd0791342dab019861c2dd1cd0fd5d83230d39"
|
||||||
@ -1077,6 +1078,10 @@ camelcase@^3.0.0:
|
|||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
|
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
|
||||||
|
|
||||||
|
caniuse-db@^1.0.30000639:
|
||||||
|
version "1.0.30000670"
|
||||||
|
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000670.tgz#90d33b79e3090e25829c311113c56d6b1788bf43"
|
||||||
|
|
||||||
caniuse-lite@^1.0.30000665:
|
caniuse-lite@^1.0.30000665:
|
||||||
version "1.0.30000666"
|
version "1.0.30000666"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000666.tgz#831b63247e24fa408e20c6c546c4173d27c5a1a5"
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000666.tgz#831b63247e24fa408e20c6c546c4173d27c5a1a5"
|
||||||
@ -1474,10 +1479,6 @@ electron-to-chromium@^1.3.11:
|
|||||||
version "1.3.11"
|
version "1.3.11"
|
||||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.11.tgz#744761df1d67b492b322ce9aa0aba5393260eb61"
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.11.tgz#744761df1d67b492b322ce9aa0aba5393260eb61"
|
||||||
|
|
||||||
electron-to-chromium@^1.3.9:
|
|
||||||
version "1.3.9"
|
|
||||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.9.tgz#db1cba2a26aebcca2f7f5b8b034554468609157d"
|
|
||||||
|
|
||||||
entities@1.0:
|
entities@1.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/entities/-/entities-1.0.0.tgz#b2987aa3821347fcde642b24fdfc9e4fb712bf26"
|
resolved "https://registry.yarnpkg.com/entities/-/entities-1.0.0.tgz#b2987aa3821347fcde642b24fdfc9e4fb712bf26"
|
||||||
@ -1636,8 +1637,8 @@ eslint-config-babel@^6.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a"
|
resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a"
|
||||||
|
|
||||||
eslint-plugin-flowtype@^2.29.1:
|
eslint-plugin-flowtype@^2.29.1:
|
||||||
version "2.29.2"
|
version "2.33.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.29.2.tgz#91b4fde0400c4c37ca4440b43bdbc95fc405bea9"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.33.0.tgz#b2783814ed2ddcf729953b8f65ff73c90cabee4b"
|
||||||
dependencies:
|
dependencies:
|
||||||
lodash "^4.15.0"
|
lodash "^4.15.0"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user