@tramvai/cli 2.79.7 → 2.82.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.
- package/lib/schema/autogeneratedSchema.json +6 -0
- package/lib/typings/configEntry/cli.d.ts +4 -0
- package/package.json +3 -3
- package/schema.json +6 -0
- package/src/library/swc/__integration__/__snapshots__/swc.start.test.ts.snap +14 -21
- package/src/models/config.spec.ts +12 -0
- package/src/schema/autogeneratedSchema.json +6 -0
- package/src/schema/tramvai.spec.ts +6 -0
- package/src/typings/configEntry/cli.ts +4 -0
|
@@ -871,9 +871,11 @@
|
|
|
871
871
|
},
|
|
872
872
|
"options": {
|
|
873
873
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
874
|
+
"default": {},
|
|
874
875
|
"type": "object",
|
|
875
876
|
"properties": {
|
|
876
877
|
"overlay": {
|
|
878
|
+
"default": false,
|
|
877
879
|
"anyOf": [
|
|
878
880
|
{
|
|
879
881
|
"type": "object",
|
|
@@ -1385,9 +1387,11 @@
|
|
|
1385
1387
|
},
|
|
1386
1388
|
"options": {
|
|
1387
1389
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1390
|
+
"default": {},
|
|
1388
1391
|
"type": "object",
|
|
1389
1392
|
"properties": {
|
|
1390
1393
|
"overlay": {
|
|
1394
|
+
"default": false,
|
|
1391
1395
|
"anyOf": [
|
|
1392
1396
|
{
|
|
1393
1397
|
"type": "object",
|
|
@@ -1899,9 +1903,11 @@
|
|
|
1899
1903
|
},
|
|
1900
1904
|
"options": {
|
|
1901
1905
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1906
|
+
"default": {},
|
|
1902
1907
|
"type": "object",
|
|
1903
1908
|
"properties": {
|
|
1904
1909
|
"overlay": {
|
|
1910
|
+
"default": false,
|
|
1905
1911
|
"anyOf": [
|
|
1906
1912
|
{
|
|
1907
1913
|
"type": "object",
|
|
@@ -236,8 +236,12 @@ export interface CliConfigEntry extends ConfigEntry {
|
|
|
236
236
|
enabled?: boolean;
|
|
237
237
|
/**
|
|
238
238
|
* @title Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options
|
|
239
|
+
* @default {}
|
|
239
240
|
*/
|
|
240
241
|
options?: {
|
|
242
|
+
/**
|
|
243
|
+
* @default false
|
|
244
|
+
*/
|
|
241
245
|
overlay?: boolean | Record<string, any>;
|
|
242
246
|
[key: string]: any;
|
|
243
247
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.82.0",
|
|
4
4
|
"description": "Cli инструмент для сборки и запуска приложений",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@sentry/node": "^6.2.5",
|
|
62
62
|
"@svgr/webpack": "^6.5.1",
|
|
63
63
|
"@tinkoff/browserslist-config": "0.2.4",
|
|
64
|
-
"@tinkoff/dippy": "0.8.
|
|
64
|
+
"@tinkoff/dippy": "0.8.15",
|
|
65
65
|
"@tinkoff/is-modern-lib": "2.0.6",
|
|
66
66
|
"@tinkoff/logger": "0.10.59",
|
|
67
67
|
"@tinkoff/minicss-class-generator": "0.2.5",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@tinkoff/utils": "^2.1.3",
|
|
72
72
|
"@tinkoff/webpack-dedupe-plugin": "1.0.4",
|
|
73
73
|
"@tramvai/build": "3.1.3",
|
|
74
|
-
"@tramvai/react": "2.
|
|
74
|
+
"@tramvai/react": "2.82.0",
|
|
75
75
|
"@tramvai/tools-check-versions": "0.4.10",
|
|
76
76
|
"@tramvai/tools-migrate": "0.6.13",
|
|
77
77
|
"ajv": "^6.12.6",
|
package/schema.json
CHANGED
|
@@ -892,9 +892,11 @@
|
|
|
892
892
|
},
|
|
893
893
|
"options": {
|
|
894
894
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
895
|
+
"default": {},
|
|
895
896
|
"type": "object",
|
|
896
897
|
"properties": {
|
|
897
898
|
"overlay": {
|
|
899
|
+
"default": false,
|
|
898
900
|
"anyOf": [
|
|
899
901
|
{
|
|
900
902
|
"type": "object",
|
|
@@ -1414,9 +1416,11 @@
|
|
|
1414
1416
|
},
|
|
1415
1417
|
"options": {
|
|
1416
1418
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1419
|
+
"default": {},
|
|
1417
1420
|
"type": "object",
|
|
1418
1421
|
"properties": {
|
|
1419
1422
|
"overlay": {
|
|
1423
|
+
"default": false,
|
|
1420
1424
|
"anyOf": [
|
|
1421
1425
|
{
|
|
1422
1426
|
"type": "object",
|
|
@@ -1936,9 +1940,11 @@
|
|
|
1936
1940
|
},
|
|
1937
1941
|
"options": {
|
|
1938
1942
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1943
|
+
"default": {},
|
|
1939
1944
|
"type": "object",
|
|
1940
1945
|
"properties": {
|
|
1941
1946
|
"overlay": {
|
|
1947
|
+
"default": false,
|
|
1942
1948
|
"anyOf": [
|
|
1943
1949
|
{
|
|
1944
1950
|
"type": "object",
|
|
@@ -7,7 +7,6 @@ exports[`client: create-token-pure.ts 1`] = `
|
|
|
7
7
|
/* harmony export */ });
|
|
8
8
|
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/library/swc/__integration__/mocks/tramvai-core.ts");
|
|
9
9
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
10
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
11
10
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
12
11
|
|
|
13
12
|
|
|
@@ -22,8 +21,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
22
21
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
23
22
|
if (true) {
|
|
24
23
|
let errorOverlay;
|
|
25
|
-
if (
|
|
26
|
-
errorOverlay =
|
|
24
|
+
if (true) {
|
|
25
|
+
errorOverlay = false;
|
|
27
26
|
}
|
|
28
27
|
let testMode;
|
|
29
28
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -156,7 +155,6 @@ exports[`client: lazy-component.tsx 1`] = `
|
|
|
156
155
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
157
156
|
/* harmony import */ var _tramvai_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/library/swc/__integration__/mocks/tramvai-react.ts");
|
|
158
157
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
159
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
160
158
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
161
159
|
|
|
162
160
|
|
|
@@ -215,8 +213,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
215
213
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
216
214
|
if (true) {
|
|
217
215
|
let errorOverlay;
|
|
218
|
-
if (
|
|
219
|
-
errorOverlay =
|
|
216
|
+
if (true) {
|
|
217
|
+
errorOverlay = false;
|
|
220
218
|
}
|
|
221
219
|
let testMode;
|
|
222
220
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -247,7 +245,6 @@ exports[`client: node-env.ts 1`] = `
|
|
|
247
245
|
/* harmony export */ "func": function() { return /* binding */ func; }
|
|
248
246
|
/* harmony export */ });
|
|
249
247
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
250
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
251
248
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
252
249
|
|
|
253
250
|
let internalFunc;
|
|
@@ -266,8 +263,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
266
263
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
267
264
|
if (true) {
|
|
268
265
|
let errorOverlay;
|
|
269
|
-
if (
|
|
270
|
-
errorOverlay =
|
|
266
|
+
if (true) {
|
|
267
|
+
errorOverlay = false;
|
|
271
268
|
}
|
|
272
269
|
let testMode;
|
|
273
270
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -300,7 +297,6 @@ exports[`client: provider-stack.ts 1`] = `
|
|
|
300
297
|
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/library/swc/__integration__/mocks/tramvai-core.ts");
|
|
301
298
|
/* harmony import */ var _create_token_pure__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/library/swc/__integration__/create-token-pure.ts");
|
|
302
299
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
303
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
304
300
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
305
301
|
|
|
306
302
|
var _ref0;
|
|
@@ -325,8 +321,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
325
321
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
326
322
|
if (true) {
|
|
327
323
|
let errorOverlay;
|
|
328
|
-
if (
|
|
329
|
-
errorOverlay =
|
|
324
|
+
if (true) {
|
|
325
|
+
errorOverlay = false;
|
|
330
326
|
}
|
|
331
327
|
let testMode;
|
|
332
328
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -360,7 +356,6 @@ exports[`client: react-svg.tsx 1`] = `
|
|
|
360
356
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
361
357
|
/* harmony import */ var _images_logo_svg_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/library/swc/__integration__/images/logo.svg?react");
|
|
362
358
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
363
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
364
359
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
365
360
|
|
|
366
361
|
|
|
@@ -391,8 +386,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
391
386
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
392
387
|
if (true) {
|
|
393
388
|
let errorOverlay;
|
|
394
|
-
if (
|
|
395
|
-
errorOverlay =
|
|
389
|
+
if (true) {
|
|
390
|
+
errorOverlay = false;
|
|
396
391
|
}
|
|
397
392
|
let testMode;
|
|
398
393
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -423,7 +418,6 @@ exports[`client: server.inline.ts 1`] = `
|
|
|
423
418
|
/* harmony export */ "ForBrowser": function() { return /* binding */ ForBrowser; }
|
|
424
419
|
/* harmony export */ });
|
|
425
420
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
426
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
427
421
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
428
422
|
|
|
429
423
|
class ForBrowser {
|
|
@@ -442,8 +436,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
442
436
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
443
437
|
if (true) {
|
|
444
438
|
let errorOverlay;
|
|
445
|
-
if (
|
|
446
|
-
errorOverlay =
|
|
439
|
+
if (true) {
|
|
440
|
+
errorOverlay = false;
|
|
447
441
|
}
|
|
448
442
|
let testMode;
|
|
449
443
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -474,7 +468,6 @@ exports[`client: typeof-window.ts 1`] = `
|
|
|
474
468
|
/* harmony export */ "func": function() { return /* binding */ func; }
|
|
475
469
|
/* harmony export */ });
|
|
476
470
|
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
477
|
-
/* provided dependency */ var __react_refresh_error_overlay__ = __webpack_require__("../../node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/index.js");
|
|
478
471
|
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../node_modules/react-refresh/runtime.js");
|
|
479
472
|
|
|
480
473
|
let internalFunc;
|
|
@@ -492,8 +485,8 @@ const $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(
|
|
|
492
485
|
function $ReactRefreshModuleRuntime$(exports) {
|
|
493
486
|
if (true) {
|
|
494
487
|
let errorOverlay;
|
|
495
|
-
if (
|
|
496
|
-
errorOverlay =
|
|
488
|
+
if (true) {
|
|
489
|
+
errorOverlay = false;
|
|
497
490
|
}
|
|
498
491
|
let testMode;
|
|
499
492
|
if (typeof __react_refresh_test__ !== 'undefined') {
|
|
@@ -58,6 +58,9 @@ it('should populate defaults for config', () => {
|
|
|
58
58
|
"generateDataQaTag": false,
|
|
59
59
|
"hotRefresh": {
|
|
60
60
|
"enabled": true,
|
|
61
|
+
"options": {
|
|
62
|
+
"overlay": false,
|
|
63
|
+
},
|
|
61
64
|
},
|
|
62
65
|
"modern": true,
|
|
63
66
|
"name": "test-app",
|
|
@@ -114,6 +117,9 @@ it('should populate defaults for config', () => {
|
|
|
114
117
|
"generateDataQaTag": false,
|
|
115
118
|
"hotRefresh": {
|
|
116
119
|
"enabled": true,
|
|
120
|
+
"options": {
|
|
121
|
+
"overlay": false,
|
|
122
|
+
},
|
|
117
123
|
},
|
|
118
124
|
"name": "test-child-app",
|
|
119
125
|
"notifications": {},
|
|
@@ -256,6 +262,9 @@ it('should populate defaults for overridable options', () => {
|
|
|
256
262
|
"generateDataQaTag": false,
|
|
257
263
|
"hotRefresh": {
|
|
258
264
|
"enabled": true,
|
|
265
|
+
"options": {
|
|
266
|
+
"overlay": false,
|
|
267
|
+
},
|
|
259
268
|
},
|
|
260
269
|
"modern": true,
|
|
261
270
|
"name": "test-app",
|
|
@@ -326,6 +335,9 @@ it('should populate defaults for overridable options', () => {
|
|
|
326
335
|
"generateDataQaTag": false,
|
|
327
336
|
"hotRefresh": {
|
|
328
337
|
"enabled": true,
|
|
338
|
+
"options": {
|
|
339
|
+
"overlay": false,
|
|
340
|
+
},
|
|
329
341
|
},
|
|
330
342
|
"name": "test-child-app",
|
|
331
343
|
"notifications": {},
|
|
@@ -871,9 +871,11 @@
|
|
|
871
871
|
},
|
|
872
872
|
"options": {
|
|
873
873
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
874
|
+
"default": {},
|
|
874
875
|
"type": "object",
|
|
875
876
|
"properties": {
|
|
876
877
|
"overlay": {
|
|
878
|
+
"default": false,
|
|
877
879
|
"anyOf": [
|
|
878
880
|
{
|
|
879
881
|
"type": "object",
|
|
@@ -1385,9 +1387,11 @@
|
|
|
1385
1387
|
},
|
|
1386
1388
|
"options": {
|
|
1387
1389
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1390
|
+
"default": {},
|
|
1388
1391
|
"type": "object",
|
|
1389
1392
|
"properties": {
|
|
1390
1393
|
"overlay": {
|
|
1394
|
+
"default": false,
|
|
1391
1395
|
"anyOf": [
|
|
1392
1396
|
{
|
|
1393
1397
|
"type": "object",
|
|
@@ -1899,9 +1903,11 @@
|
|
|
1899
1903
|
},
|
|
1900
1904
|
"options": {
|
|
1901
1905
|
"title": "Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options",
|
|
1906
|
+
"default": {},
|
|
1902
1907
|
"type": "object",
|
|
1903
1908
|
"properties": {
|
|
1904
1909
|
"overlay": {
|
|
1910
|
+
"default": false,
|
|
1905
1911
|
"anyOf": [
|
|
1906
1912
|
{
|
|
1907
1913
|
"type": "object",
|
|
@@ -81,6 +81,9 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
81
81
|
"generateDataQaTag": false,
|
|
82
82
|
"hotRefresh": {
|
|
83
83
|
"enabled": true,
|
|
84
|
+
"options": {
|
|
85
|
+
"overlay": false,
|
|
86
|
+
},
|
|
84
87
|
},
|
|
85
88
|
"modern": true,
|
|
86
89
|
"name": "test-app",
|
|
@@ -137,6 +140,9 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
137
140
|
"generateDataQaTag": false,
|
|
138
141
|
"hotRefresh": {
|
|
139
142
|
"enabled": true,
|
|
143
|
+
"options": {
|
|
144
|
+
"overlay": false,
|
|
145
|
+
},
|
|
140
146
|
},
|
|
141
147
|
"name": "test-module",
|
|
142
148
|
"notifications": {},
|
|
@@ -254,8 +254,12 @@ export interface CliConfigEntry extends ConfigEntry {
|
|
|
254
254
|
enabled?: boolean;
|
|
255
255
|
/**
|
|
256
256
|
* @title Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options
|
|
257
|
+
* @default {}
|
|
257
258
|
*/
|
|
258
259
|
options?: {
|
|
260
|
+
/**
|
|
261
|
+
* @default false
|
|
262
|
+
*/
|
|
259
263
|
overlay?: boolean | Record<string, any>;
|
|
260
264
|
[key: string]: any;
|
|
261
265
|
};
|