arui-scripts 20.2.1 → 20.4.0

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.
Files changed (68) hide show
  1. package/.eslintrc.js +3 -3
  2. package/.prettierignore +2 -0
  3. package/.turbo/turbo-test.log +7 -7
  4. package/CHANGELOG.md +17 -0
  5. package/build/commands/build/client.js +2 -0
  6. package/build/commands/build/index.js +0 -2
  7. package/build/commands/build/server.js +2 -0
  8. package/build/commands/start/client.js +2 -0
  9. package/build/commands/start/index.js +0 -2
  10. package/build/commands/start/server.js +2 -0
  11. package/build/commands/start-prod/client.js +2 -0
  12. package/build/commands/start-prod/index.js +0 -2
  13. package/build/commands/start-prod/server.js +2 -0
  14. package/build/commands/util/client-assets-sizes.d.ts +1 -1
  15. package/build/commands/util/client-assets-sizes.js +8 -6
  16. package/build/commands/util/format-webpack-messages.d.ts +1 -1
  17. package/build/commands/util/format-webpack-messages.js +2 -1
  18. package/build/commands/util/load-browserslist.d.ts +1 -0
  19. package/build/commands/util/load-browserslist.js +15 -0
  20. package/build/commands/util/run-client-dev-server.d.ts +1 -1
  21. package/build/commands/util/run-server-watch-compiler.d.ts +1 -1
  22. package/build/configs/app-configs/calculate-dependent-config.d.ts +1 -1
  23. package/build/configs/app-configs/calculate-dependent-config.js +1 -2
  24. package/build/configs/app-configs/get-defaults.d.ts +1 -1
  25. package/build/configs/app-configs/index.d.ts +1 -1
  26. package/build/configs/app-configs/types.d.ts +2 -2
  27. package/build/configs/app-configs/update-with-config-file.d.ts +1 -1
  28. package/build/configs/app-configs/update-with-env.d.ts +1 -1
  29. package/build/configs/app-configs/update-with-package.d.ts +1 -1
  30. package/build/configs/app-configs/update-with-presets.d.ts +1 -1
  31. package/build/configs/app-configs/warn-about-deprecations.d.ts +1 -1
  32. package/build/configs/client-env-config/client-config-plugin.d.ts +1 -1
  33. package/build/configs/dev-server.d.ts +1 -1
  34. package/build/configs/modules.d.ts +1 -1
  35. package/build/configs/modules.js +1 -1
  36. package/build/configs/postcss.config.d.ts +1 -4
  37. package/build/configs/postcss.config.js +0 -4
  38. package/build/configs/process-assets-plugin-output.d.ts +1 -1
  39. package/build/configs/server-externals-exemptions.js +1 -0
  40. package/build/configs/stats-options.d.ts +1 -1
  41. package/build/configs/supporting-node.d.ts +1 -0
  42. package/build/configs/supporting-node.js +5 -0
  43. package/build/configs/swc.d.ts +1 -1
  44. package/build/configs/util/apply-overrides.d.ts +7 -6
  45. package/build/configs/util/compress-with-dcb.js +1 -5
  46. package/build/configs/util/compression-plugins-for-dictionaries.js +3 -6
  47. package/build/configs/util/dcb-compression-plugin.d.ts +3 -3
  48. package/build/configs/util/dcb-compression-plugin.js +12 -4
  49. package/build/configs/util/find-loader.d.ts +1 -1
  50. package/build/configs/util/find-plugin.d.ts +12 -12
  51. package/build/configs/util/get-polyfills.d.ts +1 -1
  52. package/build/configs/webpack.client.d.ts +2 -2
  53. package/build/configs/webpack.client.js +9 -12
  54. package/build/configs/webpack.server.d.ts +1 -1
  55. package/build/plugins/arui-runtime/index.d.ts +1 -1
  56. package/build/plugins/arui-runtime/index.js +1 -1
  57. package/build/plugins/postcss-global-variables/postcss-global-variables.d.ts +1 -1
  58. package/build/plugins/postcss-global-variables/utils/utils.d.ts +1 -1
  59. package/build/plugins/postcss-prefix-selector.d.ts +1 -1
  60. package/build/plugins/reload-server-plugin.d.ts +1 -1
  61. package/build/plugins/turn-off-split-remote-entry.d.ts +1 -1
  62. package/build/templates/nginx.conf.template.js +3 -1
  63. package/build/tsconfig-local.tsbuildinfo +1 -1
  64. package/docs/overrides.md +2 -0
  65. package/package.json +6 -10
  66. package/tsconfig-local.json +1 -4
  67. package/tsconfig.json +2 -5
  68. package/.browserslistrc +0 -5
