Skip to content

Commit b6d06a3

Browse files
committed
Update dependencies; switch to Babel v7
1 parent 69e54b9 commit b6d06a3

File tree

6 files changed

+3887
-3767
lines changed

6 files changed

+3887
-3767
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_modules
88
coverage
99

1010
# production
11+
es
1112
lib
1213
build
1314
gh-pages

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
"packages/*"
1313
],
1414
"devDependencies": {
15-
"babel-eslint": "^10.0.1",
16-
"eslint": "^5.9.0",
17-
"eslint-config-react-app": "^3.0.6",
18-
"eslint-plugin-flowtype": "^3.2.0",
19-
"eslint-plugin-import": "^2.14.0",
20-
"eslint-plugin-jsx-a11y": "^6.1.2",
21-
"eslint-plugin-react": "^7.11.1",
22-
"husky": "^1.3.1",
23-
"lint-staged": "^8.1.0",
24-
"prettier": "^1.15.3"
15+
"babel-eslint": "^10.0.3",
16+
"eslint": "^6.1.0",
17+
"eslint-config-react-app": "^5.0.1",
18+
"eslint-plugin-flowtype": "^4.3.0",
19+
"eslint-plugin-import": "^2.18.2",
20+
"eslint-plugin-jsx-a11y": "^6.2.3",
21+
"eslint-plugin-react": "^7.14.3",
22+
"eslint-plugin-react-hooks": "^2.0.1",
23+
"husky": "^3.0.5",
24+
"lint-staged": "^9.2.5",
25+
"prettier": "^1.18.2"
2526
},
2627
"husky": {
2728
"hooks": {

packages/demo/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"postbuild": "cp -r build/* ../../gh-pages && rimraf build"
1111
},
1212
"dependencies": {
13-
"react": "^16.7.0",
14-
"react-bootstrap": "^0.32.1",
15-
"react-css-transition-replace": "^3.0.3",
16-
"react-dom": "^16.7.0",
17-
"react-router-dom": "^4.2.2",
18-
"react-scripts": "^2.1.2"
13+
"react": "^16.9.0",
14+
"react-bootstrap": "^0.32.4",
15+
"react-css-transition-replace": "*",
16+
"react-dom": "^16.9.0",
17+
"react-router-dom": "^5.0.1",
18+
"react-scripts": "^3.1.1"
1919
},
2020
"eslintConfig": {
2121
"extends": "react-app"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
browsers: ['ie >= 11'],
8+
},
9+
modules: process.env.MODULES || false,
10+
},
11+
],
12+
'@babel/preset-react',
13+
],
14+
plugins: ['@babel/plugin-proposal-class-properties'],
15+
}

packages/react-css-transition-replace/package.json

