10000 build: update dependencies and build tools · JM066/coreui-react@20d38d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20d38d3

Browse files
committed
build: update dependencies and build tools
1 parent 75613de commit 20d38d3

File tree

Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ module.exports = {
1313
},
1414
},
1515
extends: [
16-
'plugin:jsdoc/recommended',
1716
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
1817
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
19-
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
2018
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
2119
],
2220
plugins: ['jsdoc', '@typescript-eslint', 'react', 'react-hooks'],
23-
// rules: {
24-
// // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
25-
// // e.g. "@typescript-eslint/explicit-function-return-type": "off",
26-
// 'react/prop-types': 'off',
27-
// },
21+
rules: {
22+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
23+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
24+
},
2825
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
title: 'CoreUI for React.js',
3-
public: '/public',
3+
public: './public',
44
base: '/react/docs/4.0/',
55
ignore: ['CHANGELOG.md', 'README.md'],
66
typescript: true,
@@ -19,4 +19,13 @@ export default {
1919
name: 'Components', // manually ordered menu "Components"
2020
},
2121
],
22+
htmlContext: {
23+
footer: {
24+
scripts: [
25+
{
26+
src: 'https://media.ethicalads.io/media/client/ethicalads.min.js',
27+
},
28+
],
29+
},
30+
},
2231
}
Original file line numberDiff line numberDiff line change
@@ -2,100 +2,76 @@
22
"name": "@coreui/react",
33
"version": "4.0.0-alpha.0",
44
"description": "",
5+
"license": "MIT",
56
"main": "dist/index.js",
67
"module": "dist/index.es.js",
78
"jsnext:main": "dist/index.es.js",
9+
"files": [
10+
"dist/",
11+
"src/",
12+
"doczrc.js",
13+
"tsconfig.json",
14+
"package.json"
15+
],
816
"scripts": {
917
"build": "rollup -c",
10-
"docz:dev": "docz dev",
11-
"docz:build": "docz build",
12-
"docz:serve": "docz build && docz serve",
18+
"docs:dev": "docz dev",
19+
"docs:build": "docz build",
1320
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
14-
"format": "prettier-standard --format",
15-
"test": "jest --coverage"
21+
"test": "jest --coverage",
22+
"test:update": "jest --coverage --updateSnapshot"
23+
},
24+
"peerDependencies": {
25+
"react": "^17",
26+
"react-dom": "^17",
27+
"react-router-dom": "^5.2.0"
1628
},
17-
"keywords": [],
18-
"author": "",
19-
"license": "ISC",
2029
"devDependencies": {
21-
"@babel/core": "^7.14.0",
22-
"@babel/preset-env": "^7.14.1",
30+
"@babel/core": "^7.14.3",
31+
"@babel/preset-env": "^7.14.2",
2332
"@babel/preset-react": "^7.13.13",
24-
"@babel/preset-typescript": "^7.13.0",
25-
"@coreui/coreui": "^4.0.0-alpha.1",
2633
"@emotion/react": "^11.4.0",
34+
"@emotion/styled": "^11.3.0",
2735
"@popperjs/core": "^2.9.2",
2836
"@rollup/plugin-commonjs": "^19.0.0",
2937
"@rollup/plugin-node-resolve": "^13.0.0",
3038
"@testing-library/jest-dom": "^5.12.0",
31-
"@testing-library/react": "^11.2.6",
32-
"@types/classnames": "^2.3.0",
33-
"@types/jest": "^26.0.23",
34-
"@types/prop-types": "^15.7.3",
35-
"@types/react": "^17.0.5",
36-
"@types/react-dom": "^17.0.3",
37-
"@types/react-router-dom": "^5.1.7",
39+
"@testing-library/react": "^11.2.7",
40+
"@types/react": "^17.0.6",
41+
"@types/react-dom": "^17.0.5",
3842
"@types/react-transition-group": "^4.4.1",
39-
"@typescript-eslint/eslint-plugin": "^4.22.1",
40-
"@typescript-eslint/parser": "^4.22.1",
41-
"awesome-typescript-loader": "^5.2.1",
42-
"babel-loader": "^8.2.2",
43-
"babel-plugin-typescript-to-proptypes": "^1.4.2",
44-
"babel-preset-gatsby": "^1.4.0",
43+
"@typescript-eslint/eslint-plugin": "^4.24.0",
44+
"@typescript-eslint/parser": "^4.24.0",
4545
"classnames": "^2.3.1",
46-
"core-js": "3",
47-
"docz": "^2.3.1",
48-
"dom-helpers": "^5.2.1",
46+
"docz": "latest",
4947
"eslint": "^7.26.0",
5048
"eslint-config-prettier": "^8.3.0",
51-
"eslint-plugin-jsdoc": "^33.1.0",
49+
"eslint-plugin-jsdoc": "^34.8.1",
5250
"eslint-plugin-prettier": "^3.4.0",
5351
"eslint-plugin-react": "^7.23.2",
5452
"eslint-plugin-react-hooks": "^4.2.0",
55-
"gatsby-plugin-google-gtag": "^3.4.0",
56-
"gatsby-plugin-sass": "^4.4.0",
57-
"gatsby-plugin-sitemap": "^4.0.0",
53+
"gatsby-plugin-google-gtag": "2",
54+
"gatsby-plugin-sass": "3",
55+
"gatsby-plugin-sitemap": "2",
5856
"jest": "^26.6.3",
59-
"node-sass": "^6.0.0",
60-
"prettier": "^2.2.1",
61-
"prop-types": "^15.7.2",
57+
"node-sass": "5",
58+
"prettier": "^2.3.0",
6259
"react": "^17.0.1",
6360
"react-dom": "^17.0.1",
61+
"react-helmet": "^6.1.0",
6462
"react-popper": "^2.2.5",
65-
"react-router-dom": "^5.2.0",
6663
"react-transition-group": "^4.4.1",
67-
"rollup": "^2.47.0",
64+
"rollup": "^2.48.0",
6865
"rollup-plugin-peer-deps-external": "^2.2.4",
6966
"rollup-plugin-typescript2": "^0.30.0",
70-
"standard": "^16.0.3",
71-
"standard-prettier": "^1.0.1",
7267
"ts-jest": "^26.5.6",
7368
"typescript": "^4.2.4"
7469
},
75-
"peerDependencies": {
76-
"react": "^17",
77-
"react-dom": "^17",
78-
"react-router-dom": "^5.2.0"
79-
},
8070
"jest": {
8171
"preset": "ts-jest",
8272
"testEnvironment": "jsdom",
8373
"testPathIgnorePatterns": [
8474
"dist/"
8575
]
86-
},
87-
"standard": {
88-
"ignore": [
89-
"node_modules/",
90-
"dist/"
91-
],
92-
"globals": [
93-
"describe",
94-
"it",
95-
"test",
96-
"expect",
97-
"afterAll",
98-
"jest"
99-
]
10076
}
10177
}
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
},
2222
"include": ["src"],
2323
"exclude": ["node_modules", "dist"]
24-
}
24+
}