allure 3.0.0-beta.22 → 3.0.0-beta.24
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/commands/projects/create.js +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/rules.d.ts +2 -0
- package/dist/rules.js +1 -0
- package/package.json +22 -20
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { detect } from "@allurereport/ci";
|
|
2
|
+
import { readConfig } from "@allurereport/core";
|
|
2
3
|
import { AllureServiceClient, KnownError } from "@allurereport/service";
|
|
3
4
|
import { Command, Option } from "clipanion";
|
|
4
5
|
import * as console from "node:console";
|
|
@@ -28,7 +29,8 @@ export class ProjectsCreateCommand extends Command {
|
|
|
28
29
|
let name = this.projectName;
|
|
29
30
|
if (!name) {
|
|
30
31
|
try {
|
|
31
|
-
|
|
32
|
+
const ci = detect();
|
|
33
|
+
name = ci?.repoName;
|
|
32
34
|
}
|
|
33
35
|
catch (ignored) { }
|
|
34
36
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { defineConfig } from "@allurereport/plugin-api";
|
|
1
|
+
export { type Config as AllureConfig, defineConfig } from "@allurereport/plugin-api";
|
|
2
2
|
export { defaultChartsConfig } from "@allurereport/charts-api";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Builtins, Cli } from "clipanion";
|
|
2
|
-
import console from "node:console";
|
|
3
2
|
import { readFileSync } from "node:fs";
|
|
4
|
-
import { argv
|
|
3
|
+
import { argv } from "node:process";
|
|
5
4
|
import { Allure2Command, AwesomeCommand, ClassicCommand, CsvCommand, DashboardCommand, GenerateCommand, HistoryCommand, JiraClearCommand, KnownIssueCommand, LogCommand, LoginCommand, LogoutCommand, OpenCommand, ProjectsCreateCommand, ProjectsDeleteCommand, ProjectsListCommand, QualityGateCommand, ResultsPackCommand, ResultsUnpackCommand, RunCommand, SlackCommand, TestPlanCommand, WatchCommand, WhoamiCommand, } from "./commands/index.js";
|
|
6
5
|
const [node, app, ...args] = argv;
|
|
7
6
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
@@ -35,7 +34,7 @@ cli.register(ProjectsListCommand);
|
|
|
35
34
|
cli.register(ResultsPackCommand);
|
|
36
35
|
cli.register(ResultsUnpackCommand);
|
|
37
36
|
cli.register(Builtins.HelpCommand);
|
|
37
|
+
cli.register(Builtins.VersionCommand);
|
|
38
38
|
cli.runExit(args);
|
|
39
|
-
console.log(cwd());
|
|
40
39
|
export { defineConfig } from "@allurereport/plugin-api";
|
|
41
40
|
export { defaultChartsConfig } from "@allurereport/charts-api";
|
package/dist/rules.d.ts
ADDED
package/dist/rules.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { qualityGateDefaultRules, maxFailuresRule, minTestsCountRule, successRateRule } from "@allurereport/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.24",
|
|
4
4
|
"description": "Allure Commandline Tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./dist/index.js",
|
|
16
|
+
"./rules": "./dist/rules.js",
|
|
16
17
|
"./qualityGate": "./dist/qualityGate.js"
|
|
17
18
|
},
|
|
18
19
|
"main": "./dist/index.js",
|
|
@@ -31,27 +32,28 @@
|
|
|
31
32
|
"test": "vitest run"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@allurereport/charts-api": "3.0.0-beta.
|
|
35
|
-
"@allurereport/
|
|
36
|
-
"@allurereport/core
|
|
37
|
-
"@allurereport/
|
|
38
|
-
"@allurereport/
|
|
39
|
-
"@allurereport/plugin-
|
|
40
|
-
"@allurereport/plugin-
|
|
41
|
-
"@allurereport/plugin-
|
|
42
|
-
"@allurereport/plugin-
|
|
43
|
-
"@allurereport/plugin-
|
|
44
|
-
"@allurereport/plugin-
|
|
45
|
-
"@allurereport/plugin-
|
|
46
|
-
"@allurereport/plugin-
|
|
47
|
-
"@allurereport/plugin-
|
|
48
|
-
"@allurereport/plugin-
|
|
49
|
-
"@allurereport/
|
|
50
|
-
"@allurereport/
|
|
51
|
-
"@allurereport/
|
|
35
|
+
"@allurereport/charts-api": "3.0.0-beta.24",
|
|
36
|
+
"@allurereport/ci": "3.0.0-beta.24",
|
|
37
|
+
"@allurereport/core": "3.0.0-beta.24",
|
|
38
|
+
"@allurereport/core-api": "3.0.0-beta.24",
|
|
39
|
+
"@allurereport/directory-watcher": "3.0.0-beta.24",
|
|
40
|
+
"@allurereport/plugin-allure2": "3.0.0-beta.24",
|
|
41
|
+
"@allurereport/plugin-api": "3.0.0-beta.24",
|
|
42
|
+
"@allurereport/plugin-awesome": "3.0.0-beta.24",
|
|
43
|
+
"@allurereport/plugin-classic": "3.0.0-beta.24",
|
|
44
|
+
"@allurereport/plugin-csv": "3.0.0-beta.24",
|
|
45
|
+
"@allurereport/plugin-dashboard": "3.0.0-beta.24",
|
|
46
|
+
"@allurereport/plugin-jira": "3.0.0-beta.24",
|
|
47
|
+
"@allurereport/plugin-log": "3.0.0-beta.24",
|
|
48
|
+
"@allurereport/plugin-progress": "3.0.0-beta.24",
|
|
49
|
+
"@allurereport/plugin-server-reload": "3.0.0-beta.24",
|
|
50
|
+
"@allurereport/plugin-slack": "3.0.0-beta.24",
|
|
51
|
+
"@allurereport/reader-api": "3.0.0-beta.24",
|
|
52
|
+
"@allurereport/service": "3.0.0-beta.24",
|
|
53
|
+
"@allurereport/static-server": "3.0.0-beta.24",
|
|
52
54
|
"adm-zip": "^0.5.16",
|
|
53
55
|
"clipanion": "^4.0.0-rc.4",
|
|
54
|
-
"glob": "^11.0
|
|
56
|
+
"glob": "^11.1.0",
|
|
55
57
|
"lodash.omit": "^4.5.0",
|
|
56
58
|
"prompts": "^2.4.2",
|
|
57
59
|
"terminate": "^2.8.0",
|