Skip to content

Commit

Permalink
update to Babel v7 (#1048)
Browse files Browse the repository at this point in the history
update to Babel v7
  • Loading branch information
taymoork2 committed Jan 27, 2020
2 parents c12b3ee + d778999 commit 09ad508
Show file tree
Hide file tree
Showing 58 changed files with 20,636 additions and 33,608 deletions.
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

5 changes: 3 additions & 2 deletions .circleci/config.yml
Expand Up @@ -63,9 +63,10 @@ jobs:
command: npm run eslint -- --format junit -o reports/junit/js-lint-results.xml
- run:
name: Run all Jest test suites
command: npm run jest -- --ci -i --testResultsProcessor="jest-junit"
command: npm run jest -- --ci -i --reporters="jest-junit"
environment:
JEST_JUNIT_OUTPUT: reports/junit/jest/js-jest-results.xml
JEST_JUNIT_OUTPUT_NAME: js-jest-results.xml
JEST_JUNIT_OUTPUT_DIR: reports/junit/jest
- store_test_results:
path: reports/junit
- store_artifacts:
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
@@ -1,4 +1,5 @@
module.exports = {
parser: 'babel-eslint',
extends: '@webex/eslint-config-react',
env: {
jest: true,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ tmp.*
reports/*
.python-version
.cache
coverage/
61 changes: 61 additions & 0 deletions babel.config.js
@@ -0,0 +1,61 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: [
'last 2 Chrome major versions',
'last 1 ChromeAndroid major versions',
'last 2 Firefox major versions',
'last 1 FirefoxAndroid major versions',
'last 2 Safari major versions',
'last 3 iOS major versions',
'last 2 Edge major versions',
'last 1 Samsung versions',
'ie >= 11'
]
}
],
'@babel/preset-react'
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: 2
}
],
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-object-rest-spread',
'lodash'
],
env: {
development: {
plugins: [
[
'react-transform',
{
transforms: [
{
transform: 'react-transform-hmr',
imports: ['react'],
locals: ['module']
}
]
}
]
]
},
test: {
retainLines: true,
sourceMaps: 'inline'
}
}
};
1 change: 0 additions & 1 deletion jest.config.json
Expand Up @@ -3,7 +3,6 @@
"<rootDir>/packages/node_modules/"
],
"testPathIgnorePatterns": ["<rootDir>/node_modules/"],
"testURL": "http://localhost",
"transformIgnorePatterns": ["<rootDir>/node_modules/"],
"moduleNameMapper": {
"^.+\\.(css|scss|less)$": "identity-obj-proxy",
Expand Down

0 comments on commit 09ad508

Please sign in to comment.