Skip to content

Commit

Permalink
Use new babel in kitchensink
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 3, 2017
1 parent ca7516d commit 482abf2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/react-scripts/fixtures/kitchensink/.babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["react-app"],
"plugins": ["babel-plugin-transform-es2015-modules-commonjs"]
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"dependencies": {
"babel-register": "6.22.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.22.0",
"babel-polyfill": "6.20.0",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.34",
"@babel/polyfill": "7.0.0-beta.34",
"@babel/register": "7.0.0-beta.34",
"chai": "3.5.0",
"jsdom": "9.8.3",
"mocha": "3.2.0",
Expand Down
8 changes: 4 additions & 4 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ E2E_URL="http://localhost:3001" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \
NODE_ENV=development \
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js

# Test "production" environment
E2E_FILE=./build/index.html \
CI=true \
NODE_PATH=src \
NODE_ENV=production \
PUBLIC_URL=http://www.example.org/spa/ \
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js

# ******************************************************************************
# Finally, let's check that everything still works after ejecting.
Expand Down Expand Up @@ -285,15 +285,15 @@ E2E_URL="http://localhost:3002" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \
NODE_ENV=development \
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js

# Test "production" environment
E2E_FILE=./build/index.html \
CI=true \
NODE_ENV=production \
NODE_PATH=src \
PUBLIC_URL=http://www.example.org/spa/ \
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js

# Cleanup
cleanup

0 comments on commit 482abf2

Please sign in to comment.