@code-pushup/cli 0.11.2 → 0.12.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/index.js +31 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1528,7 +1528,7 @@ var verboseUtils = (verbose) => ({
|
|
|
1528
1528
|
|
|
1529
1529
|
// packages/core/package.json
|
|
1530
1530
|
var name = "@code-pushup/core";
|
|
1531
|
-
var version = "0.
|
|
1531
|
+
var version = "0.12.1";
|
|
1532
1532
|
|
|
1533
1533
|
// packages/core/src/lib/implementation/execute-plugin.ts
|
|
1534
1534
|
import chalk4 from "chalk";
|
|
@@ -1964,6 +1964,15 @@ function yargsAutorunCommandObject() {
|
|
|
1964
1964
|
await upload(options2);
|
|
1965
1965
|
} else {
|
|
1966
1966
|
console.warn("Upload skipped because configuration is not set.");
|
|
1967
|
+
console.info(
|
|
1968
|
+
[
|
|
1969
|
+
"\u{1F4A1} Integrate the portal:",
|
|
1970
|
+
"- npx code-pushup upload - Run upload to upload the created report to the server",
|
|
1971
|
+
" https://github.com/code-pushup/cli/tree/main/packages/cli#upload-command",
|
|
1972
|
+
"- Portal Integration - https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration",
|
|
1973
|
+
"- Upload Command - https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration"
|
|
1974
|
+
].join("\n")
|
|
1975
|
+
);
|
|
1967
1976
|
}
|
|
1968
1977
|
}
|
|
1969
1978
|
};
|
|
@@ -1982,6 +1991,18 @@ function yargsCollectCommandObject() {
|
|
|
1982
1991
|
console.info(chalk6.bold(CLI_NAME));
|
|
1983
1992
|
console.info(chalk6.gray(`Run ${command}...`));
|
|
1984
1993
|
await collectAndPersistReports(options2);
|
|
1994
|
+
const { upload: upload2 = {} } = args;
|
|
1995
|
+
if (Object.keys(upload2).length === 0) {
|
|
1996
|
+
console.info(
|
|
1997
|
+
[
|
|
1998
|
+
"\u{1F4A1} Visualize your reports:",
|
|
1999
|
+
"- npx code-pushup upload - Run upload to upload the created report to the server",
|
|
2000
|
+
" https://github.com/code-pushup/cli/tree/main/packages/cli#upload-command",
|
|
2001
|
+
"- npx code-pushup autorun - Run collect & upload",
|
|
2002
|
+
" https://github.com/code-pushup/cli/tree/main/packages/cli#autorun-command"
|
|
2003
|
+
].join("\n")
|
|
2004
|
+
);
|
|
2005
|
+
}
|
|
1985
2006
|
}
|
|
1986
2007
|
};
|
|
1987
2008
|
}
|
|
@@ -2015,6 +2036,15 @@ function yargsUploadCommandObject() {
|
|
|
2015
2036
|
console.info(chalk7.gray(`Run ${command}...`));
|
|
2016
2037
|
const options2 = args;
|
|
2017
2038
|
if (!options2.upload) {
|
|
2039
|
+
console.info(
|
|
2040
|
+
[
|
|
2041
|
+
"\u{1F4A1} Integrate the portal:",
|
|
2042
|
+
"- npx code-pushup upload - Run upload to upload the created report to the server",
|
|
2043
|
+
" https://github.com/code-pushup/cli/tree/main/packages/cli#upload-command",
|
|
2044
|
+
"- Portal Integration - https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration",
|
|
2045
|
+
"- Upload Command - https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration"
|
|
2046
|
+
].join("\n")
|
|
2047
|
+
);
|
|
2018
2048
|
throw new Error("Upload configuration not set");
|
|
2019
2049
|
}
|
|
2020
2050
|
await upload(options2);
|