Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

11 changes: 2 additions & 9 deletions _inc/client/state/at-a-glance/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/connection/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/dev-version/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/initial-state/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/jetpack-notices/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/jumpstart/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/modules/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
7 changes: 1 addition & 6 deletions _inc/client/state/publicize/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';

export default reducer;
export * from './reducer';
11 changes: 2 additions & 9 deletions _inc/client/state/rewind/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/search/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/settings/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/site-verify/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/site/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/site/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
11 changes: 2 additions & 9 deletions _inc/client/state/tracking/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
/**
* Internal dependencies
*/
import * as reducer from './reducer';
import * as actions from './actions';

const all = { ...reducer, ...actions };

export default all;
export * from './reducer';
export * from './actions';
22 changes: 22 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const config = {
presets: [
[
'@babel/env',
{
corejs: 2,
modules: 'commonjs',
useBuiltIns: 'entry',
},
],
'@babel/react'
],
plugins: [
'@babel/proposal-class-properties',
'@babel/transform-runtime',
'@babel/transform-member-expression-literals',
'@babel/transform-property-literals',
'@babel/transform-reserved-words',
]
};

module.exports = config;
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@
"@automattic/custom-colors-loader": "automattic/custom-colors-loader",
"@automattic/jetpack-blocks": "15.0.0",
"@wordpress/browserslist-config": "2.3.0",
"babel-core": "6.26.3",
"babel-eslint": "10.0.1",
"babel-loader": "7.1.5",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-transform-es3-member-expression-literals": "6.22.0",
"babel-plugin-transform-es3-property-literals": "6.22.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-1": "6.24.1",
"babel-runtime": "6.26.0",
"bounding-client-rect": "1.0.5",
"classnames": "2.2.6",
"click-outside": "2.0.2",
Expand Down Expand Up @@ -147,7 +134,18 @@
"whatwg-fetch": "1.1.1"
},
"devDependencies": {
"babel-register": "6.26.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-member-expression-literals": "^7.0.0",
"@babel/plugin-transform-property-literals": "^7.0.0",
"@babel/plugin-transform-reserved-words": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.0.0",
"babel-eslint": "^9.0.0",
"babel-loader": "8.0.4",
"chai": "4.2.0",
"commander": "2.19.0",
"danger": "7.0.16",
Expand Down
1 change: 0 additions & 1 deletion tests/boot-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require( 'babel-core/register' );
const Chai = require( 'chai' ),
sinonChai = require( 'sinon-chai' ),
sinon = require( 'sinon' ),
Expand Down
5 changes: 1 addition & 4 deletions tests/runner.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/usr/bin/env node

require( 'babel-register' )( {
ignore: /\/node_modules\/(?!@automattic\/dops-components\/)/
} );

require( '@babel/register' );
const program = require( 'commander' ),
glob = require( 'glob' ),
Mocha = require( 'mocha' ),
Expand Down
15 changes: 1 addition & 14 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,7 @@ const webpackConfig = {
rules: [
{
test: /\.jsx?$/,
use: [
{
loader: 'babel-loader',
options: {
presets: [ 'es2015', 'stage-1', 'react' ],
plugins: [
'transform-runtime',
'add-module-exports',
'transform-es3-member-expression-literals',
'transform-export-extensions'
]
}
},
],
loader: 'babel-loader',
// include both typical npm-linked locations and default module
// locations to handle both cases
include: [
Expand Down
Loading