@bigbinary/neeto-site-blocks 0.6.0 → 0.6.2
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/README.md +21 -5
- package/babel.config.js +1 -0
- package/dist/index.cjs.js +31 -0
- package/dist/index.js +8 -7
- package/package.json +45 -37
- package/postcss.config.js +11 -1
- package/resolve.js +7 -0
- package/tailwind.config.js +1 -4
- package/webpack.config.js +10 -4
- package/alias.js +0 -13
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-site-blocks",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"main": "dist/index.cjs.js",
|
|
5
|
+
"module": "dist/index.js",
|
|
5
6
|
"types": "./types.d.ts",
|
|
6
7
|
"author": "BigBinary",
|
|
7
8
|
"license": "MIT",
|
|
@@ -15,25 +16,24 @@
|
|
|
15
16
|
"{src, example}/**/*.{html,md,js,jsx,json}": [
|
|
16
17
|
"prettier --write",
|
|
17
18
|
"eslint --cache --fix"
|
|
18
|
-
],
|
|
19
|
-
"{package.json,.eslintrc.js,.prettierrc.js}": [
|
|
20
|
-
"prettier --write",
|
|
21
|
-
"eslint --cache --fix"
|
|
22
|
-
],
|
|
23
|
-
".eslint-rules/**/*": [
|
|
24
|
-
"prettier --write",
|
|
25
|
-
"eslint --cache --fix"
|
|
26
19
|
]
|
|
27
20
|
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=18.12",
|
|
23
|
+
"npm": ">=9",
|
|
24
|
+
"yarn": ">=1.22"
|
|
25
|
+
},
|
|
28
26
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "7.
|
|
30
|
-
"@babel/eslint-parser": "7.
|
|
31
|
-
"@babel/plugin-transform-runtime": "7.
|
|
32
|
-
"@babel/preset-env": "7.
|
|
33
|
-
"@babel/preset-react": "7.
|
|
34
|
-
"@babel/
|
|
35
|
-
"@
|
|
36
|
-
"@bigbinary/neeto
|
|
27
|
+
"@babel/core": "^7.19.1",
|
|
28
|
+
"@babel/eslint-parser": "7.17.0",
|
|
29
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
30
|
+
"@babel/preset-env": "7.17.10",
|
|
31
|
+
"@babel/preset-react": "7.16.7",
|
|
32
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
33
|
+
"@babel/runtime": "^7.19.0",
|
|
34
|
+
"@bigbinary/eslint-plugin-neeto": "^1.0.21",
|
|
35
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.40",
|
|
36
|
+
"@bigbinary/neeto-icons": "1.9.12",
|
|
37
37
|
"@rollup/plugin-alias": "4.0.2",
|
|
38
38
|
"@rollup/plugin-babel": "5.3.1",
|
|
39
39
|
"@rollup/plugin-commonjs": "22.0.0",
|
|
@@ -41,33 +41,41 @@
|
|
|
41
41
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
42
42
|
"@rollup/plugin-replace": "4.0.0",
|
|
43
43
|
"@svgr/rollup": "6.2.1",
|
|
44
|
-
"autoprefixer": "10.4.
|
|
45
|
-
"babel-
|
|
46
|
-
"babel-
|
|
47
|
-
"babel-plugin-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
44
|
+
"autoprefixer": "^10.4.5",
|
|
45
|
+
"babel-loader": "^8.2.5",
|
|
46
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
47
|
+
"babel-plugin-js-logger": "1.0.17",
|
|
48
|
+
"babel-plugin-macros": "3.1.0",
|
|
49
|
+
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
50
|
+
"babel-preset-react": "6.24.1",
|
|
51
|
+
"babel-preset-typescript": "^7.0.0-alpha.19",
|
|
52
|
+
"classnames": "2.3.1",
|
|
53
|
+
"css-loader": "6.7.1",
|
|
50
54
|
"dompurify": "^3.0.0",
|
|
51
|
-
"eslint": "
|
|
52
|
-
"eslint-config-prettier": "8.
|
|
55
|
+
"eslint": "8.14.0",
|
|
56
|
+
"eslint-config-prettier": "8.5.0",
|
|
57
|
+
"eslint-plugin-cypress": "2.12.1",
|
|
53
58
|
"eslint-plugin-import": "2.26.0",
|
|
54
59
|
"eslint-plugin-jam3": "0.2.3",
|
|
55
60
|
"eslint-plugin-json": "3.1.0",
|
|
56
|
-
"eslint-plugin-prettier": "4.
|
|
57
|
-
"eslint-plugin-promise": "6.
|
|
58
|
-
"eslint-plugin-react": "7.
|
|
59
|
-
"eslint-plugin-react-hooks": "4.
|
|
61
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
62
|
+
"eslint-plugin-promise": "6.0.0",
|
|
63
|
+
"eslint-plugin-react": "7.29.4",
|
|
64
|
+
"eslint-plugin-react-hooks": "4.5.0",
|
|
60
65
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
61
66
|
"file-loader": "6.1.1",
|
|
62
67
|
"framer-motion": "4.1.17",
|
|
63
68
|
"html-loader": "1.3.1",
|
|
64
69
|
"html-webpack-plugin": "5.5.0",
|
|
65
|
-
"husky": "7.0.
|
|
70
|
+
"husky": "7.0.4",
|
|
66
71
|
"identity-obj-proxy": "3.0.0",
|
|
67
|
-
"lint-staged": "
|
|
68
|
-
"postcss": "8.4.
|
|
69
|
-
"postcss-
|
|
70
|
-
"
|
|
72
|
+
"lint-staged": "12.4.1",
|
|
73
|
+
"postcss": "^8.4.17",
|
|
74
|
+
"postcss-import": "^15.0.0",
|
|
75
|
+
"postcss-loader": "^7.0.1",
|
|
76
|
+
"postcss-preset-env": "7.8.2",
|
|
77
|
+
"prettier": "2.6.2",
|
|
78
|
+
"prettier-plugin-tailwindcss": "0.1.10",
|
|
71
79
|
"prop-types": "15.8.1",
|
|
72
80
|
"ramda": "0.28.0",
|
|
73
81
|
"react": "17.0.2",
|
|
@@ -75,7 +83,7 @@
|
|
|
75
83
|
"react-frame-component": "5.2.5",
|
|
76
84
|
"react-image-gallery": "1.2.11",
|
|
77
85
|
"react-responsive-carousel": "^3.2.23",
|
|
78
|
-
"react-router-dom": "5.3.
|
|
86
|
+
"react-router-dom": "5.3.1",
|
|
79
87
|
"rollup": "2.73.0",
|
|
80
88
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
81
89
|
"rollup-plugin-styles": "4.0.0",
|
|
@@ -83,7 +91,7 @@
|
|
|
83
91
|
"sass": "1.26.11",
|
|
84
92
|
"sass-loader": "10.0.2",
|
|
85
93
|
"style-loader": "1.2.1",
|
|
86
|
-
"tailwindcss": "
|
|
94
|
+
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
|
87
95
|
"webpack": "5.75.0",
|
|
88
96
|
"webpack-cli": "5.0.1",
|
|
89
97
|
"webpack-dev-server": "4.11.1"
|
package/postcss.config.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
plugins: [
|
|
2
|
+
plugins: [
|
|
3
|
+
require("postcss-import"),
|
|
4
|
+
require("tailwindcss"),
|
|
5
|
+
require("postcss-preset-env")({
|
|
6
|
+
autoprefixer: {
|
|
7
|
+
flexbox: "no-2009",
|
|
8
|
+
},
|
|
9
|
+
stage: 3,
|
|
10
|
+
}),
|
|
11
|
+
require("cssnano"),
|
|
12
|
+
],
|
|
3
13
|
};
|
package/resolve.js
ADDED
package/tailwind.config.js
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
|
|
1
3
|
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
2
4
|
const webpack = require("webpack");
|
|
5
|
+
const { mergeDeepLeft } = require("ramda");
|
|
6
|
+
|
|
7
|
+
const commonResolve = require("@bigbinary/neeto-commons-frontend/configs/nanos/webpack/resolve.js");
|
|
8
|
+
const projectResolve = require("./resolve.js");
|
|
3
9
|
|
|
4
10
|
module.exports = {
|
|
5
11
|
entry: "./example/src/index.jsx",
|
|
@@ -49,6 +55,9 @@ module.exports = {
|
|
|
49
55
|
},
|
|
50
56
|
devServer: {
|
|
51
57
|
historyApiFallback: true,
|
|
58
|
+
client: {
|
|
59
|
+
overlay: false,
|
|
60
|
+
},
|
|
52
61
|
},
|
|
53
62
|
plugins: [
|
|
54
63
|
new HtmlWebPackPlugin({
|
|
@@ -59,8 +68,5 @@ module.exports = {
|
|
|
59
68
|
"process.env": JSON.stringify(process.env),
|
|
60
69
|
}),
|
|
61
70
|
],
|
|
62
|
-
resolve:
|
|
63
|
-
extensions: [".json", ".js", ".jsx"],
|
|
64
|
-
alias: require("./alias").resolve.alias,
|
|
65
|
-
},
|
|
71
|
+
resolve: mergeDeepLeft(projectResolve, commonResolve),
|
|
66
72
|
};
|
package/alias.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
resolve: {
|
|
5
|
-
alias: {
|
|
6
|
-
src: path.resolve(__dirname, "./src"),
|
|
7
|
-
Common: path.resolve(__dirname, "./src/Common"),
|
|
8
|
-
constants: path.resolve(__dirname, "./src/constants"),
|
|
9
|
-
hooks: path.resolve(__dirname, "./src/hooks"),
|
|
10
|
-
neetoicons: "@bigbinary/neeto-icons",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
};
|