@tramvai/cli 2.119.2 → 2.119.3
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/bin/spawn.js +3 -1
- package/lib/builder/webpack/tokens.d.ts +21 -0
- package/lib/di/tokens/config.d.ts +7 -0
- package/lib/library/webpack/application/client/dev.js +9 -3
- package/lib/library/webpack/application/client/dev.js.map +1 -1
- package/lib/library/webpack/application/server/dev.js +8 -2
- package/lib/library/webpack/application/server/dev.js.map +1 -1
- package/lib/schema/autogeneratedSchema.json +318 -0
- package/lib/typings/configEntry/cli.d.ts +5 -0
- package/lib/utils/tramvaiVersions.js +9 -0
- package/lib/utils/tramvaiVersions.js.map +1 -1
- package/package.json +2 -2
- package/schema.json +318 -0
- package/src/library/webpack/application/client/dev.ts +7 -0
- package/src/library/webpack/application/server/dev.ts +7 -0
- package/src/schema/autogeneratedSchema.json +318 -0
- package/src/typings/configEntry/cli.ts +5 -0
- package/src/utils/tramvaiVersions.ts +9 -0
|
@@ -1057,6 +1057,112 @@
|
|
|
1057
1057
|
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
1058
1058
|
"additionalProperties": true,
|
|
1059
1059
|
"type": "object"
|
|
1060
|
+
},
|
|
1061
|
+
"watchOptions": {
|
|
1062
|
+
"title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
|
|
1063
|
+
"description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
|
|
1064
|
+
"type": "object",
|
|
1065
|
+
"properties": {
|
|
1066
|
+
"aggregateTimeout": {
|
|
1067
|
+
"description": "Delay the rebuilt after the first change. Value is a time in ms.",
|
|
1068
|
+
"type": "number"
|
|
1069
|
+
},
|
|
1070
|
+
"followSymlinks": {
|
|
1071
|
+
"description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
|
|
1072
|
+
"type": "boolean"
|
|
1073
|
+
},
|
|
1074
|
+
"ignored": {
|
|
1075
|
+
"description": "Ignore some files from watching (glob pattern or regexp).",
|
|
1076
|
+
"anyOf": [
|
|
1077
|
+
{
|
|
1078
|
+
"type": "array",
|
|
1079
|
+
"items": {
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"type": "object",
|
|
1085
|
+
"properties": {
|
|
1086
|
+
"exec": {
|
|
1087
|
+
"type": "object",
|
|
1088
|
+
"additionalProperties": false
|
|
1089
|
+
},
|
|
1090
|
+
"test": {
|
|
1091
|
+
"type": "object",
|
|
1092
|
+
"additionalProperties": false
|
|
1093
|
+
},
|
|
1094
|
+
"source": {
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
},
|
|
1097
|
+
"global": {
|
|
1098
|
+
"type": "boolean"
|
|
1099
|
+
},
|
|
1100
|
+
"ignoreCase": {
|
|
1101
|
+
"type": "boolean"
|
|
1102
|
+
},
|
|
1103
|
+
"multiline": {
|
|
1104
|
+
"type": "boolean"
|
|
1105
|
+
},
|
|
1106
|
+
"lastIndex": {
|
|
1107
|
+
"type": "number"
|
|
1108
|
+
},
|
|
1109
|
+
"compile": {
|
|
1110
|
+
"type": "object",
|
|
1111
|
+
"additionalProperties": false
|
|
1112
|
+
},
|
|
1113
|
+
"flags": {
|
|
1114
|
+
"type": "string"
|
|
1115
|
+
},
|
|
1116
|
+
"sticky": {
|
|
1117
|
+
"type": "boolean"
|
|
1118
|
+
},
|
|
1119
|
+
"unicode": {
|
|
1120
|
+
"type": "boolean"
|
|
1121
|
+
},
|
|
1122
|
+
"dotAll": {
|
|
1123
|
+
"type": "boolean"
|
|
1124
|
+
},
|
|
1125
|
+
"__@match@8167": {
|
|
1126
|
+
"type": "object",
|
|
1127
|
+
"additionalProperties": false
|
|
1128
|
+
},
|
|
1129
|
+
"__@replace@8169": {
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"additionalProperties": false
|
|
1132
|
+
},
|
|
1133
|
+
"__@search@8172": {
|
|
1134
|
+
"type": "object",
|
|
1135
|
+
"additionalProperties": false
|
|
1136
|
+
},
|
|
1137
|
+
"__@split@8174": {
|
|
1138
|
+
"type": "object",
|
|
1139
|
+
"additionalProperties": false
|
|
1140
|
+
},
|
|
1141
|
+
"__@matchAll@8176": {
|
|
1142
|
+
"type": "object",
|
|
1143
|
+
"additionalProperties": false
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"additionalProperties": false
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"type": "string"
|
|
1150
|
+
}
|
|
1151
|
+
]
|
|
1152
|
+
},
|
|
1153
|
+
"poll": {
|
|
1154
|
+
"description": "Enable polling mode for watching.",
|
|
1155
|
+
"type": [
|
|
1156
|
+
"number",
|
|
1157
|
+
"boolean"
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"stdin": {
|
|
1161
|
+
"description": "Stop watching when stdin stream has ended.",
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"additionalProperties": false
|
|
1060
1166
|
}
|
|
1061
1167
|
},
|
|
1062
1168
|
"additionalProperties": false
|
|
@@ -1584,6 +1690,112 @@
|
|
|
1584
1690
|
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
1585
1691
|
"additionalProperties": true,
|
|
1586
1692
|
"type": "object"
|
|
1693
|
+
},
|
|
1694
|
+
"watchOptions": {
|
|
1695
|
+
"title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
|
|
1696
|
+
"description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
|
|
1697
|
+
"type": "object",
|
|
1698
|
+
"properties": {
|
|
1699
|
+
"aggregateTimeout": {
|
|
1700
|
+
"description": "Delay the rebuilt after the first change. Value is a time in ms.",
|
|
1701
|
+
"type": "number"
|
|
1702
|
+
},
|
|
1703
|
+
"followSymlinks": {
|
|
1704
|
+
"description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
|
|
1705
|
+
"type": "boolean"
|
|
1706
|
+
},
|
|
1707
|
+
"ignored": {
|
|
1708
|
+
"description": "Ignore some files from watching (glob pattern or regexp).",
|
|
1709
|
+
"anyOf": [
|
|
1710
|
+
{
|
|
1711
|
+
"type": "array",
|
|
1712
|
+
"items": {
|
|
1713
|
+
"type": "string"
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"type": "object",
|
|
1718
|
+
"properties": {
|
|
1719
|
+
"exec": {
|
|
1720
|
+
"type": "object",
|
|
1721
|
+
"additionalProperties": false
|
|
1722
|
+
},
|
|
1723
|
+
"test": {
|
|
1724
|
+
"type": "object",
|
|
1725
|
+
"additionalProperties": false
|
|
1726
|
+
},
|
|
1727
|
+
"source": {
|
|
1728
|
+
"type": "string"
|
|
1729
|
+
},
|
|
1730
|
+
"global": {
|
|
1731
|
+
"type": "boolean"
|
|
1732
|
+
},
|
|
1733
|
+
"ignoreCase": {
|
|
1734
|
+
"type": "boolean"
|
|
1735
|
+
},
|
|
1736
|
+
"multiline": {
|
|
1737
|
+
"type": "boolean"
|
|
1738
|
+
},
|
|
1739
|
+
"lastIndex": {
|
|
1740
|
+
"type": "number"
|
|
1741
|
+
},
|
|
1742
|
+
"compile": {
|
|
1743
|
+
"type": "object",
|
|
1744
|
+
"additionalProperties": false
|
|
1745
|
+
},
|
|
1746
|
+
"flags": {
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
},
|
|
1749
|
+
"sticky": {
|
|
1750
|
+
"type": "boolean"
|
|
1751
|
+
},
|
|
1752
|
+
"unicode": {
|
|
1753
|
+
"type": "boolean"
|
|
1754
|
+
},
|
|
1755
|
+
"dotAll": {
|
|
1756
|
+
"type": "boolean"
|
|
1757
|
+
},
|
|
1758
|
+
"__@match@8167": {
|
|
1759
|
+
"type": "object",
|
|
1760
|
+
"additionalProperties": false
|
|
1761
|
+
},
|
|
1762
|
+
"__@replace@8169": {
|
|
1763
|
+
"type": "object",
|
|
1764
|
+
"additionalProperties": false
|
|
1765
|
+
},
|
|
1766
|
+
"__@search@8172": {
|
|
1767
|
+
"type": "object",
|
|
1768
|
+
"additionalProperties": false
|
|
1769
|
+
},
|
|
1770
|
+
"__@split@8174": {
|
|
1771
|
+
"type": "object",
|
|
1772
|
+
"additionalProperties": false
|
|
1773
|
+
},
|
|
1774
|
+
"__@matchAll@8176": {
|
|
1775
|
+
"type": "object",
|
|
1776
|
+
"additionalProperties": false
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1779
|
+
"additionalProperties": false
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
"poll": {
|
|
1787
|
+
"description": "Enable polling mode for watching.",
|
|
1788
|
+
"type": [
|
|
1789
|
+
"number",
|
|
1790
|
+
"boolean"
|
|
1791
|
+
]
|
|
1792
|
+
},
|
|
1793
|
+
"stdin": {
|
|
1794
|
+
"description": "Stop watching when stdin stream has ended.",
|
|
1795
|
+
"type": "boolean"
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
"additionalProperties": false
|
|
1587
1799
|
}
|
|
1588
1800
|
},
|
|
1589
1801
|
"additionalProperties": false
|
|
@@ -2111,6 +2323,112 @@
|
|
|
2111
2323
|
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
2112
2324
|
"additionalProperties": true,
|
|
2113
2325
|
"type": "object"
|
|
2326
|
+
},
|
|
2327
|
+
"watchOptions": {
|
|
2328
|
+
"title": "Configure https://webpack.js.org/configuration/watch/#watchoptions",
|
|
2329
|
+
"description": "For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222",
|
|
2330
|
+
"type": "object",
|
|
2331
|
+
"properties": {
|
|
2332
|
+
"aggregateTimeout": {
|
|
2333
|
+
"description": "Delay the rebuilt after the first change. Value is a time in ms.",
|
|
2334
|
+
"type": "number"
|
|
2335
|
+
},
|
|
2336
|
+
"followSymlinks": {
|
|
2337
|
+
"description": "Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').",
|
|
2338
|
+
"type": "boolean"
|
|
2339
|
+
},
|
|
2340
|
+
"ignored": {
|
|
2341
|
+
"description": "Ignore some files from watching (glob pattern or regexp).",
|
|
2342
|
+
"anyOf": [
|
|
2343
|
+
{
|
|
2344
|
+
"type": "array",
|
|
2345
|
+
"items": {
|
|
2346
|
+
"type": "string"
|
|
2347
|
+
}
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"type": "object",
|
|
2351
|
+
"properties": {
|
|
2352
|
+
"exec": {
|
|
2353
|
+
"type": "object",
|
|
2354
|
+
"additionalProperties": false
|
|
2355
|
+
},
|
|
2356
|
+
"test": {
|
|
2357
|
+
"type": "object",
|
|
2358
|
+
"additionalProperties": false
|
|
2359
|
+
},
|
|
2360
|
+
"source": {
|
|
2361
|
+
"type": "string"
|
|
2362
|
+
},
|
|
2363
|
+
"global": {
|
|
2364
|
+
"type": "boolean"
|
|
2365
|
+
},
|
|
2366
|
+
"ignoreCase": {
|
|
2367
|
+
"type": "boolean"
|
|
2368
|
+
},
|
|
2369
|
+
"multiline": {
|
|
2370
|
+
"type": "boolean"
|
|
2371
|
+
},
|
|
2372
|
+
"lastIndex": {
|
|
2373
|
+
"type": "number"
|
|
2374
|
+
},
|
|
2375
|
+
"compile": {
|
|
2376
|
+
"type": "object",
|
|
2377
|
+
"additionalProperties": false
|
|
2378
|
+
},
|
|
2379
|
+
"flags": {
|
|
2380
|
+
"type": "string"
|
|
2381
|
+
},
|
|
2382
|
+
"sticky": {
|
|
2383
|
+
"type": "boolean"
|
|
2384
|
+
},
|
|
2385
|
+
"unicode": {
|
|
2386
|
+
"type": "boolean"
|
|
2387
|
+
},
|
|
2388
|
+
"dotAll": {
|
|
2389
|
+
"type": "boolean"
|
|
2390
|
+
},
|
|
2391
|
+
"__@match@8167": {
|
|
2392
|
+
"type": "object",
|
|
2393
|
+
"additionalProperties": false
|
|
2394
|
+
},
|
|
2395
|
+
"__@replace@8169": {
|
|
2396
|
+
"type": "object",
|
|
2397
|
+
"additionalProperties": false
|
|
2398
|
+
},
|
|
2399
|
+
"__@search@8172": {
|
|
2400
|
+
"type": "object",
|
|
2401
|
+
"additionalProperties": false
|
|
2402
|
+
},
|
|
2403
|
+
"__@split@8174": {
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
"additionalProperties": false
|
|
2406
|
+
},
|
|
2407
|
+
"__@matchAll@8176": {
|
|
2408
|
+
"type": "object",
|
|
2409
|
+
"additionalProperties": false
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
"additionalProperties": false
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
"type": "string"
|
|
2416
|
+
}
|
|
2417
|
+
]
|
|
2418
|
+
},
|
|
2419
|
+
"poll": {
|
|
2420
|
+
"description": "Enable polling mode for watching.",
|
|
2421
|
+
"type": [
|
|
2422
|
+
"number",
|
|
2423
|
+
"boolean"
|
|
2424
|
+
]
|
|
2425
|
+
},
|
|
2426
|
+
"stdin": {
|
|
2427
|
+
"description": "Stop watching when stdin stream has ended.",
|
|
2428
|
+
"type": "boolean"
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
"additionalProperties": false
|
|
2114
2432
|
}
|
|
2115
2433
|
},
|
|
2116
2434
|
"additionalProperties": false
|
|
@@ -200,6 +200,11 @@ export interface CliConfigEntry extends ConfigEntry {
|
|
|
200
200
|
* @additionalProperties true
|
|
201
201
|
*/
|
|
202
202
|
provide?: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* @title Configure https://webpack.js.org/configuration/watch/#watchoptions
|
|
205
|
+
* @description For OSX users and big projects it's recommended to enable watch polling, e.g. `{ poll: 1000 }`, more info - https://github.com/webpack/watchpack/issues/222
|
|
206
|
+
*/
|
|
207
|
+
watchOptions?: Configuration['watchOptions'];
|
|
203
208
|
};
|
|
204
209
|
|
|
205
210
|
// options that affect only production builds
|
|
@@ -15,6 +15,15 @@ export const DEPENDANT_LIBS_MAP = new Map([
|
|
|
15
15
|
['@tinkoff/meta-tags-generate', '@tramvai/module-render'],
|
|
16
16
|
['@tinkoff/pack-polyfills', ''],
|
|
17
17
|
['@tinkoff/browserslist-config', '@tramvai/cli'],
|
|
18
|
+
['@tramvai/http-client', '@tramvai/module-http-client'],
|
|
19
|
+
['@tramvai/safe-strings', '@tramvai/module-render'],
|
|
20
|
+
['@tramvai-tinkoff/safe-strings', '@tramvai-tinkoff/module-router-extension-dco'],
|
|
21
|
+
['@tramvai-tinkoff/dco-client', '@tramvai-tinkoff/module-router-extension-dco'],
|
|
22
|
+
['@tramvai-tinkoff/dynamic-components', '@tramvai/module-dynamic-components'],
|
|
23
|
+
['@tramvai-tinkoff/media-checkers', ''],
|
|
24
|
+
['@tramvai-tinkoff/ui-container', ''],
|
|
25
|
+
['@tramvai-tinkoff/ui-grid', ''],
|
|
26
|
+
['@tramvai-tinkoff/ui-bp-desktop-md', ''],
|
|
18
27
|
]);
|
|
19
28
|
|
|
20
29
|
export const isUnifiedVersion = (name: string) => {
|