@bundle-stats/utils 4.7.0-rc.5 → 4.7.1
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/webpack/metrics.js
CHANGED
|
@@ -7,39 +7,39 @@ const types_1 = require("./types");
|
|
|
7
7
|
exports.metrics = {
|
|
8
8
|
[types_1.Metric.BUNDLE_SIZE]: {
|
|
9
9
|
label: 'Bundle Size',
|
|
10
|
-
description: 'The total size of the assets processed by the bundler',
|
|
10
|
+
description: 'The total file size of the assets generated or processed by the bundler',
|
|
11
11
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
12
12
|
type: metrics_1.METRIC_TYPE_FILE_SIZE,
|
|
13
13
|
},
|
|
14
14
|
[types_1.Metric.INITIAL_SIZE_JS]: {
|
|
15
15
|
label: 'Initial JS',
|
|
16
|
-
description: 'The total size of JavaScript initial chunks',
|
|
16
|
+
description: 'The total file size of the JavaScript initial chunks',
|
|
17
17
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
18
18
|
type: metrics_1.METRIC_TYPE_FILE_SIZE,
|
|
19
19
|
},
|
|
20
20
|
[types_1.Metric.INITIAL_SIZE_CSS]: {
|
|
21
21
|
label: 'Initial CSS',
|
|
22
|
-
description: 'The total size of CSS initial chunks',
|
|
22
|
+
description: 'The total file size of the CSS initial chunks',
|
|
23
23
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
24
24
|
type: metrics_1.METRIC_TYPE_FILE_SIZE,
|
|
25
25
|
},
|
|
26
26
|
[types_1.Metric.CACHE_INVALIDATION]: {
|
|
27
27
|
label: 'Cache Invalidation',
|
|
28
|
-
description: 'The ratio between the total changed assets and total
|
|
28
|
+
description: 'The ratio between the total of the changed assets and the total file size(Bundle Size)',
|
|
29
29
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
30
30
|
type: metrics_1.METRIC_TYPE_PERCENTAGE,
|
|
31
31
|
biggerIsBetter: false,
|
|
32
32
|
},
|
|
33
33
|
[types_1.Metric.CHUNK_COUNT]: {
|
|
34
34
|
label: 'Chunks',
|
|
35
|
-
description: 'The total number of chunks',
|
|
35
|
+
description: 'The total number of chunks generated by the bundler',
|
|
36
36
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
37
37
|
type: metrics_1.METRIC_TYPE_NUMERIC,
|
|
38
38
|
biggerIsBetter: false,
|
|
39
39
|
},
|
|
40
40
|
[types_1.Metric.ASSET_COUNT]: {
|
|
41
41
|
label: 'Assets',
|
|
42
|
-
description: 'Total number of assets',
|
|
42
|
+
description: 'Total number of assets generated or produced by the bundler',
|
|
43
43
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
44
44
|
type: metrics_1.METRIC_TYPE_NUMERIC,
|
|
45
45
|
biggerIsBetter: false,
|
|
@@ -53,7 +53,7 @@ exports.metrics = {
|
|
|
53
53
|
},
|
|
54
54
|
[types_1.Metric.DUPLICATE_MODULES_COUNT]: {
|
|
55
55
|
label: 'Duplicate Modules',
|
|
56
|
-
description: 'The total number of
|
|
56
|
+
description: 'The total number of modules that belong to more than one chunk',
|
|
57
57
|
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
|
|
58
58
|
type: metrics_1.METRIC_TYPE_NUMERIC,
|
|
59
59
|
biggerIsBetter: false,
|
|
@@ -74,7 +74,7 @@ exports.metrics = {
|
|
|
74
74
|
},
|
|
75
75
|
[types_1.Metric.DUPLICATE_PACKAGES_COUNT]: {
|
|
76
76
|
label: 'Duplicate Packages',
|
|
77
|
-
description: 'The total number of
|
|
77
|
+
description: 'The total number of duplicate packages',
|
|
78
78
|
url: 'https://relative-ci.com/documentation/metrics-and-data#packages',
|
|
79
79
|
type: metrics_1.METRIC_TYPE_NUMERIC,
|
|
80
80
|
biggerIsBetter: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/webpack/metrics.js"],"names":[],"mappings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c,CAAC,EAAE;YACvB,KAAK,EAAE,6BAAgB,CAAC,GAAG;YAC3B,IAAI,EAAE,+BAAqB;SAC5B;QACD,CAAC,cAAM,CAAC,gBAAgB,CAAC,EAAE;YACzB,KAAK,EAAE,6BAAgB,CAAC,KAAK;YAC7B,IAAI,EAAE,+BAAqB;SAC5B;QACD,CAAC,cAAM,CAAC,eAAe,CAAC,EAAE;YACxB,KAAK,EAAE,6BAAgB,CAAC,IAAI;YAC5B,IAAI,EAAE,+BAAqB;SAC5B;QACD,CAAC,cAAM,CAAC,eAAe,CAAC,EAAE;YACxB,KAAK,EAAE,6BAAgB,CAAC,IAAI;YAC5B,IAAI,EAAE,+BAAqB;SAC5B;QACD,CAAC,cAAM,CAAC,gBAAgB,CAAC,EAAE;YACzB,KAAK,EAAE,6BAAgB,CAAC,KAAK;YAC7B,IAAI,EAAE,+BAAqB;SAC5B;KACF;CACF,CAAC"}
|
|
@@ -4,39 +4,39 @@ import { Metric } from './types';
|
|
|
4
4
|
export const metrics = {
|
|
5
5
|
[Metric.BUNDLE_SIZE]: {
|
|
6
6
|
label: 'Bundle Size',
|
|
7
|
-
description: 'The total size of the assets processed by the bundler',
|
|
7
|
+
description: 'The total file size of the assets generated or processed by the bundler',
|
|
8
8
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
9
9
|
type: METRIC_TYPE_FILE_SIZE,
|
|
10
10
|
},
|
|
11
11
|
[Metric.INITIAL_SIZE_JS]: {
|
|
12
12
|
label: 'Initial JS',
|
|
13
|
-
description: 'The total size of JavaScript initial chunks',
|
|
13
|
+
description: 'The total file size of the JavaScript initial chunks',
|
|
14
14
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
15
15
|
type: METRIC_TYPE_FILE_SIZE,
|
|
16
16
|
},
|
|
17
17
|
[Metric.INITIAL_SIZE_CSS]: {
|
|
18
18
|
label: 'Initial CSS',
|
|
19
|
-
description: 'The total size of CSS initial chunks',
|
|
19
|
+
description: 'The total file size of the CSS initial chunks',
|
|
20
20
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
21
21
|
type: METRIC_TYPE_FILE_SIZE,
|
|
22
22
|
},
|
|
23
23
|
[Metric.CACHE_INVALIDATION]: {
|
|
24
24
|
label: 'Cache Invalidation',
|
|
25
|
-
description: 'The ratio between the total changed assets and total
|
|
25
|
+
description: 'The ratio between the total of the changed assets and the total file size(Bundle Size)',
|
|
26
26
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
27
27
|
type: METRIC_TYPE_PERCENTAGE,
|
|
28
28
|
biggerIsBetter: false,
|
|
29
29
|
},
|
|
30
30
|
[Metric.CHUNK_COUNT]: {
|
|
31
31
|
label: 'Chunks',
|
|
32
|
-
description: 'The total number of chunks',
|
|
32
|
+
description: 'The total number of chunks generated by the bundler',
|
|
33
33
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
34
34
|
type: METRIC_TYPE_NUMERIC,
|
|
35
35
|
biggerIsBetter: false,
|
|
36
36
|
},
|
|
37
37
|
[Metric.ASSET_COUNT]: {
|
|
38
38
|
label: 'Assets',
|
|
39
|
-
description: 'Total number of assets',
|
|
39
|
+
description: 'Total number of assets generated or produced by the bundler',
|
|
40
40
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
41
41
|
type: METRIC_TYPE_NUMERIC,
|
|
42
42
|
biggerIsBetter: false,
|
|
@@ -50,7 +50,7 @@ export const metrics = {
|
|
|
50
50
|
},
|
|
51
51
|
[Metric.DUPLICATE_MODULES_COUNT]: {
|
|
52
52
|
label: 'Duplicate Modules',
|
|
53
|
-
description: 'The total number of
|
|
53
|
+
description: 'The total number of modules that belong to more than one chunk',
|
|
54
54
|
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
|
|
55
55
|
type: METRIC_TYPE_NUMERIC,
|
|
56
56
|
biggerIsBetter: false,
|
|
@@ -71,7 +71,7 @@ export const metrics = {
|
|
|
71
71
|
},
|
|
72
72
|
[Metric.DUPLICATE_PACKAGES_COUNT]: {
|
|
73
73
|
label: 'Duplicate Packages',
|
|
74
|
-
description: 'The total number of
|
|
74
|
+
description: 'The total number of duplicate packages',
|
|
75
75
|
url: 'https://relative-ci.com/documentation/metrics-and-data#packages',
|
|
76
76
|
type: METRIC_TYPE_NUMERIC,
|
|
77
77
|
biggerIsBetter: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/webpack/metrics.js"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;QACpB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/webpack/metrics.js"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;QACpB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,yEAAyE;QACtF,GAAG,EAAE,+DAA+D;QACpE,IAAI,EAAE,qBAAqB;KAC5B;IACD,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;QACxB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,sDAAsD;QACnE,GAAG,EAAE,+DAA+D;QACpE,IAAI,EAAE,qBAAqB;KAC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|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/utils",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"description": "BundleStats utils",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/utils#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@bundle-stats/plugin-webpack-filter": "^4.7.
|
|
39
|
-
"@bundle-stats/plugin-webpack-validate": "^4.7.
|
|
38
|
+
"@bundle-stats/plugin-webpack-filter": "^4.7.1",
|
|
39
|
+
"@bundle-stats/plugin-webpack-validate": "^4.7.1",
|
|
40
40
|
"query-string": "7.1.3",
|
|
41
41
|
"serialize-query-params": "2.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/jest": "29.5.5",
|
|
45
|
-
"@types/lodash": "4.14.
|
|
45
|
+
"@types/lodash": "4.14.199",
|
|
46
46
|
"core-js": "3.32.2",
|
|
47
47
|
"jest": "29.7.0",
|
|
48
48
|
"jest-cli": "29.7.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"core-js": "^3.0.0",
|
|
58
58
|
"lodash": "^4.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0d87a5b548e5298ae07dc3f6358d44119190dde0"
|
|
61
61
|
}
|
package/src/webpack/metrics.js
CHANGED
|
@@ -9,39 +9,40 @@ import { Metric } from './types';
|
|
|
9
9
|
export const metrics = {
|
|
10
10
|
[Metric.BUNDLE_SIZE]: {
|
|
11
11
|
label: 'Bundle Size',
|
|
12
|
-
description: 'The total size of the assets processed by the bundler',
|
|
12
|
+
description: 'The total file size of the assets generated or processed by the bundler',
|
|
13
13
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
14
14
|
type: METRIC_TYPE_FILE_SIZE,
|
|
15
15
|
},
|
|
16
16
|
[Metric.INITIAL_SIZE_JS]: {
|
|
17
17
|
label: 'Initial JS',
|
|
18
|
-
description: 'The total size of JavaScript initial chunks',
|
|
18
|
+
description: 'The total file size of the JavaScript initial chunks',
|
|
19
19
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
20
20
|
type: METRIC_TYPE_FILE_SIZE,
|
|
21
21
|
},
|
|
22
22
|
[Metric.INITIAL_SIZE_CSS]: {
|
|
23
23
|
label: 'Initial CSS',
|
|
24
|
-
description: 'The total size of CSS initial chunks',
|
|
24
|
+
description: 'The total file size of the CSS initial chunks',
|
|
25
25
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
26
26
|
type: METRIC_TYPE_FILE_SIZE,
|
|
27
27
|
},
|
|
28
28
|
[Metric.CACHE_INVALIDATION]: {
|
|
29
29
|
label: 'Cache Invalidation',
|
|
30
|
-
description:
|
|
30
|
+
description:
|
|
31
|
+
'The ratio between the total of the changed assets and the total file size(Bundle Size)',
|
|
31
32
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
32
33
|
type: METRIC_TYPE_PERCENTAGE,
|
|
33
34
|
biggerIsBetter: false,
|
|
34
35
|
},
|
|
35
36
|
[Metric.CHUNK_COUNT]: {
|
|
36
37
|
label: 'Chunks',
|
|
37
|
-
description: 'The total number of chunks',
|
|
38
|
+
description: 'The total number of chunks generated by the bundler',
|
|
38
39
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
39
40
|
type: METRIC_TYPE_NUMERIC,
|
|
40
41
|
biggerIsBetter: false,
|
|
41
42
|
},
|
|
42
43
|
[Metric.ASSET_COUNT]: {
|
|
43
44
|
label: 'Assets',
|
|
44
|
-
description: 'Total number of assets',
|
|
45
|
+
description: 'Total number of assets generated or produced by the bundler',
|
|
45
46
|
url: 'https://relative-ci.com/documentation/metrics-and-data#assets',
|
|
46
47
|
type: METRIC_TYPE_NUMERIC,
|
|
47
48
|
biggerIsBetter: false,
|
|
@@ -55,7 +56,7 @@ export const metrics = {
|
|
|
55
56
|
},
|
|
56
57
|
[Metric.DUPLICATE_MODULES_COUNT]: {
|
|
57
58
|
label: 'Duplicate Modules',
|
|
58
|
-
description: 'The total number of
|
|
59
|
+
description: 'The total number of modules that belong to more than one chunk',
|
|
59
60
|
url: 'https://relative-ci.com/documentation/metrics-and-data#modules-1',
|
|
60
61
|
type: METRIC_TYPE_NUMERIC,
|
|
61
62
|
biggerIsBetter: false,
|
|
@@ -76,7 +77,7 @@ export const metrics = {
|
|
|
76
77
|
},
|
|
77
78
|
[Metric.DUPLICATE_PACKAGES_COUNT]: {
|
|
78
79
|
label: 'Duplicate Packages',
|
|
79
|
-
description: 'The total number of
|
|
80
|
+
description: 'The total number of duplicate packages',
|
|
80
81
|
url: 'https://relative-ci.com/documentation/metrics-and-data#packages',
|
|
81
82
|
type: METRIC_TYPE_NUMERIC,
|
|
82
83
|
biggerIsBetter: false,
|