@machtwatch/react-script 1.2.11-alpha.21 → 1.2.11-alpha.22
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.
|
@@ -28,17 +28,10 @@ module.exports = (resolve, rootDir, srcRoots) => {
|
|
|
28
28
|
const config = {
|
|
29
29
|
setupFiles: [resolve('scripts/utils/polyfills.js')],
|
|
30
30
|
testMatch: [
|
|
31
|
-
|
|
32
|
-
'**/?(*.)(spec|test).{js,jsx,mjs}',
|
|
31
|
+
"<rootDir>/src/shared/**/*.(spec|test).{js,jsx,mjs}"
|
|
33
32
|
],
|
|
34
33
|
collectCoverageFrom: [
|
|
35
|
-
"
|
|
36
|
-
"!<rootDir>/bin/",
|
|
37
|
-
"!<rootDir>/build/",
|
|
38
|
-
"!<rootDir>/public/",
|
|
39
|
-
"!<rootDir>/tests/",
|
|
40
|
-
"src/**/*.{js,jsx}",
|
|
41
|
-
"src/**/**/*.{js,jsx}"
|
|
34
|
+
"src/shared/**/*.{js,jsx,mjs}"
|
|
42
35
|
],
|
|
43
36
|
coverageThreshold: {
|
|
44
37
|
global: {
|
|
@@ -81,25 +74,6 @@ module.exports = (resolve, rootDir, srcRoots) => {
|
|
|
81
74
|
"<rootDir>/src/*.js",
|
|
82
75
|
"<rootDir>/graphql/"
|
|
83
76
|
],
|
|
84
|
-
coveragePathIgnorePatterns: [
|
|
85
|
-
"/node_modules/",
|
|
86
|
-
"<rootDir>/src/*.js",
|
|
87
|
-
"<rootDir>/src/App.js",
|
|
88
|
-
"<rootDir>/src/AppServer.js",
|
|
89
|
-
"<rootDir>/src/client.js",
|
|
90
|
-
"<rootDir>/src/server.js",
|
|
91
|
-
"<rootDir>/src/core/",
|
|
92
|
-
"<rootDir>/src/hooks/",
|
|
93
|
-
"<rootDir>/src/helpers/",
|
|
94
|
-
"<rootDir>/src/lang/*",
|
|
95
|
-
"<rootDir>/src/routes/index.js",
|
|
96
|
-
"<rootDir>/public/",
|
|
97
|
-
"<rootDir>/build/",
|
|
98
|
-
"/*.spec.jsx",
|
|
99
|
-
"/*.spec.js",
|
|
100
|
-
"<rootDir>/config/",
|
|
101
|
-
"src/middlewares",
|
|
102
|
-
],
|
|
103
77
|
setupFilesAfterEnv: [resolve('config/jest/jest-setup.js'), '<rootDir>/jest-setup.js'],
|
|
104
78
|
verbose: true,
|
|
105
79
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machtwatch/react-script",
|
|
3
|
-
"version": "1.2.11-alpha.
|
|
3
|
+
"version": "1.2.11-alpha.22",
|
|
4
4
|
"description": "Machtwatch React script",
|
|
5
5
|
"author": "Danny Reza Miloen <danny@machtwatch.co.id>",
|
|
6
6
|
"contributors": [],
|
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
"@babel/plugin-proposal-function-bind": "^7.16.7",
|
|
41
41
|
"@babel/plugin-proposal-json-strings": "^7.17.12",
|
|
42
42
|
"@babel/plugin-proposal-optional-chaining": "^7.17.12",
|
|
43
|
-
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
44
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
45
43
|
"@babel/plugin-proposal-throw-expressions": "^7.16.7",
|
|
46
44
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
47
45
|
"@babel/plugin-transform-react-constant-elements": "^7.17.12",
|
|
@@ -52,7 +50,6 @@
|
|
|
52
50
|
"@loadable/babel-plugin": "^5.13.2",
|
|
53
51
|
"@loadable/webpack-plugin": "^5.15.2",
|
|
54
52
|
"@svgr/webpack": "^6.2.1",
|
|
55
|
-
"@tailwindcss/postcss": "^4.0.4",
|
|
56
53
|
"@testing-library/jest-dom": "^5.12.0",
|
|
57
54
|
"@testing-library/react": "^11.2.7",
|
|
58
55
|
"assets-webpack-plugin": "7.1.1",
|
|
@@ -87,13 +84,13 @@
|
|
|
87
84
|
"mkdirp": "^0.5.1",
|
|
88
85
|
"null-loader": "^4.0.1",
|
|
89
86
|
"object-assign": "^4.1.1",
|
|
90
|
-
"postcss": "^8.
|
|
87
|
+
"postcss": "^8.4.14",
|
|
91
88
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
92
|
-
"postcss-import": "^
|
|
93
|
-
"postcss-loader": "^
|
|
94
|
-
"postcss-preset-env": "^
|
|
89
|
+
"postcss-import": "^14.1.0",
|
|
90
|
+
"postcss-loader": "^7.0.0",
|
|
91
|
+
"postcss-preset-env": "^7.7.1",
|
|
95
92
|
"promise": "^8.0.2",
|
|
96
|
-
"purgecss-webpack-plugin": "^
|
|
93
|
+
"purgecss-webpack-plugin": "^4.1.3",
|
|
97
94
|
"react-dev-utils": "^12.0.1",
|
|
98
95
|
"react-error-overlay": "6.0.9",
|
|
99
96
|
"recluster": "^0.4.5",
|
|
@@ -103,10 +100,8 @@
|
|
|
103
100
|
"simple-progress-webpack-plugin": "^2.0.0",
|
|
104
101
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
105
102
|
"style-loader": "^3.3.1",
|
|
106
|
-
"stylelint": "^
|
|
107
|
-
"stylelint-
|
|
108
|
-
"stylelint-webpack-plugin": "^5.0.1",
|
|
109
|
-
"tailwindcss": "^4.0.4",
|
|
103
|
+
"stylelint": "^14.9.1",
|
|
104
|
+
"stylelint-webpack-plugin": "^3.3.0",
|
|
110
105
|
"terser": "^5.14.1",
|
|
111
106
|
"terser-webpack-plugin": "^5.3.3",
|
|
112
107
|
"url-loader": "^4.1.1",
|
|
@@ -164,6 +164,7 @@ const webpackConfig = ({ isClient }) => ({
|
|
|
164
164
|
alias: {
|
|
165
165
|
build: paths.appBuild,
|
|
166
166
|
'@helpers': path.resolve(paths.appSrc, 'helpers'),
|
|
167
|
+
'@hooks': path.resolve(paths.appSrc, 'hooks'),
|
|
167
168
|
'@components': path.resolve(paths.appSrc, 'components'),
|
|
168
169
|
'@baseComponents': path.resolve(paths.appSrc, 'base_components'),
|
|
169
170
|
'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js',
|
|
@@ -264,8 +265,7 @@ const webpackConfig = ({ isClient }) => ({
|
|
|
264
265
|
plugins: [
|
|
265
266
|
isDevEnv && new SimpleProgressWebpackPlugin({
|
|
266
267
|
format: 'minimal',
|
|
267
|
-
})
|
|
268
|
-
|
|
268
|
+
})
|
|
269
269
|
].filter(Boolean),
|
|
270
270
|
|
|
271
271
|
// Don't attempt to continue if there are any errors.
|
|
@@ -311,7 +311,7 @@ const styleLoaders = ({ isClient }) => [
|
|
|
311
311
|
browsers: pkg.browserslist
|
|
312
312
|
}
|
|
313
313
|
],
|
|
314
|
-
'
|
|
314
|
+
'tailwindcss',
|
|
315
315
|
'postcss-modules-values',
|
|
316
316
|
'postcss-flexbugs-fixes'
|
|
317
317
|
],
|