bundle-stats 4.5.3-alpha.2 → 4.5.3-alpha.4
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 +9 -9
- package/lib/run.js +1 -11
- package/lib/run.js.map +1 -1
- package/package.json +7 -11
package/README.md
CHANGED
|
@@ -195,17 +195,17 @@ The option can be disabled using `--no-compare` option.
|
|
|
195
195
|
|
|
196
196
|
### :cyclone: [relative-ci.com](https://relative-ci.com?utm_medium=bundle-stats-cli)
|
|
197
197
|
|
|
198
|
-
####
|
|
198
|
+
#### Optimize your web app's performance with automated bundle stats analysis and monitoring.
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
- :crystal_ball: In-depth bundle stats analysis for every build
|
|
201
|
+
- :chart_with_upwards_trend: Monitor bundle stats changes and identify opportunities for optimizations
|
|
202
|
+
- :bell: [Rule based automated review flow](https://relative-ci.com/documentation/setup/configure/integrations/github-commit-status-review?utm_medium=bundle-stats-cli), or get notified via [GitHub Pull Request comments](https://relative-ci.com/documentation/setup/configure/integrations/github-pull-request-comment?utm_medium=bundle-stats-cli), [GitHub check reports](https://relative-ci.com/documentation/setup/configure/integrations/github-check-report?utm_medium=bundle-stats-cli) and [Slack messages](https://relative-ci.com/documentation/setup/configure/integrations/slack-notification?utm_medium=bundle-stats-cli)
|
|
203
|
+
- :wrench: Support for **webpack** and beta support for **Vite**/**Rollup**
|
|
204
|
+
- :hammer: Support for all major CI services(CircleCI, GitHub Actions, Gitlab CI, Jenkins, Travis CI)
|
|
205
|
+
- :nut_and_bolt: Support for **npm**, **yarn** and **pnpm**; support for monorepos
|
|
206
|
+
- :two_hearts: **Always free** for **Open Source**
|
|
201
207
|
|
|
202
|
-
|
|
203
|
-
- :chart_with_upwards_trend: Monitor webpack bundle stats changes and identify tendencies over extended periods
|
|
204
|
-
- :bell: Get notified via GitHub Checks, GitHub Pull Request comments, and Slack notifications
|
|
205
|
-
- :hammer: Support for all major CI services (CircleCI, GitHub Actions, Gitlab CI, Jenkins, Travis CI)
|
|
206
|
-
- :two_hearts: Always free for Open Source
|
|
207
|
-
|
|
208
|
-
[Try for free](https://relative-ci.com?utm_medium=bundle-stats-cli)
|
|
208
|
+
[:rocket: Get started](https://relative-ci.com?utm_medium=bundle-stats-cli)
|
|
209
209
|
|
|
210
210
|
### :first_quarter_moon: [relative-ci/compare](https://compare.relative-ci.com)
|
|
211
211
|
|
package/lib/run.js
CHANGED
|
@@ -4,14 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const path_1 = __importDefault(require("path"));
|
|
7
|
-
const fs_1 = require("fs");
|
|
8
7
|
const fs_extra_1 = require("fs-extra");
|
|
9
8
|
const listr2_1 = require("listr2");
|
|
10
9
|
const lodash_1 = require("lodash");
|
|
11
10
|
const boxen_1 = __importDefault(require("boxen"));
|
|
12
|
-
const stream_json_1 = require("stream-json");
|
|
13
|
-
const stream_chain_1 = require("stream-chain");
|
|
14
|
-
const Assembler_1 = __importDefault(require("stream-json/Assembler"));
|
|
15
11
|
require("@bundle-stats/utils/lib/polyfills");
|
|
16
12
|
const utils_1 = require("@bundle-stats/utils");
|
|
17
13
|
const plugin_webpack_filter_1 = __importDefault(require("@bundle-stats/plugin-webpack-filter"));
|
|
@@ -37,13 +33,7 @@ async function run(options) {
|
|
|
37
33
|
{
|
|
38
34
|
title: 'Read Webpack stats files',
|
|
39
35
|
task: async (ctx) => {
|
|
40
|
-
const sources = await Promise.all(artifactFilepaths.map((filepath) =>
|
|
41
|
-
const pipeline = (0, stream_chain_1.chain)([(0, fs_1.createReadStream)(filepath), (0, stream_json_1.parser)()]);
|
|
42
|
-
const asm = Assembler_1.default.connectTo(pipeline);
|
|
43
|
-
return new Promise((fulfill) => {
|
|
44
|
-
asm.on('done', (data) => fulfill(data.current));
|
|
45
|
-
});
|
|
46
|
-
}));
|
|
36
|
+
const sources = await Promise.all(artifactFilepaths.map((filepath) => (0, cli_utils_1.readJSONStream)(filepath)));
|
|
47
37
|
sources.forEach((source, index) => {
|
|
48
38
|
const invalid = (0, plugin_webpack_validate_1.default)(source);
|
|
49
39
|
if (invalid) {
|
package/lib/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":";;;;;AACA,gDAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":";;;;;AACA,gDAAwB;AACxB,uCAAsC;AACtC,mCAA+B;AAC/B,mCAA6B;AAC7B,kDAA0B;AAE1B,6CAA2C;AAC3C,+CAU6B;AAC7B,gGAAgE;AAChE,oGAAoE;AACpE,uDAQiC;AAEjC,kEAAqC;AAErC,MAAM,kBAAkB,GAAG;IACzB,CAAC,gCAAwB,CAAC,EAAE,KAAK;IACjC,CAAC,2BAAmB,CAAC,EAAE,KAAK;IAC5B,CAAC,+BAAuB,CAAC,EAAE,QAAQ;IACnC,CAAC,4BAAoB,CAAC,EAAE,MAAM;IAC9B,CAAC,+BAAuB,CAAC,EAAE,OAAO;IAClC,CAAC,2BAAmB,CAAC,EAAE,OAAO;IAC9B,CAAC,gCAAwB,CAAC,EAAE,OAAO;CACpC,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,UAAe,EAAE,EAAE;IACnD,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC;IACtC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACvC,CAAC,CAAC;AAWa,KAAK,UAAU,GAAG,CAAC,OAAmB;IACnD,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;IAE7E,MAAM,KAAK,GAAG,IAAI,cAAK,CAAC;QACtB;YACE,KAAK,EAAE,0BAA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AAG,MAAM,CAAC;IAElC,MAAM,UAAU,GAAG,IAAA,yBAAa,EAAC,MAAM,CAAC,CAAC;IAEzC,IAAI,UAAU,EAAE;QACd,MAAM,OAAO,GAAG,IAAA,eAAK,EAAC,UAAU,CAAC,IAAI,EAAE;YACrC,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,wBAAwB,CAAC,UAAU,CAAC;SAClD,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC;KAC7B;IAED,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC5B,MAAM,EAAE,GAAG,CAAC,CAAC,UAAe,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,UAAU,EAAE,CAAC,CAAC,CAAC;AACnE,CAAC;AA1HD,sBA0HC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bundle-stats",
|
|
3
|
-
"version": "4.5.3-alpha.
|
|
3
|
+
"version": "4.5.3-alpha.4",
|
|
4
4
|
"description": "In-depth bundle analyzer for webpack(bundle size, assets, modules, packages)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"bundle-stats": "bin/index.js"
|
|
@@ -49,17 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/cli#readme",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@bundle-stats/cli-utils": "^4.5.3-alpha.
|
|
53
|
-
"@bundle-stats/plugin-webpack-filter": "^4.5.3-alpha.
|
|
54
|
-
"@bundle-stats/plugin-webpack-validate": "^4.5.3-alpha.
|
|
55
|
-
"@bundle-stats/utils": "^4.5.3-alpha.
|
|
52
|
+
"@bundle-stats/cli-utils": "^4.5.3-alpha.4",
|
|
53
|
+
"@bundle-stats/plugin-webpack-filter": "^4.5.3-alpha.4",
|
|
54
|
+
"@bundle-stats/plugin-webpack-validate": "^4.5.3-alpha.4",
|
|
55
|
+
"@bundle-stats/utils": "^4.5.3-alpha.4",
|
|
56
56
|
"boxen": "^5.0.0",
|
|
57
57
|
"core-js": "^3.21.0",
|
|
58
58
|
"fs-extra": "^11.0.0",
|
|
59
59
|
"listr2": "^5.0.1",
|
|
60
60
|
"lodash": "^4.17.0",
|
|
61
|
-
"stream-chain": "^2.2.5",
|
|
62
|
-
"stream-json": "^1.8.0",
|
|
63
61
|
"update-notifier": "^5.0.0",
|
|
64
62
|
"yargs": "^17.4.0"
|
|
65
63
|
},
|
|
@@ -69,12 +67,10 @@
|
|
|
69
67
|
"@playwright/test": "1.36.2",
|
|
70
68
|
"@types/fs-extra": "^11.0.0",
|
|
71
69
|
"@types/listr": "^0.14.4",
|
|
72
|
-
"@types/stream-chain": "^2.0.1",
|
|
73
|
-
"@types/stream-json": "^1.7.3",
|
|
74
70
|
"@types/yargs": "^17.0.20",
|
|
75
71
|
"http-server": "14.1.1",
|
|
76
|
-
"jest": "29.6.
|
|
72
|
+
"jest": "29.6.2",
|
|
77
73
|
"typescript": "5.1.6"
|
|
78
74
|
},
|
|
79
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "b801f2e62296af6f3eef24c4dd7de18ddde3d646"
|
|
80
76
|
}
|