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.
@@ -1,4 +1,5 @@
1
- import { getGitRepoName, readConfig } from "@allurereport/core";
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
- name = await getGitRepoName();
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, cwd } from "node:process";
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";
@@ -0,0 +1,2 @@
1
+ export { qualityGateDefaultRules, maxFailuresRule, minTestsCountRule, successRateRule } from "@allurereport/core";
2
+ export type { QualityGateRule, QualityGateRuleState, QualityGateValidationResult } from "@allurereport/plugin-api";
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.22",
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.22",
35
- "@allurereport/core": "3.0.0-beta.22",
36
- "@allurereport/core-api": "3.0.0-beta.22",
37
- "@allurereport/directory-watcher": "3.0.0-beta.22",
38
- "@allurereport/plugin-allure2": "3.0.0-beta.22",
39
- "@allurereport/plugin-api": "3.0.0-beta.22",
40
- "@allurereport/plugin-awesome": "3.0.0-beta.22",
41
- "@allurereport/plugin-classic": "3.0.0-beta.22",
42
- "@allurereport/plugin-csv": "3.0.0-beta.22",
43
- "@allurereport/plugin-dashboard": "3.0.0-beta.22",
44
- "@allurereport/plugin-jira": "3.0.0-beta.22",
45
- "@allurereport/plugin-log": "3.0.0-beta.22",
46
- "@allurereport/plugin-progress": "3.0.0-beta.22",
47
- "@allurereport/plugin-server-reload": "3.0.0-beta.22",
48
- "@allurereport/plugin-slack": "3.0.0-beta.22",
49
- "@allurereport/reader-api": "3.0.0-beta.22",
50
- "@allurereport/service": "3.0.0-beta.22",
51
- "@allurereport/static-server": "3.0.0-beta.22",
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.3",
56
+ "glob": "^11.1.0",
55
57
  "lodash.omit": "^4.5.0",
56
58
  "prompts": "^2.4.2",
57
59
  "terminate": "^2.8.0",