@machtwatch/react-script 1.2.11-alpha.21 → 1.2.11-alpha.23

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
- '**/__tests__/**/*.{js,jsx,mjs}',
32
- '**/?(*.)(spec|test).{js,jsx,mjs}',
31
+ "<rootDir>/src/shared/**/*.(spec|test).{js,jsx,mjs}"
33
32
  ],
34
33
  collectCoverageFrom: [
35
- "!<rootDir>/node_modules/",
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.21",
3
+ "version": "1.2.11-alpha.23",
4
4
  "description": "Machtwatch React script",
5
5
  "author": "Danny Reza Miloen <danny@machtwatch.co.id>",
6
6
  "contributors": [],
@@ -52,7 +52,6 @@
52
52
  "@loadable/babel-plugin": "^5.13.2",
53
53
  "@loadable/webpack-plugin": "^5.15.2",
54
54
  "@svgr/webpack": "^6.2.1",
55
- "@tailwindcss/postcss": "^4.0.4",
56
55
  "@testing-library/jest-dom": "^5.12.0",
57
56
  "@testing-library/react": "^11.2.7",
58
57
  "assets-webpack-plugin": "7.1.1",
@@ -87,13 +86,13 @@
87
86
  "mkdirp": "^0.5.1",
88
87
  "null-loader": "^4.0.1",
89
88
  "object-assign": "^4.1.1",
90
- "postcss": "^8.5.1",
89
+ "postcss": "^8.4.14",
91
90
  "postcss-flexbugs-fixes": "^5.0.2",
92
- "postcss-import": "^16.1.0",
93
- "postcss-loader": "^8.1.1",
94
- "postcss-preset-env": "^10.1.3",
91
+ "postcss-import": "^14.1.0",
92
+ "postcss-loader": "^7.0.0",
93
+ "postcss-preset-env": "^7.7.1",
95
94
  "promise": "^8.0.2",
96
- "purgecss-webpack-plugin": "^7.0.2",
95
+ "purgecss-webpack-plugin": "^4.1.3",
97
96
  "react-dev-utils": "^12.0.1",
98
97
  "react-error-overlay": "6.0.9",
99
98
  "recluster": "^0.4.5",
@@ -106,7 +105,7 @@
106
105
  "stylelint": "^16.10.0",
107
106
  "stylelint-config-recommended-less": "^3.0.1",
108
107
  "stylelint-webpack-plugin": "^5.0.1",
109
- "tailwindcss": "^4.0.4",
108
+ "tailwindcss": "^3.4.17",
110
109
  "terser": "^5.14.1",
111
110
  "terser-webpack-plugin": "^5.3.3",
112
111
  "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
- '@tailwindcss/postcss',
314
+ 'tailwindcss',
315
315
  'postcss-modules-values',
316
316
  'postcss-flexbugs-fixes'
317
317
  ],