Skip to content

Commit

Permalink
[major] move to react 16 exclusively (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 authored and jchip committed Dec 10, 2017
1 parent 4bdb175 commit ee738fc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": [
"es2015",
"es2015-loose",
["env", { "loose": true }],
"react"
],
"plugins": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
var chai = require("chai");
var sinonChai = require("sinon-chai");
var chaiShallowly = require("chai-shallowly");
var Enzyme = require("enzyme");
var Adapter = require("enzyme-adapter-react-16");

Enzyme.configure({ adapter: new Adapter() });

/*
* We need a global sinon to maintain compatibility
* with existing test suites. However, this will be
Expand Down
23 changes: 9 additions & 14 deletions packages/electrode-archetype-react-component-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
"babel-plugin-transform-react-constant-elements": "^6.5.0",
"babel-plugin-transform-react-inline-elements": "^6.6.4",
"babel-plugin-transform-runtime": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.5.0",
"bluebird": "^3.4.6",
"bunyan": "^1.5.1",
"chai": "^4.0.0",
"chai-shallowly": "^0.9.10",
"chai-shallowly": "^1.0.0",
"chalk": "^1.1.3",
"component-playground": "^1.0.1",
"component-playground": "^3.0.0",
"config": "^1.19.0",
"css-loader": "^0.26.1",
"electrode-check-dependencies": "^1.0.2",
"electrode-demo-index": "^1.0.0",
"electrode-docgen": "^1.0.0",
"enzyme": "^2.3.0",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint": "^4.4.1",
"eslint-config-walmart": "^2.0.0",
"eslint-plugin-filenames": "^1.1.0",
Expand Down Expand Up @@ -78,15 +78,10 @@
"prettier": "^1.3.1",
"prop-types": "15.5.8",
"raw-loader": "^0.5.1",
"react": "^15.2.0",
"react-addons-perf": "^15.2.0",
"react-addons-test-utils": "^15.2.0",
"react-dom": "^15.2.0",
"react-hot-loader": "^1.3.0",
"react-hot-loader": "^3.1.3",
"react-intl": "^2.1.3",
"react-resolver": "^3.0.3",
"react-router": "^2.6.1",
"react-test-renderer": "^15.5.4",
"react-router": "^3.0.0",
"react-test-renderer": "^16.0.0",
"require-at": "^1.0.0",
"rimraf": "^2.5.2",
"sinon": "^4.0.0",
Expand All @@ -103,7 +98,7 @@
"xsh": "^0.3.2"
},
"engines": {
"node": ">= 4 <= 8",
"node": ">= 6 <= 8",
"npm": ">= 3 <= 5"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": [
"es2015",
"es2015-loose",
["env", { "loose": true }],
"react"
],
"plugins": [
Expand Down
5 changes: 4 additions & 1 deletion packages/electrode-archetype-react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
"package-json-validator": "^0.6.1",
"xclap": "^0.2.0"
},
"optionalDependencies": {
"electrode-archetype-opt-react": "^0.2.0"
},
"engines": {
"node": ">= 4 <= 8",
"node": ">= 6 <= 8",
"npm": ">= 3 <= 5"
}
}

0 comments on commit ee738fc

Please sign in to comment.