@bymaksym/loadline 0.1.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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +182 -0
  3. package/bin/loadline.js +50 -0
  4. package/dist/cli/cli/args.js +324 -0
  5. package/dist/cli/cli/args.types.js +3 -0
  6. package/dist/cli/cli/gates.js +173 -0
  7. package/dist/cli/cli/gates.types.js +3 -0
  8. package/dist/cli/cli/main.js +156 -0
  9. package/dist/cli/cli/read-build.js +382 -0
  10. package/dist/cli/cli/read-build.types.js +3 -0
  11. package/dist/cli/cli/render-json.js +116 -0
  12. package/dist/cli/cli/render-json.types.js +10 -0
  13. package/dist/cli/cli/render-markdown.js +30 -0
  14. package/dist/cli/cli/render-pr.js +76 -0
  15. package/dist/cli/cli/render-sarif.js +83 -0
  16. package/dist/cli/cli/render-text.js +388 -0
  17. package/dist/cli/cli/report.js +196 -0
  18. package/dist/cli/cli/report.types.js +3 -0
  19. package/dist/cli/cli/self-check.js +85 -0
  20. package/dist/cli/cli/text.js +180 -0
  21. package/dist/cli/cli/text.types.js +10 -0
  22. package/dist/cli/src/app/core/analysis/analysis.js +661 -0
  23. package/dist/cli/src/app/core/analysis/analysis.types.js +6 -0
  24. package/dist/cli/src/app/core/analysis/barrels.js +128 -0
  25. package/dist/cli/src/app/core/analysis/blast.js +172 -0
  26. package/dist/cli/src/app/core/analysis/cycles.js +110 -0
  27. package/dist/cli/src/app/core/analysis/delivery.js +143 -0
  28. package/dist/cli/src/app/core/analysis/entries.js +217 -0
  29. package/dist/cli/src/app/core/analysis/exclusive.js +91 -0
  30. package/dist/cli/src/app/core/analysis/importers.js +38 -0
  31. package/dist/cli/src/app/core/analysis/insights.js +202 -0
  32. package/dist/cli/src/app/core/analysis/insights.types.js +10 -0
  33. package/dist/cli/src/app/core/analysis/invariant.js +69 -0
  34. package/dist/cli/src/app/core/analysis/metafile.types.js +44 -0
  35. package/dist/cli/src/app/core/analysis/module-graph.js +192 -0
  36. package/dist/cli/src/app/core/analysis/sourcemap.js +231 -0
  37. package/dist/cli/src/app/core/analysis/sourcemap.types.js +3 -0
  38. package/dist/cli/src/app/core/analysis/split-drift.js +47 -0
  39. package/dist/cli/src/app/core/assets/assets.js +296 -0
  40. package/dist/cli/src/app/core/assets/assets.types.js +11 -0
  41. package/dist/cli/src/app/core/baseline/baseline.js +0 -0
  42. package/dist/cli/src/app/core/baseline/baseline.types.js +3 -0
  43. package/dist/cli/src/app/core/caching/caching.js +241 -0
  44. package/dist/cli/src/app/core/caching/caching.types.js +10 -0
  45. package/dist/cli/src/app/core/caching/from-analysis.js +73 -0
  46. package/dist/cli/src/app/core/config/loadline-config.js +110 -0
  47. package/dist/cli/src/app/core/config/loadline-config.types.js +12 -0
  48. package/dist/cli/src/app/core/criteria/criteria.js +228 -0
  49. package/dist/cli/src/app/core/criteria/criteria.types.js +3 -0
  50. package/dist/cli/src/app/core/deps/deps.js +225 -0
  51. package/dist/cli/src/app/core/deps/deps.types.js +15 -0
  52. package/dist/cli/src/app/core/export/markdown-table.utils.js +40 -0
  53. package/dist/cli/src/app/core/export/summary.js +72 -0
  54. package/dist/cli/src/app/core/findings/actions.js +59 -0
  55. package/dist/cli/src/app/core/findings/assets.js +130 -0
  56. package/dist/cli/src/app/core/findings/caching.js +165 -0
  57. package/dist/cli/src/app/core/findings/compose.js +41 -0
  58. package/dist/cli/src/app/core/findings/deps.js +66 -0
  59. package/dist/cli/src/app/core/findings/effort.js +117 -0
  60. package/dist/cli/src/app/core/findings/finding-html.js +13 -0
  61. package/dist/cli/src/app/core/findings/finding-plain.js +26 -0
  62. package/dist/cli/src/app/core/findings/finding-text.js +1231 -0
  63. package/dist/cli/src/app/core/findings/finding.types.js +80 -0
  64. package/dist/cli/src/app/core/findings/findings.js +514 -0
  65. package/dist/cli/src/app/core/findings/graph.js +167 -0
  66. package/dist/cli/src/app/core/findings/own-in-boot.js +88 -0
  67. package/dist/cli/src/app/core/findings/page.js +49 -0
  68. package/dist/cli/src/app/core/findings/requests.js +185 -0
  69. package/dist/cli/src/app/core/findings/scan.js +126 -0
  70. package/dist/cli/src/app/core/findings/shipped.js +244 -0
  71. package/dist/cli/src/app/core/findings/situation.js +116 -0
  72. package/dist/cli/src/app/core/format/format.utils.js +204 -0
  73. package/dist/cli/src/app/core/i18n/en.js +819 -0
  74. package/dist/cli/src/app/core/i18n/es.js +822 -0
  75. package/dist/cli/src/app/core/i18n/ui-strings.js +11 -0
  76. package/dist/cli/src/app/core/i18n/ui.js +7 -0
  77. package/dist/cli/src/app/core/intake/bundle-graph.js +346 -0
  78. package/dist/cli/src/app/core/intake/bundle-graph.types.js +3 -0
  79. package/dist/cli/src/app/core/intake/dist-files.js +160 -0
  80. package/dist/cli/src/app/core/intake/index-html.js +292 -0
  81. package/dist/cli/src/app/core/json/json.utils.js +55 -0
  82. package/dist/cli/src/app/core/measurement/measurement.types.js +14 -0
  83. package/dist/cli/src/app/core/project/budget-advice.js +76 -0
  84. package/dist/cli/src/app/core/project/project-context.js +394 -0
  85. package/dist/cli/src/app/core/project/project-context.types.js +3 -0
  86. package/dist/cli/src/app/core/scan/catalog.js +67 -0
  87. package/dist/cli/src/app/core/scan/scan.js +280 -0
  88. package/dist/cli/src/app/core/scan/scan.types.js +10 -0
  89. package/dist/cli/src/app/core/scan/secrets.js +0 -0
  90. package/dist/cli/src/app/core/situation/situation.js +261 -0
  91. package/dist/cli/src/app/core/situation/situation.types.js +19 -0
  92. package/dist/cli/src/app/core/timing/timing.js +87 -0
  93. package/dist/cli/src/app/core/timing/timing.types.js +3 -0
  94. package/dist/cli/src/app/core/whatif/defer.js +68 -0
  95. package/dist/cli/src/app/state/report-messages.utils.js +73 -0
  96. package/docs/HOW-IT-WORKS.md +1087 -0
  97. package/loadline.html +78 -0
  98. package/package.json +154 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ /**
3
+ * `--self-check`: the pipeline asking whether Loadline still understands the shape of this build.
4
+ *
5
+ * It is not about the bundle. Everything else the command prints is a fact about the application;
6
+ * this is a fact about the tool, so it prints on its own and decides the exit code on its own.
7
+ *
8
+ * What it compares is in `core/analysis/invariant.ts`. What is here is how it reads and when it
9
+ * fails: a check that could not run is a failure too, because a green step that checked nothing is
10
+ * the failure mode this whole thing exists to remove.
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.selfCheck = void 0;
14
+ const invariant_1 = require("../src/app/core/analysis/invariant");
15
+ const list = (chunks) => chunks.map(chunk => ` ${chunk}`).join('\n');
16
+ const selfCheck = (meta, analysis, announced) => {
17
+ if (!announced) {
18
+ return {
19
+ ok: false,
20
+ report: 'Self-check needs the index.html of the build: it is the second, independent answer.\n' +
21
+ 'Pass the build folder as the target, or add --dist pointing at it.',
22
+ };
23
+ }
24
+ // What the analysis calls a screen's chunk, so a page that preloads its own route's chunks is
25
+ // told apart from the two readers disagreeing about what everybody downloads.
26
+ const screenChunks = new Set(analysis.chunkScreens.keys());
27
+ const check = (0, invariant_1.checkBoot)(meta.outputs, analysis.bootChunks, announced, screenChunks);
28
+ if (!check) {
29
+ return {
30
+ ok: false,
31
+ report: 'Self-check could not run: the index.html of the build names no chunk of it.\n' +
32
+ 'Either the page belongs to another build, or the output shape changed enough that\n' +
33
+ 'nothing lines up — which is the thing this check is for.',
34
+ };
35
+ }
36
+ if ((0, invariant_1.isSameBoot)(check)) {
37
+ const passed = `Self-check passed: the import graph and index.html agree on all ${check.agreed} bootstrap chunks.`;
38
+ if (check.onlyInPage.length > 0) {
39
+ // Said, not swallowed: these are bytes of the first load that no figure of the report
40
+ // accounts for, and knowing which they are is the difference between "fine" and "fine
41
+ // as far as anything here can tell".
42
+ return {
43
+ ok: true,
44
+ report: [
45
+ passed,
46
+ '',
47
+ `It also announces ${check.onlyInPage.length} chunk(s) the import graph cannot place:`,
48
+ list(check.onlyInPage),
49
+ 'Usually a dynamic import whose path is built at run time — VitePress writes one per',
50
+ 'page — which no reader of the files can follow. Too few to be the build changing shape.',
51
+ ].join('\n'),
52
+ };
53
+ }
54
+ if (check.preloadedRoutes.length === 0) {
55
+ return { ok: true, report: passed };
56
+ }
57
+ // Said out loud rather than dropped: these chunks really are fetched with the first load of
58
+ // this page, and a build that prerenders one page per route is a different kind of build.
59
+ return {
60
+ ok: true,
61
+ report: [
62
+ passed,
63
+ '',
64
+ `This page also announces ${check.preloadedRoutes.length} chunk(s) the graph attributes to a screen:`,
65
+ list(check.preloadedRoutes),
66
+ 'That is a build with one page per route — index.html is the home route, not a shell —',
67
+ 'so those are preloaded route chunks and not part of what every screen pays.',
68
+ ].join('\n'),
69
+ };
70
+ }
71
+ const parts = [
72
+ 'Self-check FAILED: the two ways of working out the bootstrap disagree.',
73
+ '',
74
+ `Agreed on ${check.agreed} chunk(s).`,
75
+ ];
76
+ if (check.onlyInGraph.length > 0) {
77
+ parts.push('', 'Called bootstrap by the import graph, never reached from index.html:', list(check.onlyInGraph));
78
+ }
79
+ if (check.onlyInPage.length > 0) {
80
+ parts.push('', 'Reached from index.html, not called bootstrap by the import graph:', list(check.onlyInPage));
81
+ }
82
+ parts.push('', 'One of the two readers is wrong about this build. Every per-screen figure is measured', 'against the bootstrap, so they are all suspect until this passes.');
83
+ return { ok: false, report: parts.join('\n') };
84
+ };
85
+ exports.selfCheck = selfCheck;
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ /** Both languages of the command's own words. See `text.types.ts` for why they are kept apart. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CLI_TEXT = void 0;
5
+ const EN = {
6
+ lead: (stats, unit) => `${stats} · figures ${unit}`,
7
+ against: (baseline, date) => `compared against ${baseline} (${date})`,
8
+ pageCss: (size, files, total) => `Plus ${size} of CSS in ${files === 1 ? 'the stylesheet' : `${files} stylesheets`} the same page asks for, ` +
9
+ `which block the paint and are not in the figure above: ${total} really comes down first. ` +
10
+ 'This report breaks down JavaScript only.',
11
+ firstTrip: (total, files, parts) => `The whole first trip is ${total} across ${files} ${files === 1 ? 'file' : 'files'} — ${parts} — ` +
12
+ 'counting everything index.html asks for before anything appears. The figure above is the ' +
13
+ 'JavaScript half, which is the half this report can break down.',
14
+ serverLeftOut: count => `${count} output${count === 1 ? '' : 's'} of this build are not in the browser folder ` +
15
+ '(the server side of a rendered build): left out, because nobody downloads them.',
16
+ blocked: 'The baseline was measured in another unit: nothing is compared. Pass --dist, or --mode raw.',
17
+ exactSplit: 'weight per file read from the source maps',
18
+ headBoot: 'Bootstrap',
19
+ headScreens: 'Screens',
20
+ headSignals: 'Signals',
21
+ headGates: 'Gates',
22
+ headActions: 'What to fix first',
23
+ headTime: 'Estimated time',
24
+ headBudget: 'Suggested budget',
25
+ actionsNote: 'An order over the signals below, not a selection: every one of them is still there.',
26
+ colAction: 'Signal',
27
+ colSaving: 'Off the first load',
28
+ colEffort: 'Effort',
29
+ effortLabel: {
30
+ config: 'configuration',
31
+ import: 'one import',
32
+ refactor: 'refactor',
33
+ none: '',
34
+ },
35
+ savingCell: saving => saving || '—',
36
+ totalSaving: (bytes, after, count) => `Acting on all ${count} would take ${bytes} off the first load, leaving it at about ${after}. ` +
37
+ 'The figures are raw minified bytes inside the chunk, and they are not added up: the graph is ' +
38
+ 'walked once with every file named above taken out together, so bytes reachable two ways are ' +
39
+ 'counted once.',
40
+ nothingToSave: 'No signal here names a saving that can be measured.',
41
+ profileName: { slow4g: 'slow 4G', fast4g: '4G', cable: 'cable' },
42
+ timeNote: 'An estimate, not a measurement: a model over the bytes, the round trips and three standard ' +
43
+ 'connection profiles. Transfer and latency go by what travels; parse and compile go by raw ' +
44
+ 'bytes, because that is what the engine works on. Latency is editable in the criteria.',
45
+ timeColumns: { profile: 'Connection', transfer: 'Transfer', latency: 'Latency', script: 'Parse', total: 'Total' },
46
+ budgetNote: (warning, error, current) => `Nothing here writes a file. The initial load is ${current} raw (JavaScript and the CSS the page ` +
47
+ `asks for, which is what Angular's initial budget counts), so a warning at ${warning} and an ` +
48
+ `error at ${error} leaves room for a feature and still stops a pipeline.`,
49
+ bootSummary: (files, screens) => `${files} ${files === 1 ? 'file' : 'files'}, downloaded before anything appears · ${screens} ${screens === 1 ? 'screen' : 'screens'}`,
50
+ noScreens: 'No lazy screens: everything is in the bootstrap.',
51
+ fix: 'Fix',
52
+ passed: 'Every gate passed.',
53
+ failed: count => `${count} ${count === 1 ? 'gate' : 'gates'} broken.`,
54
+ noGates: 'No gate was asked for: this run reports and never fails.',
55
+ overBoot: (actual, limit) => `Bootstrap is ${actual}, over the ${limit} allowed.`,
56
+ overScreen: (screen, actual, limit) => `Screen ${screen} downloads ${actual}, over the ${limit} allowed.`,
57
+ overOwn: (screen, actual, limit) => `Own code of ${screen} is ${actual}, over the ${limit} allowed.`,
58
+ growthBoot: (diff, limit) => `Bootstrap grew ${diff}, over the ${limit} allowed.`,
59
+ growthScreen: (screen, diff, limit) => `Screen ${screen} grew ${diff}, over the ${limit} allowed.`,
60
+ growthPctBoot: (percent, limit) => `Bootstrap grew ${percent} %, over the ${limit} % allowed.`,
61
+ growthPctScreen: (screen, percent, limit) => `Screen ${screen} grew ${percent} %, over the ${limit} % allowed.`,
62
+ signalsRaised: (count, level) => `${count} ${count === 1 ? 'signal' : 'signals'} of severity ${level === 'mid' ? 'medium' : 'high'} or above.`,
63
+ newPackages: names => `${names.length} ${names.length === 1 ? 'package has' : 'packages have'} entered the bootstrap: ${names.join(', ')}.`,
64
+ configRead: file => `thresholds and accepted signals from ${file}`,
65
+ configProblem: problem => `loadline.json: ${problem}`,
66
+ accepted: (kind, why, who, until) => `${kind} — ${why}${who ? ` (${who})` : ''}${until ? `, until ${until}` : ', with no end date'}`,
67
+ acceptedExpired: (kind, until) => `${kind} was accepted until ${until}. That date has passed, so it is raised again.`,
68
+ acceptedGrew: (kind, was, now) => `${kind} was accepted at ${was} and is now ${now}. What was agreed to is not what is here, so it is raised again.`,
69
+ headAccepted: 'Accepted, and set aside',
70
+ prFixed: count => `${count} fixed`,
71
+ prNew: count => `${count} new`,
72
+ prDetails: 'The whole report',
73
+ screenBudgetNote: warning => 'And one for the screens. "anyScript" applies to every file the build emits, which is what ' +
74
+ 'makes it usable when the names carry content hashes and a per-bundle budget cannot name ' +
75
+ "anything. It is based on the heaviest screen's own code rather than the average, or it " +
76
+ `fires on the screen that was already the largest the day it was written — ${warning}:`,
77
+ headWhatIf: 'What if it were deferred',
78
+ whatIfNote: 'The saving is exact: the graph is walked without those files, and what stops being ' +
79
+ 'reachable is what stops being downloaded. What is NOT recomputed is the split — which ' +
80
+ 'files end up in which chunk is the bundler’s decision, and a simulated one would produce ' +
81
+ 'round trips and per-screen totals that look measured and are not. So those are unchanged ' +
82
+ 'above, and the last column says who would be paying for it instead.',
83
+ whatIfNobody: 'nothing lazy uses it',
84
+ colWhatIf: 'Deferred',
85
+ colSize: 'In the bootstrap',
86
+ colAfter: 'Bootstrap after',
87
+ colWhoPays: 'Would then be paid by',
88
+ };
89
+ const ES = {
90
+ lead: (stats, unit) => `${stats} · cifras ${unit}`,
91
+ against: (baseline, date) => `comparado con ${baseline} (${date})`,
92
+ pageCss: (size, files, total) => `Más ${size} de CSS en ${files === 1 ? 'la hoja de estilos' : `${files} hojas de estilos`} que pide la misma ` +
93
+ `página, que bloquean el pintado y no están en la cifra de arriba: ${total} es lo que baja de verdad antes ` +
94
+ 'de nada. Este informe desglosa solo el JavaScript.',
95
+ firstTrip: (total, files, parts) => `El primer viaje entero son ${total} en ${files} ${files === 1 ? 'fichero' : 'ficheros'} — ${parts} — ` +
96
+ 'contando todo lo que pide index.html antes de que aparezca nada. La cifra de arriba es la ' +
97
+ 'mitad de JavaScript, que es la que este informe sabe desglosar.',
98
+ serverLeftOut: count => `${count} salida${count === 1 ? '' : 's'} de este build no ${count === 1 ? 'está' : 'están'} en la carpeta ` +
99
+ 'del navegador (el lado servidor de un build con render): fuera, porque nadie las descarga.',
100
+ blocked: 'La línea base se midió en otra unidad: no se compara nada. Pasa --dist, o bien --mode raw.',
101
+ exactSplit: 'peso por fichero leído de los source maps',
102
+ headBoot: 'Bootstrap',
103
+ headScreens: 'Pantallas',
104
+ headSignals: 'Señales',
105
+ headGates: 'Gates',
106
+ headActions: 'Qué arreglo primero',
107
+ headTime: 'Tiempo estimado',
108
+ headBudget: 'Budget sugerido',
109
+ actionsNote: 'Es un orden sobre las señales de abajo, no una selección: todas siguen estando.',
110
+ colAction: 'Señal',
111
+ colSaving: 'Fuera de la primera carga',
112
+ colEffort: 'Esfuerzo',
113
+ effortLabel: {
114
+ config: 'configuración',
115
+ import: 'un import',
116
+ refactor: 'refactor',
117
+ none: '',
118
+ },
119
+ savingCell: saving => saving || '—',
120
+ totalSaving: (bytes, after, count) => `Aplicando las ${count} se quitarían ${bytes} de la primera carga y quedaría en unos ${after}. ` +
121
+ 'Las cifras son bytes minificados en crudo dentro del chunk, y no se suman: el grafo se recorre ' +
122
+ 'una vez quitando de golpe todos los ficheros nombrados arriba, así que lo que se alcanza por dos ' +
123
+ 'caminos se cuenta una vez.',
124
+ nothingToSave: 'Ninguna señal de aquí nombra un ahorro que se pueda medir.',
125
+ profileName: { slow4g: '4G lento', fast4g: '4G', cable: 'cable' },
126
+ timeNote: 'Es una estimación, no una medición: un modelo sobre los bytes, las idas y vueltas y tres perfiles ' +
127
+ 'de conexión estándar. La transferencia y la latencia van por lo que viaja; el parseo y la ' +
128
+ 'compilación van por bytes en crudo, que es sobre lo que trabaja el motor. La latencia se edita ' +
129
+ 'en los criterios.',
130
+ timeColumns: {
131
+ profile: 'Conexión',
132
+ transfer: 'Transferencia',
133
+ latency: 'Latencia',
134
+ script: 'Parseo',
135
+ total: 'Total',
136
+ },
137
+ budgetNote: (warning, error, current) => `Aquí no se escribe ningún fichero. La primera carga son ${current} en crudo (el JavaScript y el CSS ` +
138
+ 'que pide la página, que es lo que cuenta el budget initial de Angular), así que un aviso en ' +
139
+ `${warning} y un error en ${error} deja sitio para una funcionalidad y sigue parando un pipeline.`,
140
+ bootSummary: (files, screens) => `${files} ${files === 1 ? 'fichero' : 'ficheros'}, descargados antes de que aparezca nada · ${screens} ${screens === 1 ? 'pantalla' : 'pantallas'}`,
141
+ noScreens: 'No hay pantallas lazy: todo entra en el bootstrap.',
142
+ fix: 'Qué hacer',
143
+ passed: 'No se ha superado ningún gate.',
144
+ failed: count => `${count} ${count === 1 ? 'gate superado' : 'gates superados'}.`,
145
+ noGates: 'No se ha pedido ningún gate: esta ejecución informa y nunca falla.',
146
+ overBoot: (actual, limit) => `El bootstrap es de ${actual} y el límite está en ${limit}.`,
147
+ overScreen: (screen, actual, limit) => `La pantalla ${screen} descarga ${actual} y el límite está en ${limit}.`,
148
+ overOwn: (screen, actual, limit) => `El código propio de ${screen} es de ${actual} y el límite está en ${limit}.`,
149
+ growthBoot: (diff, limit) => `El bootstrap ha crecido ${diff} y el límite está en ${limit}.`,
150
+ growthScreen: (screen, diff, limit) => `La pantalla ${screen} ha crecido ${diff} y el límite está en ${limit}.`,
151
+ growthPctBoot: (percent, limit) => `El bootstrap ha crecido un ${percent} % y el límite está en el ${limit} %.`,
152
+ growthPctScreen: (screen, percent, limit) => `La pantalla ${screen} ha crecido un ${percent} % y el límite está en el ${limit} %.`,
153
+ signalsRaised: (count, level) => `${count} ${count === 1 ? 'señal' : 'señales'} de gravedad ${level === 'mid' ? 'media' : 'alta'} o superior.`,
154
+ newPackages: names => `${names.length === 1 ? 'Ha entrado 1 paquete' : `Han entrado ${names.length} paquetes`} en el bootstrap: ${names.join(', ')}.`,
155
+ configRead: file => `umbrales y señales aceptadas desde ${file}`,
156
+ configProblem: problem => `loadline.json: ${problem}`,
157
+ accepted: (kind, why, who, until) => `${kind} — ${why}${who ? ` (${who})` : ''}${until ? `, hasta ${until}` : ', sin fecha de caducidad'}`,
158
+ acceptedExpired: (kind, until) => `${kind} se aceptó hasta ${until}. Esa fecha ya ha pasado, así que vuelve a salir.`,
159
+ acceptedGrew: (kind, was, now) => `${kind} se aceptó con ${was} y ahora son ${now}. Lo que se acordó no es lo que hay, así que vuelve a salir.`,
160
+ headAccepted: 'Aceptadas, y apartadas',
161
+ prFixed: count => `${count} resueltas`,
162
+ prNew: count => `${count} nuevas`,
163
+ prDetails: 'El informe entero',
164
+ screenBudgetNote: warning => 'Y otro para las pantallas. «anyScript» aplica a cada fichero que emite el build, que es lo ' +
165
+ 'que lo hace usable cuando los nombres llevan hash y un budget por bundle no puede nombrar ' +
166
+ 'nada. Va sobre el código propio de la pantalla más pesada y no sobre la media, o saltaría ' +
167
+ `con la que ya era la mayor el día que se escribió — ${warning}:`,
168
+ headWhatIf: 'Y si se difiriera',
169
+ whatIfNote: 'El ahorro es exacto: se recorre el grafo sin esos ficheros, y lo que deja de alcanzarse es ' +
170
+ 'lo que deja de descargarse. Lo que NO se recalcula es el troceado —qué ficheros acaban en ' +
171
+ 'qué chunk lo decide el bundler, y simularlo daría idas y vueltas y totales por pantalla que ' +
172
+ 'parecen medidos y no lo son—. Así que esos siguen igual arriba, y la última columna dice ' +
173
+ 'quién lo pagaría en su lugar.',
174
+ whatIfNobody: 'no lo usa nada diferido',
175
+ colWhatIf: 'Diferido',
176
+ colSize: 'En el bootstrap',
177
+ colAfter: 'Bootstrap después',
178
+ colWhoPays: 'Lo pagaría',
179
+ };
180
+ exports.CLI_TEXT = { es: ES, en: EN };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * The words the command uses that the page never says: gate messages, section headings, the
4
+ * summary line. They are here rather than in `core/i18n` because the page has no use for them,
5
+ * and the page's vocabulary is worth keeping as the vocabulary of the page.
6
+ *
7
+ * The signals themselves are not here: those are already bilingual in `core/findings`, and both
8
+ * sides read them from there.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });