afterbefore 0.1.14 → 0.1.15
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/dist/cli.js +4 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -116,16 +116,15 @@ var Logger = class {
|
|
|
116
116
|
this.log("info", `Pipeline ${finished ? "completed" : "stopped"}`);
|
|
117
117
|
if (this.spinner) {
|
|
118
118
|
if (finished) {
|
|
119
|
-
this.spinner.stop();
|
|
120
119
|
const bar = "\u2588".repeat(BAR_WIDTH);
|
|
121
|
-
|
|
120
|
+
this.spinner.succeed(` ${bar}`);
|
|
122
121
|
} else {
|
|
123
122
|
this.spinner.stop();
|
|
124
123
|
}
|
|
125
124
|
this.spinner = null;
|
|
126
125
|
} else if (finished) {
|
|
127
126
|
const bar = "\u2588".repeat(BAR_WIDTH);
|
|
128
|
-
console.
|
|
127
|
+
console.error(`${chalk.green("\u2714")} ${bar}`);
|
|
129
128
|
}
|
|
130
129
|
this.pipelineTotal = 0;
|
|
131
130
|
this.lastStep = 0;
|
|
@@ -1942,7 +1941,7 @@ async function runPipeline(options) {
|
|
|
1942
1941
|
const outputDir = resolve4(cwd, output, sessionName);
|
|
1943
1942
|
const startTime = Date.now();
|
|
1944
1943
|
try {
|
|
1945
|
-
const version = true ? "0.1.
|
|
1944
|
+
const version = true ? "0.1.15" : "dev";
|
|
1946
1945
|
console.log(`
|
|
1947
1946
|
afterbefore v${version} \xB7 Comparing against ${base}
|
|
1948
1947
|
`);
|
|
@@ -2087,7 +2086,7 @@ afterbefore v${version} \xB7 Comparing against ${base}
|
|
|
2087
2086
|
var program = new Command();
|
|
2088
2087
|
program.name("afterbefore").description(
|
|
2089
2088
|
"Automatic before/after screenshot capture for PRs. Git diff is the config."
|
|
2090
|
-
).version("0.1.
|
|
2089
|
+
).version("0.1.15").option("--base <ref>", "Base branch or ref to compare against", "main").option("--output <dir>", "Output directory for screenshots", ".afterbefore").option("--post", "Post results as a PR comment via gh CLI", false).option(
|
|
2091
2090
|
"--threshold <percent>",
|
|
2092
2091
|
"Diff threshold percentage (changes below this are ignored)",
|
|
2093
2092
|
"0.1"
|