package/docs/overrides.md CHANGED
@@ -61,7 +61,9 @@ export default overrides;
61
61
  - `webpack.server.prod` - конфигурация для серверного webpack в prod режиме.
62
62
  Ключи: `webpack`, `webpackServer`, `webpackProd`, `webpackServerProd`.
63
63
  - `supporting-browsers` - список поддерживаемых браузеров в формате [browserslist](https://github.com/browserslist/browserslist).
64
+ Альтернативно вы можете использовать любые методы передачи списка браузеров, поддерживаемые пакетом browserslist.
64
65
  Ключи: `browsers`, `supportingBrowsers`
66
+ - `supportingNode` - список поддерживаемых версий nodejs в формате [browserslist](https://github.com/browserslist/browserslist).
65
67
  - `Dockerfile` - докерфайл, который будет использоваться для сборки контейнера.
66
68
  Базовый шаблон [тут](../src/templates/dockerfile.template.ts).
67
69
  [`Dockerfile` в корне проекта](#docker) имеет приоритет над overrides.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "20.2.1",
3
+ "version": "20.4.0",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "license": "MPL-2.0",
@@ -138,10 +138,6 @@
138
138
  "@types/webpack-dev-server": "^4.7.1",
139
139
  "@types/webpack-manifest-plugin": "3.0.5",
140
140
  "@types/webpack-node-externals": "^3.0.0",
141
- "eslint": "^8.20.0",
142
- "eslint-config-custom": "0.0.0",
143
- "prettier": "^2.7.1",
144
- "stylelint": "^14.9.1",
145
141
  "type-fest": "2.19.0",
146
142
  "typescript": "5.6.3"
147
143
  },
@@ -151,11 +147,11 @@
151
147
  "scripts": {
152
148
  "build": "sh bin/build.sh",
153
149
  "test": "jest",
154
- "lint:css": "stylelint ./src/**/*.css",
155
- "lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
156
- "lint": "yarn lint:css && yarn lint:scripts",
157
- "lint:fix": "yarn lint:css --fix && yarn lint:scripts --fix",
158
- "format": "prettier --write $INIT_CWD/{config,src}/**/*.{ts,tsx,js,jsx,css}",
150
+ "lint:scripts": "arui-presets-lint scripts",
151
+ "format": "arui-presets-lint format",
152
+ "format:check": "arui-presets-lint format:check",
153
+ "lint": "yarn lint:scripts && yarn format:check",
154
+ "lint:fix": "yarn lint:scripts --fix && yarn format",
159
155
  "audit": "yarn npm audit --severity high --environment production"
160
156
  },
161
157
  "peerDependencies": {
@@ -8,9 +8,6 @@
8
8
  "allowJs": true,
9
9
  "declaration": true
10
10
  },
11
- "include": [
12
- "src/**/*.ts",
13
- "src/**/*.js"
14
- ],
11
+ "include": ["src/**/*.ts", "src/**/*.js"],
15
12
  "exclude": ["build"]
16
13
  }
package/tsconfig.json CHANGED
@@ -4,10 +4,7 @@
4
4
  "incremental": true /* Enable incremental compilation */,
5
5
  "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
6
6
  "module": "esnext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
7
- "lib": [
8
- "dom",
9
- "esnext"
10
- ] /* Specify library files to be included in the compilation. */,
7
+ "lib": ["dom", "esnext"] /* Specify library files to be included in the compilation. */,
11
8
  // "allowJs": true, /* Allow javascript files to be compiled. */
12
9
  // "checkJs": true, /* Report errors in .js files. */
13
10
  "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
@@ -24,7 +21,7 @@
24
21
  // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25
22
  // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26
23
  // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
27
- "resolveJsonModule": true /* Include modules imported with .json extension. */,
24
+ "resolveJsonModule": true /* Include modules imported with .json extension. */,
28
25
 
29
26
  /* Strict Type-Checking Options */
30
27
  "strict": true /* Enable all strict type-checking options. */,
package/.browserslistrc DELETED
@@ -1,5 +0,0 @@
1
- last 2 versions
2
- ie >= 10
3
- Android >= 4
4
- iOS >= 9
5
- not dead