Update babel

This commit is contained in:
nndio 2019-02-06 01:59:55 +02:00
parent 6907c48147
commit 818d685ec7
29 changed files with 856 additions and 1715 deletions

14
babel.config.js Executable file
View File

@ -0,0 +1,14 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-flow'],
plugins: [
[
'@babel/plugin-transform-runtime',
{
regenerator: true
}
],
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from'
]
};

View File

@ -7,7 +7,7 @@
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "7.12.3",
"jest": "^23.6.0",
"jest": "^24.1.0",
"lerna": "3.9.0",
"lint-staged": "^8.1.0",
"prettier": "^1.15.3"
@ -30,6 +30,9 @@
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=8.0.0"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --single-quote --write",

View File

@ -1,3 +1,3 @@
{
"presets": ["es2015-loose", "stage-0"]
"presets": ["@babel/preset-env"]
}

View File

@ -33,12 +33,10 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.5",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"babel-loader": "^8.0.5",
"rimraf": "^2.3.4",
"webpack": "^4.27.1",
"webpack-cli": "^3.2.0"

View File

@ -1,3 +1,4 @@
{
"presets": ["es2015", "stage-0", "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"]
}

View File

@ -1,33 +0,0 @@
// IMPORTANT
// ---------
// This is an auto generated file with React CDK.
// Do not modify this file.
// Use `.scripts/user/pretest.js instead`.
require('babel-core/register');
require('babel-polyfill');
// Add jsdom support, which is required for enzyme.
var jsdom = require('jsdom').jsdom;
var exposedProperties = ['window', 'navigator', 'document'];
global.document = jsdom('');
global.window = document.defaultView;
Object.keys(document.defaultView).forEach(property => {
if (typeof global[property] === 'undefined') {
exposedProperties.push(property);
global[property] = document.defaultView[property];
}
});
global.navigator = {
userAgent: 'node.js'
};
process.on('unhandledRejection', function(error) {
console.error('Unhandled Promise Rejection:');
console.error((error && error.stack) || error);
});
require('./user/pretest.js');

View File

@ -28,25 +28,24 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@storybook/addon-actions": "^4.1.4",
"@storybook/addon-info": "^4.1.4",
"@storybook/addon-knobs": "^4.1.4",
"@storybook/addon-options": "^4.1.4",
"@storybook/react": "4.0.9",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.16.0",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.2",
"enzyme-to-json": "^3.1.4",
"git-url-parse": "^7.0.1",
"jest": "^23.6.0",
"jest": "^24.1.0",
"jsdom": "^11.3.0",
"react": "^16.0.0",
"react-addons-test-utils": "^15.6.2",

View File

@ -1,3 +1,3 @@
{
"presets": ["es2015-loose", "stage-0"]
"presets": ["@babel/preset-env"]
}

View File

@ -30,14 +30,12 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^6.2.0",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"babel-loader": "^8.0.5",
"immutable": "3.7.6",
"jest": "^23.6.0",
"jest": "^24.1.0",
"rimraf": "^2.3.4",
"webpack": "^4.27.1",
"webpack-cli": "^3.2.0"

View File

@ -1,16 +1,4 @@
{
"plugins": [
"transform-runtime",
"transform-es3-property-literals",
"transform-es3-member-expression-literals",
"transform-object-rest-spread",
"transform-class-properties"
],
"presets": [[
"env",
{
"loose": true,
"shippedProposals": true
}
], "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -39,18 +39,13 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es3-member-expression-literals": "^6.22.0",
"babel-plugin-transform-es3-property-literals": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.5.0",
"husky": "^0.14.3",
"jest": "^23.6.0",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"jest": "^24.1.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
@ -64,7 +59,6 @@
"react-dom": "^15.0.0 || ^16.0.0"
},
"dependencies": {
"babel-runtime": "^6.6.1",
"prop-types": "^15.5.8",
"react-base16-styling": "^0.5.1"
}

View File

@ -57,7 +57,7 @@
"uuid": "^3.0.1"
},
"devDependencies": {
"jest": "^23.6.0",
"jest": "^24.1.0",
"socketcluster-client": "^14.0.0",
"supertest": "^3.0.0"
}

View File

