Skip to content

Commit cd90d76

Browse files
authored
(chore):fix circleci (#28)
* (chore):circleci upgrade * fix babel, webpack * fix lint * fix travis * disable node 9 for now
1 parent 72a26ac commit cd90d76

File tree

10 files changed

+8589
-278
lines changed

10 files changed

+8589
-278
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.babelrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"presets": ["es2015", "react", "stage-0"]
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"css-modules-transform",
8+
"@babel/plugin-proposal-class-properties",
9+
"@babel/plugin-syntax-object-rest-spread"
10+
]
311
}
File renamed without changes.

.eslintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
"react/no-unknown-property": 2, // Prevent usage of unknown DOM property
3737
"react/prop-types": 2, // Prevent missing props validation in a React component definition
3838
"react/react-in-jsx-scope": 2, // Prevent missing React when using JSX
39-
"react/require-extension": [1, { "extensions": [".js"] }], // Restrict file extensions that may be required
4039
"react/self-closing-comp": 2, // Prevent extra closing tags for components without children
41-
"react/wrap-multilines": 2 // Prevent missing parentheses around multilines JSX
4240
},
4341
"globals": {
4442
"jQuery": true,

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
node_js:
3-
- v5
3+
- "8"
4+
- "10"
45
after_script:
56
- 'npm run coveralls'
67
- 'npm run coveralls'

package.json

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"lint": "standard src/**/*.js | snazzy",
88
"pretest": "npm run lint",
9-
"prepublish": "parallelshell -w \"npm run build:dist -s\" \"npm run build:example -s\" \"npm run build:bower -s\"",
9+
"prepublishOnly": "parallelshell -w \"npm run build:dist -s\" \"npm run build:example -s\" \"npm run build:bower -s\"",
1010
"prebuild": "rimraf dist example build",
1111
"build:dist": "babel src --out-dir dist --source-maps --ignore src/example",
1212
"build:example": "webpack --config webpack.config.js",
@@ -44,41 +44,46 @@
4444
"parser": "babel-eslint"
4545
},
4646
"devDependencies": {
47-
"babel-cli": "^6.8.0",
48-
"babel-core": "^6.8.0",
49-
"babel-eslint": "^6.0.4",
50-
"babel-loader": "^6.2.0",
51-
"babel-plugin-react-transform": "^2.0.0-beta1",
52-
"babel-plugin-transform-object-rest-spread": "^6.3.13",
53-
"babel-preset-es2015": "^6.6.0",
54-
"babel-preset-react": "^6.5.0",
55-
"babel-preset-stage-0": "^6.5.0",
56-
"babel-tape-runner": "^2.0.1",
47+
"@babel/cli": "^7.0.0",
48+
"@babel/core": "^7.0.1",
49+
"@babel/node": "^7.0.0",
50+
"@babel/plugin-proposal-class-properties": "^7.0.0",
51+
"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
52+
"@babel/preset-env": "^7.0.0",
53+
"@babel/preset-react": "^7.0.0",
54+
"babel-eslint": "^9.0.0",
55+
"babel-loader": "^8.0.2",
56+
"babel-plugin-css-modules-transform": "^1.2.7",
57+
"babel-tape-runner": "^3.0.0",
58+
"classnames": "^2.2.5",
5759
"codecov.io": "^0.1.6",
58-
"coveralls": "^3.0.6",
60+
"coveralls": "^3.0.2",
5961
"css-loader": "^3.2.0",
60-
"enzyme": "^2.3.0",
61-
"eslint": "^4.18.2",
62-
"eslint-loader": "^1.0.0",
63-
"eslint-plugin-react": "^5.0.1",
62+
"enzyme": "^3.7.0",
63+
"enzyme-adapter-react-16": "^1.6.0",
64+
"eslint": "^5.6.0",
65+
"eslint-loader": "^2.1.0",
66+
"eslint-plugin-react": "^7.11.1",
67+
"extract-text-webpack-plugin": "^3.0.2",
6468
"faucet": "0.0.1",
65-
"html-webpack-plugin": "^2.16.1",
69+
"html-webpack-plugin": "^3.2.0",
6670
"isparta": "^4.0.0",
71+
"mini-css-extract-plugin": "^0.4.2",
6772
"parallelshell": "^3.0.0",
68-
"react": "^15.0.2",
69-
"react-addons-test-utils": "^15.0.2",
70-
"react-dom": "^15.0.2",
71-
"react-hot-loader": "^1.2.9",
72-
"rimraf": "^2.5.2",
73+
"react": "^16.6.0",
74+
"react-dom": "^16.6.0",
75+
"react-hot-loader": "^3.1.1",
76+
"react-test-renderer": "^16.6.0",
77+
"rimraf": "^2.4.3",
7378
"sinon": "^1.17.3",
74-
"snazzy": "^3.0.1",
75-
"standard": "^6.0.8",
79+
"snazzy": "^8.0.0",
80+
"standard": "^12.0.1",
7681
"tap-nyan": "0.0.2",
77-
"tap-xunit": "^2.4.1",
82+
"tap-xunit": "^2.3.0",
7883
"tape": "^4.5.1",
79-
"webpack": "^4.40.2",
80-
"webpack-dev-server": "^3.8.0"
81-
},
84+
"webpack": "^4.19.0",
85+
"webpack-cli": "^3.1.0",
86+
"webpack-dev-server": "^3.1.14" },
8287
"dependencies": {
8388
"prop-types": "^15.5.10"
8489
}

0 commit comments

Comments
 (0)