@tramvai/cli 2.7.1 → 2.20.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/README.md +12 -0
- package/lib/api/analyze/index.d.ts +1 -0
- package/lib/api/analyze/index.js.map +1 -1
- package/lib/api/build/index.d.ts +1 -0
- package/lib/api/build/index.js.map +1 -1
- package/lib/api/start/index.d.ts +1 -0
- package/lib/api/start/index.js.map +1 -1
- package/lib/api/start/tokens.d.ts +4 -4
- package/lib/api/start/utils/banner.js +1 -1
- package/lib/api/start/utils/banner.js.map +1 -1
- package/lib/api/start-prod/index.d.ts +1 -0
- package/lib/api/start-prod/index.js.map +1 -1
- package/lib/api/start-prod/tokens.d.ts +4 -4
- package/lib/builder/webpack/providers/analyze/shared.js +23 -24
- package/lib/builder/webpack/providers/analyze/shared.js.map +1 -1
- package/lib/builder/webpack/tokens.d.ts +18 -18
- package/lib/commands/analyze/command.d.ts +8 -0
- package/lib/commands/analyze/command.js +6 -0
- package/lib/commands/analyze/command.js.map +1 -1
- package/lib/commands/build/command.js +6 -0
- package/lib/commands/build/command.js.map +1 -1
- package/lib/commands/index.d.ts +1 -1
- package/lib/commands/new/steps/initializationGit.js +2 -2
- package/lib/commands/new/steps/initializationGit.js.map +1 -1
- package/lib/commands/new/steps/installDependencies.js +10 -6
- package/lib/commands/new/steps/installDependencies.js.map +1 -1
- package/lib/commands/new/steps/renderTemplate.js +1 -1
- package/lib/commands/new/steps/renderTemplate.js.map +1 -1
- package/lib/commands/new/utils/applyTemplate.js +1 -1
- package/lib/commands/new/utils/applyTemplate.js.map +1 -1
- package/lib/commands/start/command.js +6 -0
- package/lib/commands/start/command.js.map +1 -1
- package/lib/commands/start-prod/command.js +6 -0
- package/lib/commands/start-prod/command.js.map +1 -1
- package/lib/commands/static/command.d.ts +6 -0
- package/lib/commands/static/command.js +6 -0
- package/lib/commands/static/command.js.map +1 -1
- package/lib/commands/update/dependantLibs.d.ts +2 -0
- package/lib/commands/update/dependantLibs.js +43 -0
- package/lib/commands/update/dependantLibs.js.map +1 -0
- package/lib/commands/update/updatePackageJson.js +7 -24
- package/lib/commands/update/updatePackageJson.js.map +1 -1
- package/lib/config/configManager.d.ts +3 -0
- package/lib/config/configManager.js +10 -7
- package/lib/config/configManager.js.map +1 -1
- package/lib/di/tokens/analytics.d.ts +3 -3
- package/lib/di/tokens/builder.d.ts +4 -4
- package/lib/di/tokens/command.d.ts +5 -5
- package/lib/di/tokens/config.d.ts +5 -5
- package/lib/di/tokens/logger.d.ts +1 -1
- package/lib/di/tokens/packageManager.d.ts +2 -2
- package/lib/di/tokens/server.d.ts +2 -2
- package/lib/di/tokens/std.d.ts +2 -2
- package/lib/di/tokens/ui.d.ts +3 -3
- package/lib/external/pages.d.ts +3 -5
- package/lib/external/pages.js.map +1 -1
- package/lib/library/babel/plugins/create-token-pure.d.ts +4 -1
- package/lib/library/babel/plugins/create-token-pure.js +5 -3
- package/lib/library/babel/plugins/create-token-pure.js.map +1 -1
- package/lib/library/webpack/application/client/common.js +1 -1
- package/lib/library/webpack/application/client/common.js.map +1 -1
- package/lib/library/webpack/application/server/common.js +1 -1
- package/lib/library/webpack/application/server/common.js.map +1 -1
- package/lib/library/webpack/blocks/configToEnv.js +1 -1
- package/lib/library/webpack/blocks/configToEnv.js.map +1 -1
- package/lib/library/webpack/blocks/filesClient.js +5 -2
- package/lib/library/webpack/blocks/filesClient.js.map +1 -1
- package/lib/library/webpack/blocks/filesServer.js +9 -5
- package/lib/library/webpack/blocks/filesServer.js.map +1 -1
- package/lib/library/webpack/blocks/pagesResolve.js +1 -1
- package/lib/library/webpack/blocks/pagesResolve.js.map +1 -1
- package/lib/library/webpack/common/main.js +17 -16
- package/lib/library/webpack/common/main.js.map +1 -1
- package/lib/library/webpack/loaders/image-loader/index.d.ts +5 -0
- package/lib/library/webpack/loaders/image-loader/index.js +25 -0
- package/lib/library/webpack/loaders/image-loader/index.js.map +1 -0
- package/lib/schema/autogeneratedSchema.json +165 -294
- package/lib/typings/configEntry/common.d.ts +169 -175
- package/lib/utils/commands/dependencies/checkVersions.js +3 -11
- package/lib/utils/commands/dependencies/checkVersions.js.map +1 -1
- package/lib/utils/commands/dependencies/getLatestPackageVersion.d.ts +1 -1
- package/lib/utils/commands/dependencies/getLatestPackageVersion.js +2 -6
- package/lib/utils/commands/dependencies/getLatestPackageVersion.js.map +1 -1
- package/lib/utils/commands/dependencies/getPackageInfo.d.ts +1 -0
- package/lib/utils/commands/dependencies/getPackageInfo.js +13 -0
- package/lib/utils/commands/dependencies/getPackageInfo.js.map +1 -0
- package/lib/utils/commands/dependencies/migrate.js +3 -11
- package/lib/utils/commands/dependencies/migrate.js.map +1 -1
- package/lib/utils/npmRequire.d.ts +15 -0
- package/lib/utils/npmRequire.js +15 -0
- package/lib/utils/npmRequire.js.map +1 -1
- package/lib/utils/shouldUseReactRoot.js +3 -3
- package/lib/utils/shouldUseReactRoot.js.map +1 -1
- package/lib/validators/commands/runMigrationsAndCheckVersions.js +3 -7
- package/lib/validators/commands/runMigrationsAndCheckVersions.js.map +1 -1
- package/package.json +89 -86
- package/schema.json +165 -294
- package/src/api/analyze/index.ts +1 -0
- package/src/api/build/__integration__/__fixtures__/tramvai.json +3 -0
- package/src/api/build/__integration__/build.test.ts +1 -0
- package/src/api/build/index.ts +1 -0
- package/src/api/start/__integration__/__fixtures__/tramvai.json +2 -4
- package/src/api/start/index.ts +1 -0
- package/src/api/start/utils/banner.ts +1 -1
- package/src/api/start-prod/index.ts +1 -0
- package/src/builder/webpack/providers/analyze/shared.ts +1 -1
- package/src/commands/analyze/command.ts +6 -0
- package/src/commands/build/command.ts +6 -0
- package/src/commands/generate/generators/action/action.ts.hbs +4 -4
- package/src/commands/new/steps/initializationGit.ts +3 -2
- package/src/commands/new/steps/installDependencies.ts +15 -8
- package/src/commands/new/steps/renderTemplate.ts +1 -1
- package/src/commands/new/templates/app/monorepo/tramvai.json.hbs +2 -4
- package/src/commands/new/templates/app/multirepo/tramvai.json.hbs +2 -4
- package/src/commands/new/templates/shared/_npmrc.hbs +0 -1
- package/src/commands/new/utils/applyTemplate.ts +5 -1
- package/src/commands/start/command.ts +6 -0
- package/src/commands/start-prod/command.ts +6 -0
- package/src/commands/static/command.ts +6 -0
- package/src/commands/update/dependantLibs.ts +49 -0
- package/src/commands/update/updatePackageJson.spec.ts +99 -0
- package/src/commands/update/updatePackageJson.ts +7 -25
- package/src/config/configManager.ts +9 -3
- package/src/external/pages.ts +3 -5
- package/src/library/babel/plugins/__fixtures__/create-token-pure/already-has-comment.ts +5 -0
- package/src/library/babel/plugins/__snapshots__/create-token-pure.spec.ts.snap +18 -0
- package/src/library/babel/plugins/create-token-pure.spec.ts +4 -0
- package/src/library/babel/plugins/create-token-pure.ts +9 -4
- package/src/library/webpack/application/client/common.ts +1 -3
- package/src/library/webpack/application/server/common.ts +1 -3
- package/src/library/webpack/blocks/configToEnv.ts +1 -1
- package/src/library/webpack/blocks/filesClient.ts +5 -2
- package/src/library/webpack/blocks/filesServer.ts +8 -5
- package/src/library/webpack/blocks/pagesResolve.ts +1 -1
- package/src/library/webpack/common/main.ts +19 -18
- package/src/library/webpack/loaders/image-loader/index.ts +26 -0
- package/src/schema/autogeneratedSchema.json +165 -294
- package/src/schema/tramvai.spec.ts +146 -148
- package/src/typings/configEntry/common.ts +171 -175
- package/src/utils/commands/dependencies/checkVersions.ts +3 -13
- package/src/utils/commands/dependencies/getLatestPackageVersion.ts +2 -7
- package/src/utils/commands/dependencies/getPackageInfo.ts +10 -0
- package/src/utils/commands/dependencies/migrate.ts +3 -13
- package/src/utils/npmRequire.ts +15 -0
- package/src/utils/shouldUseReactRoot.ts +4 -4
- package/src/validators/commands/runMigrationsAndCheckVersions.ts +3 -8
- package/lib/utils/commands/dependencies/update.d.ts +0 -7
- package/lib/utils/commands/dependencies/update.js +0 -19
- package/lib/utils/commands/dependencies/update.js.map +0 -1
- package/lib/utils/commands/dependencies/updatePackageJson.d.ts +0 -1
- package/lib/utils/commands/dependencies/updatePackageJson.js +0 -57
- package/lib/utils/commands/dependencies/updatePackageJson.js.map +0 -1
- package/src/utils/commands/dependencies/update.ts +0 -31
- package/src/utils/commands/dependencies/updatePackageJson.ts +0 -63
|
@@ -42,24 +42,25 @@ export default (configManager: ConfigManager) => (config: Config) => {
|
|
|
42
42
|
// https://webpack.js.org/configuration/output/#outputhashfunction . When release webpack 6 would need to remove
|
|
43
43
|
config.output.set('hashFunction', 'xxhash64');
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
if (configManager.fileCache) {
|
|
46
|
+
config.cache({
|
|
47
|
+
type: 'filesystem',
|
|
48
|
+
name: `${env}-${configManager.type}-${configManager.buildType}-${configManager.name}${
|
|
49
|
+
configManager.buildType === 'client' && configManager.modern ? '-modern' : ''
|
|
50
|
+
}`,
|
|
51
|
+
cacheDirectory: findCacheDir({ cwd: configManager.rootDir, name: 'webpack' }),
|
|
52
|
+
buildDependencies: {
|
|
53
|
+
cli: ['@tramvai/cli'],
|
|
54
|
+
webpack: ['webpack/lib'],
|
|
55
|
+
// first check that config exists. If it is passed to webpack, but file is not exist the cache will not be created at all.
|
|
56
|
+
// It may be missing in cases when cli is running programmaticaly
|
|
57
|
+
config: filterNonExisted([path.resolve(configManager.rootDir, 'tramvai.json')]),
|
|
58
|
+
css: filterNonExisted([
|
|
59
|
+
postcssConfig && safeRequireResolve(path.resolve(configManager.rootDir, postcssConfig)),
|
|
60
|
+
]),
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
}
|
|
63
64
|
|
|
64
65
|
config.set('snapshot', {
|
|
65
66
|
// отключаем дефолты для managedPaths т.к. из-за них нельзя дебажить node_modules,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import sizeOf from 'image-size';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Reuse file-loader logic, but return a object with src and size of image
|
|
5
|
+
*/
|
|
6
|
+
export default function (content) {
|
|
7
|
+
const result = require('file-loader').call(this, content);
|
|
8
|
+
|
|
9
|
+
const dimensions = sizeOf(this.resourcePath);
|
|
10
|
+
|
|
11
|
+
// @todo: image blur placeholder in Base64, sharp or imagemin or jimp?
|
|
12
|
+
return result.replace(
|
|
13
|
+
/^export default (__webpack_public_path__ \+ .+);$/,
|
|
14
|
+
`const path = $1;
|
|
15
|
+
|
|
16
|
+
export default path;
|
|
17
|
+
|
|
18
|
+
export const image = {
|
|
19
|
+
src: $1,
|
|
20
|
+
width: ${JSON.stringify(dimensions.width)},
|
|
21
|
+
height: ${JSON.stringify(dimensions.height)},
|
|
22
|
+
};`
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const raw = true;
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"properties": {
|
|
68
68
|
"modern": {
|
|
69
69
|
"title": "Enable production build for modern browsers",
|
|
70
|
-
"default":
|
|
70
|
+
"default": true,
|
|
71
71
|
"type": "boolean"
|
|
72
72
|
},
|
|
73
73
|
"dedupe": {
|
|
74
74
|
"title": "Enable DedupePlugin",
|
|
75
|
-
"default":
|
|
75
|
+
"default": "equality",
|
|
76
76
|
"enum": [
|
|
77
77
|
"equality",
|
|
78
78
|
false,
|
|
@@ -212,6 +212,59 @@
|
|
|
212
212
|
"default": true,
|
|
213
213
|
"type": "boolean"
|
|
214
214
|
},
|
|
215
|
+
"webpackResolveAlias": {
|
|
216
|
+
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
217
|
+
"additionalProperties": true,
|
|
218
|
+
"type": "object"
|
|
219
|
+
},
|
|
220
|
+
"webpackProvide": {
|
|
221
|
+
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
222
|
+
"additionalProperties": true,
|
|
223
|
+
"type": "object"
|
|
224
|
+
},
|
|
225
|
+
"fileSystemPages": {
|
|
226
|
+
"title": "experimental settings for File-System Routing feature",
|
|
227
|
+
"default": {},
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"enable": {
|
|
231
|
+
"title": "Read pages from file system",
|
|
232
|
+
"default": false,
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
},
|
|
235
|
+
"routesDir": {
|
|
236
|
+
"title": "Folder with pages from which static routers are generated",
|
|
237
|
+
"default": "routes",
|
|
238
|
+
"anyOf": [
|
|
239
|
+
{
|
|
240
|
+
"enum": [
|
|
241
|
+
false
|
|
242
|
+
],
|
|
243
|
+
"type": "boolean"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"pagesDir": {
|
|
251
|
+
"title": "Folder with components which can be manually added to static routers",
|
|
252
|
+
"default": "pages",
|
|
253
|
+
"anyOf": [
|
|
254
|
+
{
|
|
255
|
+
"enum": [
|
|
256
|
+
false
|
|
257
|
+
],
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"additionalProperties": false
|
|
267
|
+
},
|
|
215
268
|
"experiments": {
|
|
216
269
|
"title": "Experimental settings",
|
|
217
270
|
"default": {},
|
|
@@ -291,49 +344,6 @@
|
|
|
291
344
|
},
|
|
292
345
|
"additionalProperties": false
|
|
293
346
|
},
|
|
294
|
-
"fileSystemPages": {
|
|
295
|
-
"title": "experimental settings for File-System Routing feature",
|
|
296
|
-
"default": {},
|
|
297
|
-
"type": "object",
|
|
298
|
-
"properties": {
|
|
299
|
-
"enable": {
|
|
300
|
-
"title": "Read pages from file system",
|
|
301
|
-
"default": false,
|
|
302
|
-
"type": "boolean"
|
|
303
|
-
},
|
|
304
|
-
"routesDir": {
|
|
305
|
-
"title": "Folder with pages from which static routers are generated",
|
|
306
|
-
"default": "routes",
|
|
307
|
-
"anyOf": [
|
|
308
|
-
{
|
|
309
|
-
"enum": [
|
|
310
|
-
false
|
|
311
|
-
],
|
|
312
|
-
"type": "boolean"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"type": "string"
|
|
316
|
-
}
|
|
317
|
-
]
|
|
318
|
-
},
|
|
319
|
-
"pagesDir": {
|
|
320
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
321
|
-
"default": "pages",
|
|
322
|
-
"anyOf": [
|
|
323
|
-
{
|
|
324
|
-
"enum": [
|
|
325
|
-
false
|
|
326
|
-
],
|
|
327
|
-
"type": "boolean"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"type": "string"
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"additionalProperties": false
|
|
336
|
-
},
|
|
337
347
|
"transpilation": {
|
|
338
348
|
"title": "experimental settings for code transpilation",
|
|
339
349
|
"default": {},
|
|
@@ -354,16 +364,6 @@
|
|
|
354
364
|
},
|
|
355
365
|
"additionalProperties": false
|
|
356
366
|
},
|
|
357
|
-
"webpackResolveAlias": {
|
|
358
|
-
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
359
|
-
"additionalProperties": true,
|
|
360
|
-
"type": "object"
|
|
361
|
-
},
|
|
362
|
-
"webpackProvide": {
|
|
363
|
-
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
364
|
-
"additionalProperties": true,
|
|
365
|
-
"type": "object"
|
|
366
|
-
},
|
|
367
367
|
"granularChunks": {
|
|
368
368
|
"title": "Separate one common chunk to many small dynamic chunks",
|
|
369
369
|
"default": false,
|
|
@@ -1081,49 +1081,6 @@
|
|
|
1081
1081
|
},
|
|
1082
1082
|
"additionalProperties": false
|
|
1083
1083
|
},
|
|
1084
|
-
"fileSystemPages": {
|
|
1085
|
-
"title": "experimental settings for File-System Routing feature",
|
|
1086
|
-
"default": {},
|
|
1087
|
-
"type": "object",
|
|
1088
|
-
"properties": {
|
|
1089
|
-
"enable": {
|
|
1090
|
-
"title": "Read pages from file system",
|
|
1091
|
-
"default": false,
|
|
1092
|
-
"type": "boolean"
|
|
1093
|
-
},
|
|
1094
|
-
"routesDir": {
|
|
1095
|
-
"title": "Folder with pages from which static routers are generated",
|
|
1096
|
-
"default": "routes",
|
|
1097
|
-
"anyOf": [
|
|
1098
|
-
{
|
|
1099
|
-
"enum": [
|
|
1100
|
-
false
|
|
1101
|
-
],
|
|
1102
|
-
"type": "boolean"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"type": "string"
|
|
1106
|
-
}
|
|
1107
|
-
]
|
|
1108
|
-
},
|
|
1109
|
-
"pagesDir": {
|
|
1110
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
1111
|
-
"default": "pages",
|
|
1112
|
-
"anyOf": [
|
|
1113
|
-
{
|
|
1114
|
-
"enum": [
|
|
1115
|
-
false
|
|
1116
|
-
],
|
|
1117
|
-
"type": "boolean"
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
"type": "string"
|
|
1121
|
-
}
|
|
1122
|
-
]
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
"additionalProperties": false
|
|
1126
|
-
},
|
|
1127
1084
|
"transpilation": {
|
|
1128
1085
|
"title": "experimental settings for code transpilation",
|
|
1129
1086
|
"default": {},
|
|
@@ -1226,12 +1183,12 @@
|
|
|
1226
1183
|
"properties": {
|
|
1227
1184
|
"modern": {
|
|
1228
1185
|
"title": "Enable production build for modern browsers",
|
|
1229
|
-
"default":
|
|
1186
|
+
"default": true,
|
|
1230
1187
|
"type": "boolean"
|
|
1231
1188
|
},
|
|
1232
1189
|
"dedupe": {
|
|
1233
1190
|
"title": "Enable DedupePlugin",
|
|
1234
|
-
"default":
|
|
1191
|
+
"default": "equality",
|
|
1235
1192
|
"enum": [
|
|
1236
1193
|
"equality",
|
|
1237
1194
|
false,
|
|
@@ -1372,6 +1329,59 @@
|
|
|
1372
1329
|
"default": true,
|
|
1373
1330
|
"type": "boolean"
|
|
1374
1331
|
},
|
|
1332
|
+
"webpackResolveAlias": {
|
|
1333
|
+
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
1334
|
+
"additionalProperties": true,
|
|
1335
|
+
"type": "object"
|
|
1336
|
+
},
|
|
1337
|
+
"webpackProvide": {
|
|
1338
|
+
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
1339
|
+
"additionalProperties": true,
|
|
1340
|
+
"type": "object"
|
|
1341
|
+
},
|
|
1342
|
+
"fileSystemPages": {
|
|
1343
|
+
"title": "experimental settings for File-System Routing feature",
|
|
1344
|
+
"default": {},
|
|
1345
|
+
"type": "object",
|
|
1346
|
+
"properties": {
|
|
1347
|
+
"enable": {
|
|
1348
|
+
"title": "Read pages from file system",
|
|
1349
|
+
"default": false,
|
|
1350
|
+
"type": "boolean"
|
|
1351
|
+
},
|
|
1352
|
+
"routesDir": {
|
|
1353
|
+
"title": "Folder with pages from which static routers are generated",
|
|
1354
|
+
"default": "routes",
|
|
1355
|
+
"anyOf": [
|
|
1356
|
+
{
|
|
1357
|
+
"enum": [
|
|
1358
|
+
false
|
|
1359
|
+
],
|
|
1360
|
+
"type": "boolean"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"type": "string"
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
"pagesDir": {
|
|
1368
|
+
"title": "Folder with components which can be manually added to static routers",
|
|
1369
|
+
"default": "pages",
|
|
1370
|
+
"anyOf": [
|
|
1371
|
+
{
|
|
1372
|
+
"enum": [
|
|
1373
|
+
false
|
|
1374
|
+
],
|
|
1375
|
+
"type": "boolean"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
}
|
|
1380
|
+
]
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
"additionalProperties": false
|
|
1384
|
+
},
|
|
1375
1385
|
"experiments": {
|
|
1376
1386
|
"title": "Experimental settings",
|
|
1377
1387
|
"default": {},
|
|
@@ -1451,49 +1461,6 @@
|
|
|
1451
1461
|
},
|
|
1452
1462
|
"additionalProperties": false
|
|
1453
1463
|
},
|
|
1454
|
-
"fileSystemPages": {
|
|
1455
|
-
"title": "experimental settings for File-System Routing feature",
|
|
1456
|
-
"default": {},
|
|
1457
|
-
"type": "object",
|
|
1458
|
-
"properties": {
|
|
1459
|
-
"enable": {
|
|
1460
|
-
"title": "Read pages from file system",
|
|
1461
|
-
"default": false,
|
|
1462
|
-
"type": "boolean"
|
|
1463
|
-
},
|
|
1464
|
-
"routesDir": {
|
|
1465
|
-
"title": "Folder with pages from which static routers are generated",
|
|
1466
|
-
"default": "routes",
|
|
1467
|
-
"anyOf": [
|
|
1468
|
-
{
|
|
1469
|
-
"enum": [
|
|
1470
|
-
false
|
|
1471
|
-
],
|
|
1472
|
-
"type": "boolean"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
"type": "string"
|
|
1476
|
-
}
|
|
1477
|
-
]
|
|
1478
|
-
},
|
|
1479
|
-
"pagesDir": {
|
|
1480
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
1481
|
-
"default": "pages",
|
|
1482
|
-
"anyOf": [
|
|
1483
|
-
{
|
|
1484
|
-
"enum": [
|
|
1485
|
-
false
|
|
1486
|
-
],
|
|
1487
|
-
"type": "boolean"
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"type": "string"
|
|
1491
|
-
}
|
|
1492
|
-
]
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
"additionalProperties": false
|
|
1496
|
-
},
|
|
1497
1464
|
"transpilation": {
|
|
1498
1465
|
"title": "experimental settings for code transpilation",
|
|
1499
1466
|
"default": {},
|
|
@@ -1513,16 +1480,6 @@
|
|
|
1513
1480
|
}
|
|
1514
1481
|
},
|
|
1515
1482
|
"additionalProperties": false
|
|
1516
|
-
},
|
|
1517
|
-
"webpackResolveAlias": {
|
|
1518
|
-
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
1519
|
-
"additionalProperties": true,
|
|
1520
|
-
"type": "object"
|
|
1521
|
-
},
|
|
1522
|
-
"webpackProvide": {
|
|
1523
|
-
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
1524
|
-
"additionalProperties": true,
|
|
1525
|
-
"type": "object"
|
|
1526
1483
|
}
|
|
1527
1484
|
}
|
|
1528
1485
|
}
|
|
@@ -1719,49 +1676,6 @@
|
|
|
1719
1676
|
},
|
|
1720
1677
|
"additionalProperties": false
|
|
1721
1678
|
},
|
|
1722
|
-
"fileSystemPages": {
|
|
1723
|
-
"title": "experimental settings for File-System Routing feature",
|
|
1724
|
-
"default": {},
|
|
1725
|
-
"type": "object",
|
|
1726
|
-
"properties": {
|
|
1727
|
-
"enable": {
|
|
1728
|
-
"title": "Read pages from file system",
|
|
1729
|
-
"default": false,
|
|
1730
|
-
"type": "boolean"
|
|
1731
|
-
},
|
|
1732
|
-
"routesDir": {
|
|
1733
|
-
"title": "Folder with pages from which static routers are generated",
|
|
1734
|
-
"default": "routes",
|
|
1735
|
-
"anyOf": [
|
|
1736
|
-
{
|
|
1737
|
-
"enum": [
|
|
1738
|
-
false
|
|
1739
|
-
],
|
|
1740
|
-
"type": "boolean"
|
|
1741
|
-
},
|
|
1742
|
-
{
|
|
1743
|
-
"type": "string"
|
|
1744
|
-
}
|
|
1745
|
-
]
|
|
1746
|
-
},
|
|
1747
|
-
"pagesDir": {
|
|
1748
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
1749
|
-
"default": "pages",
|
|
1750
|
-
"anyOf": [
|
|
1751
|
-
{
|
|
1752
|
-
"enum": [
|
|
1753
|
-
false
|
|
1754
|
-
],
|
|
1755
|
-
"type": "boolean"
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
"type": "string"
|
|
1759
|
-
}
|
|
1760
|
-
]
|
|
1761
|
-
}
|
|
1762
|
-
},
|
|
1763
|
-
"additionalProperties": false
|
|
1764
|
-
},
|
|
1765
1679
|
"transpilation": {
|
|
1766
1680
|
"title": "experimental settings for code transpilation",
|
|
1767
1681
|
"default": {},
|
|
@@ -1844,12 +1758,12 @@
|
|
|
1844
1758
|
"properties": {
|
|
1845
1759
|
"modern": {
|
|
1846
1760
|
"title": "Enable production build for modern browsers",
|
|
1847
|
-
"default":
|
|
1761
|
+
"default": true,
|
|
1848
1762
|
"type": "boolean"
|
|
1849
1763
|
},
|
|
1850
1764
|
"dedupe": {
|
|
1851
1765
|
"title": "Enable DedupePlugin",
|
|
1852
|
-
"default":
|
|
1766
|
+
"default": "equality",
|
|
1853
1767
|
"enum": [
|
|
1854
1768
|
"equality",
|
|
1855
1769
|
false,
|
|
@@ -1990,6 +1904,59 @@
|
|
|
1990
1904
|
"default": true,
|
|
1991
1905
|
"type": "boolean"
|
|
1992
1906
|
},
|
|
1907
|
+
"webpackResolveAlias": {
|
|
1908
|
+
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
1909
|
+
"additionalProperties": true,
|
|
1910
|
+
"type": "object"
|
|
1911
|
+
},
|
|
1912
|
+
"webpackProvide": {
|
|
1913
|
+
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
1914
|
+
"additionalProperties": true,
|
|
1915
|
+
"type": "object"
|
|
1916
|
+
},
|
|
1917
|
+
"fileSystemPages": {
|
|
1918
|
+
"title": "experimental settings for File-System Routing feature",
|
|
1919
|
+
"default": {},
|
|
1920
|
+
"type": "object",
|
|
1921
|
+
"properties": {
|
|
1922
|
+
"enable": {
|
|
1923
|
+
"title": "Read pages from file system",
|
|
1924
|
+
"default": false,
|
|
1925
|
+
"type": "boolean"
|
|
1926
|
+
},
|
|
1927
|
+
"routesDir": {
|
|
1928
|
+
"title": "Folder with pages from which static routers are generated",
|
|
1929
|
+
"default": "routes",
|
|
1930
|
+
"anyOf": [
|
|
1931
|
+
{
|
|
1932
|
+
"enum": [
|
|
1933
|
+
false
|
|
1934
|
+
],
|
|
1935
|
+
"type": "boolean"
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"type": "string"
|
|
1939
|
+
}
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
"pagesDir": {
|
|
1943
|
+
"title": "Folder with components which can be manually added to static routers",
|
|
1944
|
+
"default": "pages",
|
|
1945
|
+
"anyOf": [
|
|
1946
|
+
{
|
|
1947
|
+
"enum": [
|
|
1948
|
+
false
|
|
1949
|
+
],
|
|
1950
|
+
"type": "boolean"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"type": "string"
|
|
1954
|
+
}
|
|
1955
|
+
]
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
"additionalProperties": false
|
|
1959
|
+
},
|
|
1993
1960
|
"experiments": {
|
|
1994
1961
|
"title": "Experimental settings",
|
|
1995
1962
|
"default": {},
|
|
@@ -2069,49 +2036,6 @@
|
|
|
2069
2036
|
},
|
|
2070
2037
|
"additionalProperties": false
|
|
2071
2038
|
},
|
|
2072
|
-
"fileSystemPages": {
|
|
2073
|
-
"title": "experimental settings for File-System Routing feature",
|
|
2074
|
-
"default": {},
|
|
2075
|
-
"type": "object",
|
|
2076
|
-
"properties": {
|
|
2077
|
-
"enable": {
|
|
2078
|
-
"title": "Read pages from file system",
|
|
2079
|
-
"default": false,
|
|
2080
|
-
"type": "boolean"
|
|
2081
|
-
},
|
|
2082
|
-
"routesDir": {
|
|
2083
|
-
"title": "Folder with pages from which static routers are generated",
|
|
2084
|
-
"default": "routes",
|
|
2085
|
-
"anyOf": [
|
|
2086
|
-
{
|
|
2087
|
-
"enum": [
|
|
2088
|
-
false
|
|
2089
|
-
],
|
|
2090
|
-
"type": "boolean"
|
|
2091
|
-
},
|
|
2092
|
-
{
|
|
2093
|
-
"type": "string"
|
|
2094
|
-
}
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
"pagesDir": {
|
|
2098
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
2099
|
-
"default": "pages",
|
|
2100
|
-
"anyOf": [
|
|
2101
|
-
{
|
|
2102
|
-
"enum": [
|
|
2103
|
-
false
|
|
2104
|
-
],
|
|
2105
|
-
"type": "boolean"
|
|
2106
|
-
},
|
|
2107
|
-
{
|
|
2108
|
-
"type": "string"
|
|
2109
|
-
}
|
|
2110
|
-
]
|
|
2111
|
-
}
|
|
2112
|
-
},
|
|
2113
|
-
"additionalProperties": false
|
|
2114
|
-
},
|
|
2115
2039
|
"transpilation": {
|
|
2116
2040
|
"title": "experimental settings for code transpilation",
|
|
2117
2041
|
"default": {},
|
|
@@ -2131,16 +2055,6 @@
|
|
|
2131
2055
|
}
|
|
2132
2056
|
},
|
|
2133
2057
|
"additionalProperties": false
|
|
2134
|
-
},
|
|
2135
|
-
"webpackResolveAlias": {
|
|
2136
|
-
"title": "Browser package resolve aliases. E.g. { \"stream\": \"stream-browserify\" }",
|
|
2137
|
-
"additionalProperties": true,
|
|
2138
|
-
"type": "object"
|
|
2139
|
-
},
|
|
2140
|
-
"webpackProvide": {
|
|
2141
|
-
"title": "Browser packages to provide with ProvidePlugin. E.g. { \"Buffer\": [\"buffer\", \"Buffer\"] }",
|
|
2142
|
-
"additionalProperties": true,
|
|
2143
|
-
"type": "object"
|
|
2144
2058
|
}
|
|
2145
2059
|
}
|
|
2146
2060
|
}
|
|
@@ -2337,49 +2251,6 @@
|
|
|
2337
2251
|
},
|
|
2338
2252
|
"additionalProperties": false
|
|
2339
2253
|
},
|
|
2340
|
-
"fileSystemPages": {
|
|
2341
|
-
"title": "experimental settings for File-System Routing feature",
|
|
2342
|
-
"default": {},
|
|
2343
|
-
"type": "object",
|
|
2344
|
-
"properties": {
|
|
2345
|
-
"enable": {
|
|
2346
|
-
"title": "Read pages from file system",
|
|
2347
|
-
"default": false,
|
|
2348
|
-
"type": "boolean"
|
|
2349
|
-
},
|
|
2350
|
-
"routesDir": {
|
|
2351
|
-
"title": "Folder with pages from which static routers are generated",
|
|
2352
|
-
"default": "routes",
|
|
2353
|
-
"anyOf": [
|
|
2354
|
-
{
|
|
2355
|
-
"enum": [
|
|
2356
|
-
false
|
|
2357
|
-
],
|
|
2358
|
-
"type": "boolean"
|
|
2359
|
-
},
|
|
2360
|
-
{
|
|
2361
|
-
"type": "string"
|
|
2362
|
-
}
|
|
2363
|
-
]
|
|
2364
|
-
},
|
|
2365
|
-
"pagesDir": {
|
|
2366
|
-
"title": "Folder with components which can be manually added to static routers",
|
|
2367
|
-
"default": "pages",
|
|
2368
|
-
"anyOf": [
|
|
2369
|
-
{
|
|
2370
|
-
"enum": [
|
|
2371
|
-
false
|
|
2372
|
-
],
|
|
2373
|
-
"type": "boolean"
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
"type": "string"
|
|
2377
|
-
}
|
|
2378
|
-
]
|
|
2379
|
-
}
|
|
2380
|
-
},
|
|
2381
|
-
"additionalProperties": false
|
|
2382
|
-
},
|
|
2383
2254
|
"transpilation": {
|
|
2384
2255
|
"title": "experimental settings for code transpilation",
|
|
2385
2256
|
"default": {},
|