@ -1,4 +1,4 @@
{
"presets": [ "es2015", "stage-0", "react" ],
"plugins": [ "add-module-exports", "transform-decorators-legacy" ]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -36,17 +36,12 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.1.8",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "^6.22.0",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^2.1.0",
"enzyme": "^3.1.0",
@ -55,7 +50,7 @@
"file-loader": "^3.0.0",
"html-loader": "^0.4.4",
"html-webpack-plugin": "^3.2.0",
"jest": "^23.6.0",
"jest": "^24.1.0",
"raw-loader": "^1.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",

View File

@ -1,15 +1,9 @@
{
"presets": ["es2015", "stage-0", "react"],
"plugins": ["transform-runtime"],
"env": {
"development": {
"plugins": [["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}]]
}
}
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-do-expressions"
]
}

View File

@ -20,15 +20,15 @@
"url": "https://github.com/reduxjs/redux-devtools"
},
"devDependencies": {
"babel": "^6.3.26",
"babel-cli": "^6.4.5",
"babel-core": "^6.4.5",
"babel-loader": "^7.1.5",
"babel-plugin-react-transform": "^2.0.0",
"babel-plugin-transform-runtime": "^6.4.3",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-do-expressions": "^7.2.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"base16": "^1.0.0",
"chokidar": "^1.6.1",
"clean-webpack-plugin": "^1.0.0",

View File

@ -1,3 +1,3 @@
{
"presets": ["es2015-loose", "stage-0"]
"presets": ["@babel/preset-env"]
}

View File

@ -33,13 +33,12 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-core": "^6.3.17",
"babel-loader": "^6.2.0",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-stage-0": "^6.3.13",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"babel-loader": "^8.0.5",
"expect": "^1.6.0",
"jest": "^23.6.0",
"jest": "^24.1.0",
"redux": "^4.0.0",
"rimraf": "^2.3.4",
"rxjs": "^5.0.0-beta.6"

View File

@ -1,3 +1,4 @@
{
"presets": ["es2015-loose", "stage-0", "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"]
}

View File

@ -33,12 +33,13 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.3.15",
"babel-core": "^6.1.20",
"babel-loader": "^6.2.0",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"rimraf": "^2.3.4"
},
"peerDependencies": {

View File

@ -1,3 +1,4 @@
{
"presets": ["es2015-loose", "stage-0", "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -35,14 +35,12 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.11.6",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"clean-webpack-plugin": "^0.1.15",
"css-loader": "^0.26.1",
"enzyme": "^2.6.0",
@ -51,7 +49,7 @@
"export-files-webpack-plugin": "0.0.1",
"file-loader": "^0.10.0",
"html-webpack-plugin": "^2.28.0",
"jest": "^23.6.0",
"jest": "^24.1.0",
"lodash.shuffle": "^4.2.0",
"nyan-progress-webpack-plugin": "^1.1.4",
"react-addons-test-utils": "^15.1.0",

View File

@ -1,13 +1,15 @@
{
"presets": [ ["env", { "modules": "commonjs" }], "react", "flow" ],
"presets": [
"@babel/preset-env", "@babel/preset-react", "@babel/preset-flow"
],
"plugins": [
["transform-runtime", {
"polyfill": false,
["@babel/plugin-transform-runtime", {
"regenerator": true
}],
"transform-class-properties",
"transform-object-rest-spread",
"add-module-exports",
"transform-decorators-legacy"
[
"@babel/plugin-proposal-decorators",
{ "legacy": true }
],
"@babel/plugin-proposal-class-properties"
]
}

View File

@ -21,23 +21,18 @@
"prepublishOnly": "npm run test && npm run clean && npm run build"
},
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-react-transform": "^2.0.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-react": "^6.5.0",
"babel-preset-react-app": "^3.1.2",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.11.6",
"babel-runtime": "^6.23.0",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "1.7.1",
"enzyme-to-json": "^3.3.0",
"jest": "^23.6.0",
"jest": "^24.1.0",
"react-addons-test-utils": "^15.4.0",
"react-dom": "^16.4.0",
"react-test-renderer": "^16.4.0",

View File

@ -1,3 +1,4 @@
{
"presets": ["es2015-loose", "stage-0", "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -33,13 +33,13 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-core": "^6.3.17",
"babel-loader": "^6.2.0",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-react": "6.3.13",
"babel-preset-stage-0": "^6.3.13",
"jest": "^23.6.0",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"jest": "^24.1.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^6.0.0",

View File

@ -1,3 +1,4 @@
{
"presets": ["es2015", "stage-0", "react"]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -19,12 +19,11 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-loader": "^6.4.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"classnames": "^2.1.2",
"raw-loader": "^0.5.1",
"react": "^16.7.0",

2254
yarn.lock

File diff suppressed because it is too large Load Diff