@bigbinary/neeto-audit-frontend 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/.husky/extension/pre-push +7 -0
- package/common/eslint/extension/.eslintrc.js +10 -0
- package/common/prettier/extension/.prettierrc.js +16 -0
- package/common/prettier/extension/tailwind.config.js +29 -0
- package/common/recommendedDependencies/common.js +2 -63
- package/common/recommendedDependencies/extension.js +18 -1
- package/common/recommendedDependencies/frontend.js +64 -2
- package/common/recommendedDependencies/nano.js +64 -2
- package/dist/index.js +155 -64
- package/package.json +1 -1
- package/src/verifiers/eslint/constants.js +2 -0
- package/src/verifiers/eslint/index.js +4 -2
- package/src/verifiers/prettier/constants.js +0 -4
- package/src/verifiers/prettier/index.js +13 -3
- package/src/verifiers/recommendedPackageVersions/index.js +7 -6
- package/src/verifiers/recommendedPackageVersions/utils.js +3 -1
- /package/common/prettier/{.prettierrc.js → common/.prettierrc.js} +0 -0
- /package/common/prettier/{tailwind.config.js → common/tailwind.config.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const { mergeDeepLeft } = require("ramda");
|
|
2
|
+
const defaultConfiguration = require("@bigbinary/neeto-commons-frontend/configs/nanos/eslint/index.js");
|
|
3
|
+
|
|
4
|
+
module.exports = mergeDeepLeft(
|
|
5
|
+
{
|
|
6
|
+
globals: { chrome: "readonly" },
|
|
7
|
+
rules: { "@bigbinary/neeto/use-webpack-alias": "off" },
|
|
8
|
+
},
|
|
9
|
+
defaultConfiguration
|
|
10
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
tailwindConfig: "./tailwind.config.js",
|
|
3
|
+
trailingComma: "es5",
|
|
4
|
+
arrowParens: "avoid",
|
|
5
|
+
printWidth: 80,
|
|
6
|
+
tabWidth: 2,
|
|
7
|
+
useTabs: false,
|
|
8
|
+
semi: true,
|
|
9
|
+
quoteProps: "as-needed",
|
|
10
|
+
jsxSingleQuote: false,
|
|
11
|
+
singleQuote: false,
|
|
12
|
+
bracketSpacing: true,
|
|
13
|
+
bracketSameLine: false,
|
|
14
|
+
proseWrap: "always",
|
|
15
|
+
endOfLine: "lf",
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const defaultConfigurations = require("@bigbinary/neeto-commons-frontend/configs/nanos/tailwind.js");
|
|
2
|
+
const { mergeDeepLeft } = require("ramda");
|
|
3
|
+
|
|
4
|
+
module.exports = mergeDeepLeft(
|
|
5
|
+
{
|
|
6
|
+
theme: {
|
|
7
|
+
extend: {
|
|
8
|
+
colors: {
|
|
9
|
+
purple: {
|
|
10
|
+
50: "#F6F8FD",
|
|
11
|
+
100: "#EEF0FB",
|
|
12
|
+
200: "#D4DAF4",
|
|
13
|
+
300: "#BBC3EE",
|
|
14
|
+
400: "#8796E1",
|
|
15
|
+
500: "#5469D4",
|
|
16
|
+
600: "#4C5FBF",
|
|
17
|
+
700: "#323F7F",
|
|
18
|
+
800: "#262F5F",
|
|
19
|
+
900: "#192040",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
borderWidth: ["last"],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
defaultConfigurations
|
|
29
|
+
);
|
|
@@ -10,24 +10,8 @@ const DEV_DEPENDENCIES = {
|
|
|
10
10
|
"@babel/runtime": "7.22.6",
|
|
11
11
|
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
12
12
|
"@bigbinary/eslint-plugin-neeto": "1.1.2",
|
|
13
|
-
"@bigbinary/neeto-audit-frontend": "1.0.
|
|
14
|
-
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
15
|
-
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
16
|
-
"@bigbinary/neeto-icons": "1.13.0",
|
|
17
|
-
"@bigbinary/neeto-molecules": "1.0.34",
|
|
18
|
-
"@bigbinary/neetoui": "5.0.15",
|
|
19
|
-
"@faker-js/faker": "8.0.2",
|
|
20
|
-
"@honeybadger-io/react": "2.0.1",
|
|
21
|
-
"@rollup/plugin-alias": "5.0.0",
|
|
22
|
-
"@rollup/plugin-babel": "6.0.3",
|
|
23
|
-
"@rollup/plugin-commonjs": "25.0.3",
|
|
24
|
-
"@rollup/plugin-json": "6.0.0",
|
|
25
|
-
"@rollup/plugin-node-resolve": "15.1.0",
|
|
26
|
-
"@rollup/plugin-replace": "5.0.2",
|
|
27
|
-
"@svgr/rollup": "8.0.1",
|
|
28
|
-
antd: "4.24.10",
|
|
13
|
+
"@bigbinary/neeto-audit-frontend": "1.0.5",
|
|
29
14
|
autoprefixer: "10.4.14",
|
|
30
|
-
axios: "1.4.0",
|
|
31
15
|
"babel-loader": "9.1.3",
|
|
32
16
|
"babel-plugin-istanbul": "6.1.1",
|
|
33
17
|
"babel-plugin-js-logger": "1.0.17",
|
|
@@ -35,7 +19,6 @@ const DEV_DEPENDENCIES = {
|
|
|
35
19
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
36
20
|
"babel-preset-react": "6.24.1",
|
|
37
21
|
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
38
|
-
classnames: "2.3.2",
|
|
39
22
|
eslint: "8.45.0",
|
|
40
23
|
"eslint-config-prettier": "8.8.0",
|
|
41
24
|
"eslint-plugin-cypress": "2.13.3",
|
|
@@ -47,61 +30,17 @@ const DEV_DEPENDENCIES = {
|
|
|
47
30
|
"eslint-plugin-react": "7.32.2",
|
|
48
31
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
49
32
|
"eslint-plugin-unused-imports": "3.0.0",
|
|
50
|
-
formik: "2.4.2",
|
|
51
33
|
husky: "8.0.3",
|
|
52
|
-
i18next: "23.2.11",
|
|
53
|
-
"js-logger": "1.6.1",
|
|
54
34
|
"lint-staged": "13.2.3",
|
|
55
|
-
"mixpanel-browser": "2.47.0",
|
|
56
35
|
postcss: "8.4.26",
|
|
57
36
|
"postcss-import": "15.1.0",
|
|
58
37
|
"postcss-loader": "7.3.3",
|
|
59
38
|
"postcss-preset-env": "9.0.0",
|
|
60
39
|
prettier: "2.8.8",
|
|
61
40
|
"prettier-plugin-tailwindcss": "0.4.1",
|
|
62
|
-
qs: "6.11.2",
|
|
63
|
-
ramda: "0.29.0",
|
|
64
|
-
react: "17.0.2",
|
|
65
|
-
"react-dom": "17.0.2",
|
|
66
|
-
"react-helmet": "6.1.0",
|
|
67
|
-
"react-i18next": "13.0.2",
|
|
68
|
-
"react-query": "3.39.3",
|
|
69
|
-
"react-router-dom": "5.3.4",
|
|
70
|
-
"react-toastify": "8.2.0",
|
|
71
|
-
rollup: "2.79.1",
|
|
72
|
-
"rollup-plugin-analyzer": "4.0.0",
|
|
73
|
-
"rollup-plugin-cleaner": "1.0.0",
|
|
74
|
-
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
75
|
-
"rollup-plugin-styles": "4.0.0",
|
|
76
|
-
sass: "1.64.0",
|
|
77
|
-
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
78
|
-
util: "0.12.5",
|
|
79
|
-
yup: "1.2.0",
|
|
80
41
|
};
|
|
81
42
|
|
|
82
|
-
const PEER_DEPENDENCIES = {
|
|
83
|
-
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
84
|
-
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
85
|
-
"@bigbinary/neeto-icons": "^1.9.22",
|
|
86
|
-
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
87
|
-
"@bigbinary/neetoui": "^5.0.4",
|
|
88
|
-
"@honeybadger-io/react": "^2.0.1",
|
|
89
|
-
axios: "^0.27.2",
|
|
90
|
-
classnames: "^2.3.2",
|
|
91
|
-
formik: "^2.2.9",
|
|
92
|
-
i18next: "^22.5.1",
|
|
93
|
-
"js-logger": "^1.6.1",
|
|
94
|
-
"mixpanel-browser": "^2.45.0",
|
|
95
|
-
ramda: "^0.29.0",
|
|
96
|
-
react: "17.0.2",
|
|
97
|
-
"react-dom": "17.0.2",
|
|
98
|
-
"react-helmet": "^6.1.0",
|
|
99
|
-
"react-i18next": "^12.3.1",
|
|
100
|
-
"react-query": "3.39.2",
|
|
101
|
-
"react-router-dom": "5.3.0",
|
|
102
|
-
"react-toastify": "8.2.0",
|
|
103
|
-
yup: "^0.32.11",
|
|
104
|
-
};
|
|
43
|
+
const PEER_DEPENDENCIES = {};
|
|
105
44
|
|
|
106
45
|
export default {
|
|
107
46
|
dependencies: DEPENDENCIES,
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
const DEPENDENCIES = {
|
|
1
|
+
const DEPENDENCIES = {
|
|
2
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
3
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
4
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
5
|
+
"@honeybadger-io/react": "2.0.1",
|
|
6
|
+
antd: "4.24.10",
|
|
7
|
+
axios: "1.4.0",
|
|
8
|
+
i18next: "23.2.11",
|
|
9
|
+
"js-logger": "1.6.1",
|
|
10
|
+
ramda: "0.29.0",
|
|
11
|
+
react: "17.0.2",
|
|
12
|
+
"react-dom": "17.0.2",
|
|
13
|
+
"react-i18next": "13.0.2",
|
|
14
|
+
"react-router-dom": "5.3.4",
|
|
15
|
+
"react-toastify": "8.2.0",
|
|
16
|
+
sass: "1.64.0",
|
|
17
|
+
yup: "1.2.0",
|
|
18
|
+
};
|
|
2
19
|
|
|
3
20
|
const DEV_DEPENDENCIES = {};
|
|
4
21
|
|
|
@@ -1,8 +1,70 @@
|
|
|
1
1
|
const DEPENDENCIES = {};
|
|
2
2
|
|
|
3
|
-
const DEV_DEPENDENCIES = {
|
|
3
|
+
const DEV_DEPENDENCIES = {
|
|
4
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
5
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
6
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
7
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
8
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
9
|
+
"@faker-js/faker": "8.0.2",
|
|
10
|
+
"@honeybadger-io/react": "2.0.1",
|
|
11
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
12
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
13
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
14
|
+
"@rollup/plugin-json": "6.0.0",
|
|
15
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
16
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
17
|
+
"@svgr/rollup": "8.0.1",
|
|
18
|
+
antd: "4.24.10",
|
|
19
|
+
axios: "1.4.0",
|
|
20
|
+
classnames: "2.3.2",
|
|
21
|
+
formik: "2.4.2",
|
|
22
|
+
i18next: "23.2.11",
|
|
23
|
+
"js-logger": "1.6.1",
|
|
24
|
+
"mixpanel-browser": "2.47.0",
|
|
25
|
+
qs: "6.11.2",
|
|
26
|
+
ramda: "0.29.0",
|
|
27
|
+
react: "17.0.2",
|
|
28
|
+
"react-dom": "17.0.2",
|
|
29
|
+
"react-helmet": "6.1.0",
|
|
30
|
+
"react-i18next": "13.0.2",
|
|
31
|
+
"react-router-dom": "5.3.4",
|
|
32
|
+
"react-toastify": "8.2.0",
|
|
33
|
+
"react-query": "3.39.3",
|
|
34
|
+
rollup: "2.79.1",
|
|
35
|
+
"rollup-plugin-analyzer": "4.0.0",
|
|
36
|
+
"rollup-plugin-cleaner": "1.0.0",
|
|
37
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
38
|
+
"rollup-plugin-styles": "4.0.0",
|
|
39
|
+
sass: "1.64.0",
|
|
40
|
+
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
41
|
+
util: "0.12.5",
|
|
42
|
+
yup: "1.2.0",
|
|
43
|
+
};
|
|
4
44
|
|
|
5
|
-
const PEER_DEPENDENCIES = {
|
|
45
|
+
const PEER_DEPENDENCIES = {
|
|
46
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
47
|
+
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
48
|
+
"@bigbinary/neeto-icons": "^1.9.22",
|
|
49
|
+
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
50
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
51
|
+
"@honeybadger-io/react": "^2.0.1",
|
|
52
|
+
axios: "^0.27.2",
|
|
53
|
+
classnames: "^2.3.2",
|
|
54
|
+
formik: "^2.2.9",
|
|
55
|
+
i18next: "^22.5.1",
|
|
56
|
+
"js-logger": "^1.6.1",
|
|
57
|
+
"mixpanel-browser": "^2.45.0",
|
|
58
|
+
ramda: "^0.29.0",
|
|
59
|
+
react: "17.0.2",
|
|
60
|
+
"react-dom": "17.0.2",
|
|
61
|
+
"react-helmet": "^6.1.0",
|
|
62
|
+
"react-i18next": "^12.3.1",
|
|
63
|
+
"react-query": "3.39.2",
|
|
64
|
+
"react-router-dom": "5.3.0",
|
|
65
|
+
"react-toastify": "8.2.0",
|
|
66
|
+
yup: "^0.32.11",
|
|
67
|
+
};
|
|
6
68
|
|
|
7
69
|
export default {
|
|
8
70
|
dependencies: DEPENDENCIES,
|
|
@@ -1,8 +1,70 @@
|
|
|
1
1
|
const DEPENDENCIES = {};
|
|
2
2
|
|
|
3
|
-
const DEV_DEPENDENCIES = {
|
|
3
|
+
const DEV_DEPENDENCIES = {
|
|
4
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
5
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
6
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
7
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
8
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
9
|
+
"@faker-js/faker": "8.0.2",
|
|
10
|
+
"@honeybadger-io/react": "2.0.1",
|
|
11
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
12
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
13
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
14
|
+
"@rollup/plugin-json": "6.0.0",
|
|
15
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
16
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
17
|
+
"@svgr/rollup": "8.0.1",
|
|
18
|
+
antd: "4.24.10",
|
|
19
|
+
axios: "1.4.0",
|
|
20
|
+
classnames: "2.3.2",
|
|
21
|
+
formik: "2.4.2",
|
|
22
|
+
i18next: "23.2.11",
|
|
23
|
+
"js-logger": "1.6.1",
|
|
24
|
+
"mixpanel-browser": "2.47.0",
|
|
25
|
+
qs: "6.11.2",
|
|
26
|
+
ramda: "0.29.0",
|
|
27
|
+
react: "17.0.2",
|
|
28
|
+
"react-dom": "17.0.2",
|
|
29
|
+
"react-helmet": "6.1.0",
|
|
30
|
+
"react-i18next": "13.0.2",
|
|
31
|
+
"react-router-dom": "5.3.4",
|
|
32
|
+
"react-toastify": "8.2.0",
|
|
33
|
+
"react-query": "3.39.3",
|
|
34
|
+
rollup: "2.79.1",
|
|
35
|
+
"rollup-plugin-analyzer": "4.0.0",
|
|
36
|
+
"rollup-plugin-cleaner": "1.0.0",
|
|
37
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
38
|
+
"rollup-plugin-styles": "4.0.0",
|
|
39
|
+
sass: "1.64.0",
|
|
40
|
+
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
41
|
+
util: "0.12.5",
|
|
42
|
+
yup: "1.2.0",
|
|
43
|
+
};
|
|
4
44
|
|
|
5
|
-
const PEER_DEPENDENCIES = {
|
|
45
|
+
const PEER_DEPENDENCIES = {
|
|
46
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
47
|
+
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
48
|
+
"@bigbinary/neeto-icons": "^1.9.22",
|
|
49
|
+
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
50
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
51
|
+
"@honeybadger-io/react": "^2.0.1",
|
|
52
|
+
axios: "^0.27.2",
|
|
53
|
+
classnames: "^2.3.2",
|
|
54
|
+
formik: "^2.2.9",
|
|
55
|
+
i18next: "^22.5.1",
|
|
56
|
+
"js-logger": "^1.6.1",
|
|
57
|
+
"mixpanel-browser": "^2.45.0",
|
|
58
|
+
ramda: "^0.29.0",
|
|
59
|
+
react: "17.0.2",
|
|
60
|
+
"react-dom": "17.0.2",
|
|
61
|
+
"react-helmet": "^6.1.0",
|
|
62
|
+
"react-i18next": "^12.3.1",
|
|
63
|
+
"react-query": "3.39.2",
|
|
64
|
+
"react-router-dom": "5.3.0",
|
|
65
|
+
"react-toastify": "8.2.0",
|
|
66
|
+
yup: "^0.32.11",
|
|
67
|
+
};
|
|
6
68
|
|
|
7
69
|
export default {
|
|
8
70
|
dependencies: DEPENDENCIES,
|
package/dist/index.js
CHANGED
|
@@ -18533,10 +18533,14 @@ const currentNodeVersion = async (debug) => {
|
|
|
18533
18533
|
|
|
18534
18534
|
const ESLINT_DESTINATION_DIRECTORY = path$1.resolve("./");
|
|
18535
18535
|
|
|
18536
|
+
const NANOS_TO_OVERRIDE = ["nano", "extension"];
|
|
18537
|
+
|
|
18536
18538
|
const eslint = async (debug) => {
|
|
18537
18539
|
const nanoType = await getNanoType();
|
|
18538
18540
|
|
|
18539
|
-
const eslintCommonSource = nanoType
|
|
18541
|
+
const eslintCommonSource = NANOS_TO_OVERRIDE.includes(nanoType)
|
|
18542
|
+
? nanoType
|
|
18543
|
+
: "common";
|
|
18540
18544
|
|
|
18541
18545
|
const eslintSourceDirectory = path$1.resolve(
|
|
18542
18546
|
`./node_modules/@bigbinary/neeto-audit-frontend/common/eslint/${eslintCommonSource}`
|
|
@@ -18632,23 +18636,27 @@ const husky = async (debug) => {
|
|
|
18632
18636
|
return { isSuccess };
|
|
18633
18637
|
};
|
|
18634
18638
|
|
|
18635
|
-
const PRETTIER_SOURCE_PATH = path$1.resolve(
|
|
18636
|
-
"./node_modules/@bigbinary/neeto-audit-frontend/common/prettier"
|
|
18637
|
-
);
|
|
18638
|
-
|
|
18639
18639
|
const PRETTIER_DESTINATION_PATH = path$1.resolve("./");
|
|
18640
18640
|
|
|
18641
18641
|
const prettier = async (debug) => {
|
|
18642
|
+
const nanoType = await getNanoType();
|
|
18643
|
+
|
|
18644
|
+
const prettierCommonSource = nanoType === "extension" ? nanoType : "common";
|
|
18645
|
+
|
|
18646
|
+
const prettierSourceDirectory = path$1.resolve(
|
|
18647
|
+
`./node_modules/@bigbinary/neeto-audit-frontend/common/prettier/${prettierCommonSource}`
|
|
18648
|
+
);
|
|
18649
|
+
|
|
18642
18650
|
const fix = async (debug) => {
|
|
18643
18651
|
await createOrReplaceDirectoryFiles({
|
|
18644
|
-
sourceDirectory:
|
|
18652
|
+
sourceDirectory: prettierSourceDirectory,
|
|
18645
18653
|
destinationDirectory: PRETTIER_DESTINATION_PATH,
|
|
18646
18654
|
debug,
|
|
18647
18655
|
});
|
|
18648
18656
|
};
|
|
18649
18657
|
|
|
18650
18658
|
const prettierDirectory = await identicalDirectoryFiles({
|
|
18651
|
-
sourceDirectory:
|
|
18659
|
+
sourceDirectory: prettierSourceDirectory,
|
|
18652
18660
|
destinationDirectory: PRETTIER_DESTINATION_PATH,
|
|
18653
18661
|
debug,
|
|
18654
18662
|
});
|
|
@@ -18679,24 +18687,8 @@ const DEV_DEPENDENCIES$4 = {
|
|
|
18679
18687
|
"@babel/runtime": "7.22.6",
|
|
18680
18688
|
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
18681
18689
|
"@bigbinary/eslint-plugin-neeto": "1.1.2",
|
|
18682
|
-
"@bigbinary/neeto-audit-frontend": "1.0.
|
|
18683
|
-
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
18684
|
-
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
18685
|
-
"@bigbinary/neeto-icons": "1.13.0",
|
|
18686
|
-
"@bigbinary/neeto-molecules": "1.0.34",
|
|
18687
|
-
"@bigbinary/neetoui": "5.0.15",
|
|
18688
|
-
"@faker-js/faker": "8.0.2",
|
|
18689
|
-
"@honeybadger-io/react": "2.0.1",
|
|
18690
|
-
"@rollup/plugin-alias": "5.0.0",
|
|
18691
|
-
"@rollup/plugin-babel": "6.0.3",
|
|
18692
|
-
"@rollup/plugin-commonjs": "25.0.3",
|
|
18693
|
-
"@rollup/plugin-json": "6.0.0",
|
|
18694
|
-
"@rollup/plugin-node-resolve": "15.1.0",
|
|
18695
|
-
"@rollup/plugin-replace": "5.0.2",
|
|
18696
|
-
"@svgr/rollup": "8.0.1",
|
|
18697
|
-
antd: "4.24.10",
|
|
18690
|
+
"@bigbinary/neeto-audit-frontend": "1.0.5",
|
|
18698
18691
|
autoprefixer: "10.4.14",
|
|
18699
|
-
axios: "1.4.0",
|
|
18700
18692
|
"babel-loader": "9.1.3",
|
|
18701
18693
|
"babel-plugin-istanbul": "6.1.1",
|
|
18702
18694
|
"babel-plugin-js-logger": "1.0.17",
|
|
@@ -18704,7 +18696,6 @@ const DEV_DEPENDENCIES$4 = {
|
|
|
18704
18696
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
18705
18697
|
"babel-preset-react": "6.24.1",
|
|
18706
18698
|
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
18707
|
-
classnames: "2.3.2",
|
|
18708
18699
|
eslint: "8.45.0",
|
|
18709
18700
|
"eslint-config-prettier": "8.8.0",
|
|
18710
18701
|
"eslint-plugin-cypress": "2.13.3",
|
|
@@ -18716,27 +18707,86 @@ const DEV_DEPENDENCIES$4 = {
|
|
|
18716
18707
|
"eslint-plugin-react": "7.32.2",
|
|
18717
18708
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
18718
18709
|
"eslint-plugin-unused-imports": "3.0.0",
|
|
18719
|
-
formik: "2.4.2",
|
|
18720
18710
|
husky: "8.0.3",
|
|
18721
|
-
i18next: "23.2.11",
|
|
18722
|
-
"js-logger": "1.6.1",
|
|
18723
18711
|
"lint-staged": "13.2.3",
|
|
18724
|
-
"mixpanel-browser": "2.47.0",
|
|
18725
18712
|
postcss: "8.4.26",
|
|
18726
18713
|
"postcss-import": "15.1.0",
|
|
18727
18714
|
"postcss-loader": "7.3.3",
|
|
18728
18715
|
"postcss-preset-env": "9.0.0",
|
|
18729
18716
|
prettier: "2.8.8",
|
|
18730
18717
|
"prettier-plugin-tailwindcss": "0.4.1",
|
|
18718
|
+
};
|
|
18719
|
+
|
|
18720
|
+
const PEER_DEPENDENCIES$4 = {};
|
|
18721
|
+
|
|
18722
|
+
var common = {
|
|
18723
|
+
dependencies: DEPENDENCIES$4,
|
|
18724
|
+
devDependencies: DEV_DEPENDENCIES$4,
|
|
18725
|
+
peerDependencies: PEER_DEPENDENCIES$4,
|
|
18726
|
+
};
|
|
18727
|
+
|
|
18728
|
+
const DEPENDENCIES$3 = {
|
|
18729
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
18730
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
18731
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
18732
|
+
"@honeybadger-io/react": "2.0.1",
|
|
18733
|
+
antd: "4.24.10",
|
|
18734
|
+
axios: "1.4.0",
|
|
18735
|
+
i18next: "23.2.11",
|
|
18736
|
+
"js-logger": "1.6.1",
|
|
18737
|
+
ramda: "0.29.0",
|
|
18738
|
+
react: "17.0.2",
|
|
18739
|
+
"react-dom": "17.0.2",
|
|
18740
|
+
"react-i18next": "13.0.2",
|
|
18741
|
+
"react-router-dom": "5.3.4",
|
|
18742
|
+
"react-toastify": "8.2.0",
|
|
18743
|
+
sass: "1.64.0",
|
|
18744
|
+
yup: "1.2.0",
|
|
18745
|
+
};
|
|
18746
|
+
|
|
18747
|
+
const DEV_DEPENDENCIES$3 = {};
|
|
18748
|
+
|
|
18749
|
+
const PEER_DEPENDENCIES$3 = {};
|
|
18750
|
+
|
|
18751
|
+
var extension = {
|
|
18752
|
+
dependencies: DEPENDENCIES$3,
|
|
18753
|
+
devDependencies: DEV_DEPENDENCIES$3,
|
|
18754
|
+
peerDependencies: PEER_DEPENDENCIES$3,
|
|
18755
|
+
};
|
|
18756
|
+
|
|
18757
|
+
const DEPENDENCIES$2 = {};
|
|
18758
|
+
|
|
18759
|
+
const DEV_DEPENDENCIES$2 = {
|
|
18760
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
18761
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
18762
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
18763
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
18764
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
18765
|
+
"@faker-js/faker": "8.0.2",
|
|
18766
|
+
"@honeybadger-io/react": "2.0.1",
|
|
18767
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
18768
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
18769
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
18770
|
+
"@rollup/plugin-json": "6.0.0",
|
|
18771
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
18772
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
18773
|
+
"@svgr/rollup": "8.0.1",
|
|
18774
|
+
antd: "4.24.10",
|
|
18775
|
+
axios: "1.4.0",
|
|
18776
|
+
classnames: "2.3.2",
|
|
18777
|
+
formik: "2.4.2",
|
|
18778
|
+
i18next: "23.2.11",
|
|
18779
|
+
"js-logger": "1.6.1",
|
|
18780
|
+
"mixpanel-browser": "2.47.0",
|
|
18731
18781
|
qs: "6.11.2",
|
|
18732
18782
|
ramda: "0.29.0",
|
|
18733
18783
|
react: "17.0.2",
|
|
18734
18784
|
"react-dom": "17.0.2",
|
|
18735
18785
|
"react-helmet": "6.1.0",
|
|
18736
18786
|
"react-i18next": "13.0.2",
|
|
18737
|
-
"react-query": "3.39.3",
|
|
18738
18787
|
"react-router-dom": "5.3.4",
|
|
18739
18788
|
"react-toastify": "8.2.0",
|
|
18789
|
+
"react-query": "3.39.3",
|
|
18740
18790
|
rollup: "2.79.1",
|
|
18741
18791
|
"rollup-plugin-analyzer": "4.0.0",
|
|
18742
18792
|
"rollup-plugin-cleaner": "1.0.0",
|
|
@@ -18748,7 +18798,7 @@ const DEV_DEPENDENCIES$4 = {
|
|
|
18748
18798
|
yup: "1.2.0",
|
|
18749
18799
|
};
|
|
18750
18800
|
|
|
18751
|
-
const PEER_DEPENDENCIES$
|
|
18801
|
+
const PEER_DEPENDENCIES$2 = {
|
|
18752
18802
|
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
18753
18803
|
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
18754
18804
|
"@bigbinary/neeto-icons": "^1.9.22",
|
|
@@ -18772,30 +18822,6 @@ const PEER_DEPENDENCIES$4 = {
|
|
|
18772
18822
|
yup: "^0.32.11",
|
|
18773
18823
|
};
|
|
18774
18824
|
|
|
18775
|
-
var common = {
|
|
18776
|
-
dependencies: DEPENDENCIES$4,
|
|
18777
|
-
devDependencies: DEV_DEPENDENCIES$4,
|
|
18778
|
-
peerDependencies: PEER_DEPENDENCIES$4,
|
|
18779
|
-
};
|
|
18780
|
-
|
|
18781
|
-
const DEPENDENCIES$3 = {};
|
|
18782
|
-
|
|
18783
|
-
const DEV_DEPENDENCIES$3 = {};
|
|
18784
|
-
|
|
18785
|
-
const PEER_DEPENDENCIES$3 = {};
|
|
18786
|
-
|
|
18787
|
-
var extension = {
|
|
18788
|
-
dependencies: DEPENDENCIES$3,
|
|
18789
|
-
devDependencies: DEV_DEPENDENCIES$3,
|
|
18790
|
-
peerDependencies: PEER_DEPENDENCIES$3,
|
|
18791
|
-
};
|
|
18792
|
-
|
|
18793
|
-
const DEPENDENCIES$2 = {};
|
|
18794
|
-
|
|
18795
|
-
const DEV_DEPENDENCIES$2 = {};
|
|
18796
|
-
|
|
18797
|
-
const PEER_DEPENDENCIES$2 = {};
|
|
18798
|
-
|
|
18799
18825
|
var frontend = {
|
|
18800
18826
|
dependencies: DEPENDENCIES$2,
|
|
18801
18827
|
devDependencies: DEV_DEPENDENCIES$2,
|
|
@@ -18804,9 +18830,71 @@ var frontend = {
|
|
|
18804
18830
|
|
|
18805
18831
|
const DEPENDENCIES$1 = {};
|
|
18806
18832
|
|
|
18807
|
-
const DEV_DEPENDENCIES$1 = {
|
|
18833
|
+
const DEV_DEPENDENCIES$1 = {
|
|
18834
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
18835
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
18836
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
18837
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
18838
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
18839
|
+
"@faker-js/faker": "8.0.2",
|
|
18840
|
+
"@honeybadger-io/react": "2.0.1",
|
|
18841
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
18842
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
18843
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
18844
|
+
"@rollup/plugin-json": "6.0.0",
|
|
18845
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
18846
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
18847
|
+
"@svgr/rollup": "8.0.1",
|
|
18848
|
+
antd: "4.24.10",
|
|
18849
|
+
axios: "1.4.0",
|
|
18850
|
+
classnames: "2.3.2",
|
|
18851
|
+
formik: "2.4.2",
|
|
18852
|
+
i18next: "23.2.11",
|
|
18853
|
+
"js-logger": "1.6.1",
|
|
18854
|
+
"mixpanel-browser": "2.47.0",
|
|
18855
|
+
qs: "6.11.2",
|
|
18856
|
+
ramda: "0.29.0",
|
|
18857
|
+
react: "17.0.2",
|
|
18858
|
+
"react-dom": "17.0.2",
|
|
18859
|
+
"react-helmet": "6.1.0",
|
|
18860
|
+
"react-i18next": "13.0.2",
|
|
18861
|
+
"react-router-dom": "5.3.4",
|
|
18862
|
+
"react-toastify": "8.2.0",
|
|
18863
|
+
"react-query": "3.39.3",
|
|
18864
|
+
rollup: "2.79.1",
|
|
18865
|
+
"rollup-plugin-analyzer": "4.0.0",
|
|
18866
|
+
"rollup-plugin-cleaner": "1.0.0",
|
|
18867
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
18868
|
+
"rollup-plugin-styles": "4.0.0",
|
|
18869
|
+
sass: "1.64.0",
|
|
18870
|
+
tailwindcss: "npm:@tailwindcss/postcss7-compat",
|
|
18871
|
+
util: "0.12.5",
|
|
18872
|
+
yup: "1.2.0",
|
|
18873
|
+
};
|
|
18808
18874
|
|
|
18809
|
-
const PEER_DEPENDENCIES$1 = {
|
|
18875
|
+
const PEER_DEPENDENCIES$1 = {
|
|
18876
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
18877
|
+
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
18878
|
+
"@bigbinary/neeto-icons": "^1.9.22",
|
|
18879
|
+
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
18880
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
18881
|
+
"@honeybadger-io/react": "^2.0.1",
|
|
18882
|
+
axios: "^0.27.2",
|
|
18883
|
+
classnames: "^2.3.2",
|
|
18884
|
+
formik: "^2.2.9",
|
|
18885
|
+
i18next: "^22.5.1",
|
|
18886
|
+
"js-logger": "^1.6.1",
|
|
18887
|
+
"mixpanel-browser": "^2.45.0",
|
|
18888
|
+
ramda: "^0.29.0",
|
|
18889
|
+
react: "17.0.2",
|
|
18890
|
+
"react-dom": "17.0.2",
|
|
18891
|
+
"react-helmet": "^6.1.0",
|
|
18892
|
+
"react-i18next": "^12.3.1",
|
|
18893
|
+
"react-query": "3.39.2",
|
|
18894
|
+
"react-router-dom": "5.3.0",
|
|
18895
|
+
"react-toastify": "8.2.0",
|
|
18896
|
+
yup: "^0.32.11",
|
|
18897
|
+
};
|
|
18810
18898
|
|
|
18811
18899
|
var nano = {
|
|
18812
18900
|
dependencies: DEPENDENCIES$1,
|
|
@@ -18840,8 +18928,10 @@ const getOutdatedPackages = (recommendedVersions, packageJson) =>
|
|
|
18840
18928
|
Object.keys(DEPENDENCY_TYPES).map((type) => {
|
|
18841
18929
|
const recommendedList = recommendedVersions[type];
|
|
18842
18930
|
|
|
18931
|
+
const dependencyTypePackages = packageJson[type] ?? {};
|
|
18932
|
+
|
|
18843
18933
|
const packages = mapObjIndexed$1(
|
|
18844
|
-
(_, key) => eqProps$1(key, recommendedList,
|
|
18934
|
+
(_, key) => eqProps$1(key, recommendedList, dependencyTypePackages),
|
|
18845
18935
|
recommendedList
|
|
18846
18936
|
);
|
|
18847
18937
|
|
|
@@ -18892,15 +18982,16 @@ const recommendedPackageVersions = async (debug) => {
|
|
|
18892
18982
|
const fix = async (debug) => {
|
|
18893
18983
|
let newPackageJson = mergeDeepRight$1(
|
|
18894
18984
|
packageJson,
|
|
18895
|
-
objOf$1("peerDependencies", recommendedVersions
|
|
18985
|
+
objOf$1("peerDependencies", recommendedVersions.peerDependencies)
|
|
18896
18986
|
);
|
|
18897
18987
|
newPackageJson = sortByKey(newPackageJson);
|
|
18898
18988
|
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18989
|
+
isNotEmpty(recommendedVersions.peerDependencies) &&
|
|
18990
|
+
(await createOrReplaceFile({
|
|
18991
|
+
relativeFilePath: PACKAGE_JSON_PATH,
|
|
18992
|
+
content: JSON.stringify(newPackageJson, null, 2),
|
|
18993
|
+
debug,
|
|
18994
|
+
}));
|
|
18904
18995
|
|
|
18905
18996
|
const commands = getInstallationCommands(
|
|
18906
18997
|
recommendedVersions,
|
package/package.json
CHANGED
|
@@ -6,12 +6,14 @@ import {
|
|
|
6
6
|
getNanoType,
|
|
7
7
|
identicalDirectoryFiles,
|
|
8
8
|
} from "../../utils";
|
|
9
|
-
import { ESLINT_DESTINATION_DIRECTORY } from "./constants";
|
|
9
|
+
import { ESLINT_DESTINATION_DIRECTORY, NANOS_TO_OVERRIDE } from "./constants";
|
|
10
10
|
|
|
11
11
|
const eslint = async (debug) => {
|
|
12
12
|
const nanoType = await getNanoType();
|
|
13
13
|
|
|
14
|
-
const eslintCommonSource = nanoType
|
|
14
|
+
const eslintCommonSource = NANOS_TO_OVERRIDE.includes(nanoType)
|
|
15
|
+
? nanoType
|
|
16
|
+
: "common";
|
|
15
17
|
|
|
16
18
|
const eslintSourceDirectory = path.resolve(
|
|
17
19
|
`./node_modules/@bigbinary/neeto-audit-frontend/common/eslint/${eslintCommonSource}`
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
+
import path from "path";
|
|
1
2
|
import { identity } from "ramda";
|
|
2
3
|
|
|
3
4
|
import {
|
|
4
5
|
createOrReplaceDirectoryFiles,
|
|
6
|
+
getNanoType,
|
|
5
7
|
identicalDirectoryFiles,
|
|
6
8
|
} from "../../utils";
|
|
7
|
-
import { PRETTIER_DESTINATION_PATH
|
|
9
|
+
import { PRETTIER_DESTINATION_PATH } from "./constants";
|
|
8
10
|
|
|
9
11
|
const prettier = async (debug) => {
|
|
12
|
+
const nanoType = await getNanoType();
|
|
13
|
+
|
|
14
|
+
const prettierCommonSource = nanoType === "extension" ? nanoType : "common";
|
|
15
|
+
|
|
16
|
+
const prettierSourceDirectory = path.resolve(
|
|
17
|
+
`./node_modules/@bigbinary/neeto-audit-frontend/common/prettier/${prettierCommonSource}`
|
|
18
|
+
);
|
|
19
|
+
|
|
10
20
|
const fix = async (debug) => {
|
|
11
21
|
await createOrReplaceDirectoryFiles({
|
|
12
|
-
sourceDirectory:
|
|
22
|
+
sourceDirectory: prettierSourceDirectory,
|
|
13
23
|
destinationDirectory: PRETTIER_DESTINATION_PATH,
|
|
14
24
|
debug,
|
|
15
25
|
});
|
|
16
26
|
};
|
|
17
27
|
|
|
18
28
|
const prettierDirectory = await identicalDirectoryFiles({
|
|
19
|
-
sourceDirectory:
|
|
29
|
+
sourceDirectory: prettierSourceDirectory,
|
|
20
30
|
destinationDirectory: PRETTIER_DESTINATION_PATH,
|
|
21
31
|
debug,
|
|
22
32
|
});
|
|
@@ -33,15 +33,16 @@ const recommendedPackageVersions = async (debug) => {
|
|
|
33
33
|
const fix = async (debug) => {
|
|
34
34
|
let newPackageJson = mergeDeepRight(
|
|
35
35
|
packageJson,
|
|
36
|
-
objOf("peerDependencies", recommendedVersions
|
|
36
|
+
objOf("peerDependencies", recommendedVersions.peerDependencies)
|
|
37
37
|
);
|
|
38
38
|
newPackageJson = sortByKey(newPackageJson);
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
isNotEmpty(recommendedVersions.peerDependencies) &&
|
|
41
|
+
(await createOrReplaceFile({
|
|
42
|
+
relativeFilePath: PACKAGE_JSON_PATH,
|
|
43
|
+
content: JSON.stringify(newPackageJson, null, 2),
|
|
44
|
+
debug,
|
|
45
|
+
}));
|
|
45
46
|
|
|
46
47
|
const commands = getInstallationCommands(
|
|
47
48
|
recommendedVersions,
|
|
@@ -17,8 +17,10 @@ export const getOutdatedPackages = (recommendedVersions, packageJson) =>
|
|
|
17
17
|
Object.keys(DEPENDENCY_TYPES).map((type) => {
|
|
18
18
|
const recommendedList = recommendedVersions[type];
|
|
19
19
|
|
|
20
|
+
const dependencyTypePackages = packageJson[type] ?? {};
|
|
21
|
+
|
|
20
22
|
const packages = mapObjIndexed(
|
|
21
|
-
(_, key) => eqProps(key, recommendedList,
|
|
23
|
+
(_, key) => eqProps(key, recommendedList, dependencyTypePackages),
|
|
22
24
|
recommendedList
|
|
23
25
|
);
|
|
24
26
|
|
|
File without changes
|
|
File without changes
|