@statoscope/cli
Advanced tools
Comparing version 5.24.0 to 5.25.0-alpha.0
@@ -43,2 +43,7 @@ "use strict"; | ||
}) | ||
.option('compression', { | ||
describe: 'use report compression', | ||
type: 'boolean', | ||
default: true, | ||
}) | ||
.array(['input', 'custom-report']) | ||
@@ -62,3 +67,3 @@ .demandOption('input'); | ||
console.log(`Generating Statoscope report to ${argv.output} ...`); | ||
await (0, utils_1.transform)(files, argv.output, customReports); | ||
await (0, utils_1.transform)(files, argv.output, customReports, argv.compression); | ||
console.log(`Statoscope report saved to ${argv.output}`); | ||
@@ -65,0 +70,0 @@ if (argv.open) { |
@@ -49,2 +49,7 @@ "use strict"; | ||
}) | ||
.option('compression', { | ||
describe: 'use report compression', | ||
type: 'boolean', | ||
default: true, | ||
}) | ||
.array(['input', 'custom-report']) | ||
@@ -68,3 +73,3 @@ .demandOption('input'); | ||
const customReports = (0, utils_1.combineCustomReports)(config, argv['custom-report']); | ||
const reportPath = await (0, utils_1.transform)(files, destReportPath, customReports); | ||
const reportPath = await (0, utils_1.transform)(files, destReportPath, customReports, argv.compression); | ||
console.log(`Statoscope report generated to ${destReportPath}`); | ||
@@ -71,0 +76,0 @@ http_1.default |
@@ -9,3 +9,3 @@ import { Webpack } from '@statoscope/webpack-model/webpack'; | ||
export declare function mergeCustomReportsIntoCompilation(parsed: Webpack.Compilation, reports: unknown[]): Webpack.Compilation; | ||
export declare function transform(from: Array<TransformFrom | string>, to: string, customReports?: Report<unknown, unknown>[]): Promise<string>; | ||
export declare function transform(from: Array<TransformFrom | string>, to: string, customReports: Report<unknown, unknown>[] | undefined, compression: boolean): Promise<string>; | ||
export declare const createDestStatReportPath: (from: string[], to?: string) => string; | ||
@@ -12,0 +12,0 @@ /** |
@@ -47,3 +47,3 @@ "use strict"; | ||
exports.mergeCustomReportsIntoCompilation = mergeCustomReportsIntoCompilation; | ||
async function transform(from, to, customReports = []) { | ||
async function transform(from, to, customReports = [], compression) { | ||
var _a; | ||
@@ -72,2 +72,3 @@ const normalizedFrom = []; | ||
}`, | ||
dataCompression: compression, | ||
}, | ||
@@ -74,0 +75,0 @@ }, normalizedFrom, to); |
{ | ||
"name": "@statoscope/cli", | ||
"version": "5.24.0", | ||
"version": "5.25.0-alpha.0", | ||
"description": "Statoscope CLI tools", | ||
@@ -28,11 +28,11 @@ "scripts": { | ||
"@statoscope/config": "5.22.0", | ||
"@statoscope/helpers": "5.24.0", | ||
"@statoscope/report-writer": "5.22.0", | ||
"@statoscope/stats-extension-custom-reports": "5.24.0", | ||
"@statoscope/helpers": "5.25.0-alpha.0", | ||
"@statoscope/report-writer": "5.25.0-alpha.0", | ||
"@statoscope/stats-extension-custom-reports": "5.25.0-alpha.0", | ||
"@statoscope/stats-validator": "5.22.0", | ||
"@statoscope/stats-validator-reporter-console": "5.22.0", | ||
"@statoscope/stats-validator-reporter-stats-report": "5.24.0", | ||
"@statoscope/stats-validator-reporter-stats-report": "5.25.0-alpha.0", | ||
"@statoscope/types": "5.22.0", | ||
"@statoscope/webpack-model": "5.24.0", | ||
"@statoscope/webpack-ui": "5.24.0", | ||
"@statoscope/webpack-model": "5.25.0-alpha.0", | ||
"@statoscope/webpack-ui": "5.25.0-alpha.0", | ||
"@types/yargs": "^17.0.10", | ||
@@ -42,3 +42,3 @@ "open": "^8.4.0", | ||
}, | ||
"gitHead": "0e4193e0cb9c894ac0fc25a2b3288391bd76be09" | ||
"gitHead": "e75d2467531bd7df1d82a13498a8a608e75ea567" | ||
} |
@@ -86,3 +86,3 @@ # Statoscope CLI | ||
> Learn more on [@staoscope/stats-validator](/packages/stats-validator) and [@statoscope/stats-validator-plugin-webpack](/packages/stats-validator-plugin-webpack) | ||
> Learn more on [@statoscope/stats-validator](/packages/stats-validator) and [@statoscope/stats-validator-plugin-webpack](/packages/stats-validator-plugin-webpack) | ||
@@ -150,2 +150,3 @@ ### init | ||
- `--config` (`-c`) - path to the statoscope config file with custom user reports | ||
- `--no-compression` - disable report data compression (It increases html size a lot. Use it only when something is wrong with report in a browser) | ||
@@ -173,2 +174,3 @@ **Example:** | ||
- `--config` (`-c`) - path to the statoscope config file with custom user reports | ||
- `--no-compression` - disable report data compression (It increases html size a lot. Use it only when something is wrong with report in a browser) | ||
@@ -175,0 +177,0 @@ **Example:** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53572
1124
247
1
+ Added@statoscope/helpers@5.25.0-alpha.0(transitive)
+ Added@statoscope/report-writer@5.25.0-alpha.0(transitive)
+ Added@statoscope/stats-extension-compressed@5.25.0-alpha.0(transitive)
+ Added@statoscope/stats-extension-custom-reports@5.25.0-alpha.0(transitive)
+ Added@statoscope/stats-extension-package-info@5.25.0-alpha.0(transitive)
+ Added@statoscope/stats-extension-stats-validation-result@5.25.0-alpha.0(transitive)
+ Added@statoscope/stats-validator-reporter-stats-report@5.25.0-alpha.0(transitive)
+ Added@statoscope/webpack-model@5.25.0-alpha.0(transitive)
+ Added@statoscope/webpack-ui@5.25.0-alpha.0(transitive)
+ Added@types/pako@2.0.3(transitive)
+ Addedpako@2.1.0(transitive)
- Removed@statoscope/helpers@5.24.0(transitive)
- Removed@statoscope/report-writer@5.22.0(transitive)
- Removed@statoscope/stats-extension-compressed@5.24.0(transitive)
- Removed@statoscope/stats-extension-custom-reports@5.24.0(transitive)
- Removed@statoscope/stats-extension-package-info@5.24.0(transitive)
- Removed@statoscope/stats-extension-stats-validation-result@5.24.0(transitive)
- Removed@statoscope/stats-validator-reporter-stats-report@5.24.0(transitive)
- Removed@statoscope/webpack-model@5.24.0(transitive)
- Removed@statoscope/webpack-ui@5.24.0(transitive)
Updated@statoscope/stats-extension-custom-reports@5.25.0-alpha.0
Updated@statoscope/stats-validator-reporter-stats-report@5.25.0-alpha.0