Lines changed: 14 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,38 @@
33
"version": "3.0.3",
44
"description": "A React component to animate replacing one element with another.",
55
"main": "lib/ReactCSSTransitionReplace.js",
6+
"module": "es/ReactCSSTransitionReplace.js",
67
"repository": {
78
"type": "git",
89
"url": "https://github.com/marnusw/react-css-transition-replace.git"
910
},
1011
"scripts": {
1112
"test": "echo \"No test implemented\" && exit 0",
1213
"prebuild": "rimraf lib",
13-
"build": "babel ./src --out-dir ./lib",
14+
"build:es": "babel ./src --out-dir ./es",
15+
"build:cjs": "cross-env MODULES=cjs babel ./src --out-dir ./lib",
16+
"build": "yarn build:es && yarn build:cjs",
1417
"watch": "babel ./src --out-dir ./lib --watch",
1518
"prepublish": "yarn build && cp ../../*.md .",
1619
"postpublish": "rm *.md"
1720
},
1821
"dependencies": {
1922
"chain-function": "^1.0.0",
20-
"dom-helpers": "^3.3.1",
21-
"prop-types": "^15.6.1"
23+
"dom-helpers": "^5.1.0",
24+
"prop-types": "^15.7.2"
2225
},
2326
"peerDependencies": {
2427
"react": "^16.3.0",
2528
"react-dom": "^16.3.0"
2629
},
2730
"devDependencies": {
28-
"babel-cli": "^6.26.0",
29-
"babel-core": "^6.26.0",
30-
"babel-plugin-add-module-exports": "^1.0.0",
31-
"babel-plugin-check-es2015-constants": "^6.8.0",
32-
"babel-plugin-syntax-trailing-function-commas": "^6.13.0",
33-
"babel-plugin-transform-class-properties": "^6.24.1",
34-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
35-
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0",
36-
"babel-plugin-transform-es2015-block-scoped-functions": "^6.8.0",
37-
"babel-plugin-transform-es2015-block-scoping": "^6.26.0",
38-
"babel-plugin-transform-es2015-classes": "^6.24.1",
39-
"babel-plugin-transform-es2015-computed-properties": "^6.24.1",
40-
"babel-plugin-transform-es2015-destructuring": "^6.16.0",
41-
"babel-plugin-transform-es2015-duplicate-keys": "^6.24.1",
42-
"babel-plugin-transform-es2015-for-of": "^6.8.0",
43-
"babel-plugin-transform-es2015-function-name": "^6.24.1",
44-
"babel-plugin-transform-es2015-literals": "^6.8.0",
45-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
46-
"babel-plugin-transform-es2015-object-super": "^6.24.1",
47-
"babel-plugin-transform-es2015-parameters": "^6.24.1",
48-
"babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
49-
"babel-plugin-transform-es2015-spread": "^6.8.0",
50-
"babel-plugin-transform-es2015-sticky-regex": "^6.24.1",
51-
"babel-plugin-transform-es2015-template-literals": "^6.8.0",
52-
"babel-plugin-transform-es2015-typeof-symbol": "^6.8.0",
53-
"babel-plugin-transform-es2015-unicode-regex": "^6.24.1",
54-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
55-
"babel-plugin-transform-object-set-prototype-of-to-assign": "^6.8.0",
56-
"babel-plugin-transform-proto-to-assign": "^6.26.0",
57-
"babel-plugin-transform-react-constant-elements": "^6.9.1",
58-
"babel-plugin-transform-react-display-name": "^6.25.0",
59-
"babel-plugin-transform-react-inline-elements": "^6.8.0",
60-
"babel-plugin-transform-react-jsx": "^6.24.1",
61-
"babel-plugin-transform-react-pure-class-to-function": "^1.0.1",
62-
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
63-
"rimraf": "^2.6.2"
31+
"@babel/cli": "^7.6.0",
32+
"@babel/core": "^7.6.0",
33+
"@babel/plugin-proposal-class-properties": "^7.5.5",
34+
"@babel/preset-env": "^7.6.0",
35+
"@babel/preset-react": "^7.0.0",
36+
"cross-env": "^5.2.1",
37+
"rimraf": "^3.0.0"
6438
},
6539
"author": "Marnus Weststrate <marnusw@gmail.com>",
6640
"keywords": [
@@ -72,75 +46,5 @@
7246
"bugs": {
7347
"url": "https://github.com/marnusw/react-css-transition-replace/issues"
7448
},
75-
"homepage": "https://github.com/marnusw/react-css-transition-replace",
76-
"babel": {
77-
"compact": false,
78-
"ast": false,
79-
"plugins": [
80-
"transform-decorators-legacy",
81-
"transform-proto-to-assign",
82-
"transform-object-set-prototype-of-to-assign",
83-
"transform-object-rest-spread",
84-
"transform-class-properties",
85-
[
86-
"transform-es2015-classes",
87-
{
88-
"loose": true
89-
}
90-
],
91-
[
92-
"transform-es2015-spread",
93-
{
94-
"loose": true
95-
}
96-
],
97-
"transform-es2015-parameters",
98-
"syntax-trailing-function-commas",
99-
[
100-
"transform-es2015-destructuring",
101-
{
102-
"loose": true
103-
}
104-
],
105-
[
106-
"transform-es2015-template-literals",
107-
{
108-
"loose": true,
109-
"spec": true
110-
}
111-
],
112-
"transform-es2015-literals",
113-
"transform-es2015-function-name",
114-
"transform-es2015-arrow-functions",
115-
"transform-es2015-block-scoped-functions",
116-
"transform-es2015-object-super",
117-
"transform-es2015-shorthand-properties",
118-
"transform-es2015-duplicate-keys",
119-
[
120-
"transform-es2015-computed-properties",
121-
{
122-
"loose": true
123-
}
124-
],
125-
[
126-
"transform-es2015-for-of",
127-
{
128-
"loose": true
129-
}
130-
],
131-
"transform-es2015-sticky-regex",
132-
"transform-es2015-unicode-regex",
133-
"check-es2015-constants",
134-
"transform-es2015-block-scoping",
135-
"transform-es2015-typeof-symbol",
136-
"transform-react-jsx",
137-
"transform-react-display-name",
138-
"transform-react-constant-elements",
139-
"transform-react-inline-elements",
140-
"transform-react-remove-prop-types",
141-
"transform-react-pure-class-to-function",
142-
"add-module-exports",
143-
"transform-es2015-modules-commonjs"
144-
]
145-
}
49+
"homepage": "https://github.com/marnusw/react-css-transition-replace"
14650
}

0 commit comments

Comments
 (0)