laxy-verify 1.2.2 → 1.3.0
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/README.md +204 -47
- package/dist/a11y-deep.d.ts +20 -0
- package/dist/a11y-deep.js +161 -0
- package/dist/audit/broken-links.d.ts +25 -21
- package/dist/audit/broken-links.js +97 -86
- package/dist/badge.d.ts +2 -1
- package/dist/badge.js +18 -14
- package/dist/bundle-size.d.ts +14 -0
- package/dist/bundle-size.js +209 -0
- package/dist/cli.js +1256 -865
- package/dist/config.d.ts +102 -65
- package/dist/config.js +360 -255
- package/dist/entitlement.d.ts +15 -11
- package/dist/entitlement.js +98 -90
- package/dist/init.js +153 -87
- package/dist/lighthouse.d.ts +37 -7
- package/dist/lighthouse.js +231 -158
- package/dist/outdated-check.d.ts +17 -0
- package/dist/outdated-check.js +123 -0
- package/dist/report-markdown.d.ts +53 -39
- package/dist/report-markdown.js +407 -386
- package/dist/secret-scan.d.ts +15 -0
- package/dist/secret-scan.js +218 -0
- package/dist/security-audit.d.ts +17 -9
- package/dist/security-audit.js +127 -64
- package/dist/seo-deep.d.ts +24 -0
- package/dist/seo-deep.js +147 -0
- package/dist/typecheck.d.ts +8 -0
- package/dist/typecheck.js +99 -0
- package/dist/verification-core/report.js +526 -409
- package/dist/verification-core/types.d.ts +164 -108
- package/dist/visual-diff.d.ts +33 -26
- package/dist/visual-diff.js +223 -178
- package/dist/vitals-budget.d.ts +23 -0
- package/dist/vitals-budget.js +168 -0
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -1,65 +1,102 @@
|
|
|
1
|
-
export type FailOn = "unverified" | "bronze" | "silver" | "gold";
|
|
2
|
-
export interface Thresholds {
|
|
3
|
-
performance: number;
|
|
4
|
-
accessibility: number;
|
|
5
|
-
seo: number;
|
|
6
|
-
bestPractices: number;
|
|
7
|
-
}
|
|
8
|
-
export interface UserScenarioStep {
|
|
9
|
-
goto?: string;
|
|
10
|
-
fill?: string;
|
|
11
|
-
with?: string;
|
|
12
|
-
click?: string;
|
|
13
|
-
expect_visible?: string;
|
|
14
|
-
expect_text?: string;
|
|
15
|
-
wait?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface UserScenario {
|
|
18
|
-
name: string;
|
|
19
|
-
steps: UserScenarioStep[];
|
|
20
|
-
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
export type FailOn = "unverified" | "bronze" | "silver" | "gold";
|
|
2
|
+
export interface Thresholds {
|
|
3
|
+
performance: number;
|
|
4
|
+
accessibility: number;
|
|
5
|
+
seo: number;
|
|
6
|
+
bestPractices: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UserScenarioStep {
|
|
9
|
+
goto?: string;
|
|
10
|
+
fill?: string;
|
|
11
|
+
with?: string;
|
|
12
|
+
click?: string;
|
|
13
|
+
expect_visible?: string;
|
|
14
|
+
expect_text?: string;
|
|
15
|
+
wait?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface UserScenario {
|
|
18
|
+
name: string;
|
|
19
|
+
steps: UserScenarioStep[];
|
|
20
|
+
}
|
|
21
|
+
export interface VisualDiffConfig {
|
|
22
|
+
pixelmatchThreshold: number;
|
|
23
|
+
warnThreshold: number;
|
|
24
|
+
rollbackThreshold: number;
|
|
25
|
+
ignoreSelectors: string[];
|
|
26
|
+
disableAnimations: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface LaxyConfig {
|
|
29
|
+
framework: string;
|
|
30
|
+
build_command: string;
|
|
31
|
+
dev_command: string;
|
|
32
|
+
package_manager: string;
|
|
33
|
+
port: number;
|
|
34
|
+
build_timeout: number;
|
|
35
|
+
dev_timeout: number;
|
|
36
|
+
lighthouse_runs: number;
|
|
37
|
+
thresholds: Thresholds;
|
|
38
|
+
fail_on: FailOn;
|
|
39
|
+
scenarios?: UserScenario[];
|
|
40
|
+
crawl: boolean;
|
|
41
|
+
max_crawl_depth: number;
|
|
42
|
+
max_crawl_pages: number;
|
|
43
|
+
browsers: string[];
|
|
44
|
+
/** Explicit list of routes to audit with Lighthouse (e.g. ["/", "/about", "/pricing"]). */
|
|
45
|
+
lighthouse_routes?: string[];
|
|
46
|
+
/** Extra routes to audit even if the crawler cannot discover them (e.g. SPA router.push routes). */
|
|
47
|
+
extra_routes?: string[];
|
|
48
|
+
/** Maximum number of crawl-discovered routes to run Lighthouse on. Default: 5. */
|
|
49
|
+
max_lighthouse_routes: number;
|
|
50
|
+
visual_diff: VisualDiffConfig;
|
|
51
|
+
/** Run TypeScript type check (tsc --noEmit). Default: false. */
|
|
52
|
+
typecheck: boolean;
|
|
53
|
+
/** Run secret/credential leak scan. Default: false. */
|
|
54
|
+
secret_scan: boolean;
|
|
55
|
+
/** Paths to ignore during secret scan. */
|
|
56
|
+
secret_scan_ignore_paths: string[];
|
|
57
|
+
/** Run bundle size analysis. Default: false. */
|
|
58
|
+
bundle_size: boolean;
|
|
59
|
+
/** Run outdated dependency check. Default: false. */
|
|
60
|
+
outdated_check: boolean;
|
|
61
|
+
/** Run deep accessibility audit (axe-core). Default: false. */
|
|
62
|
+
a11y_deep: boolean;
|
|
63
|
+
/** Run deep SEO audit. Default: false. */
|
|
64
|
+
seo_deep: boolean;
|
|
65
|
+
/** Run Core Web Vitals budget check. Default: false. */
|
|
66
|
+
vitals_budget: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare class ConfigParseError extends Error {
|
|
69
|
+
constructor(msg: string);
|
|
70
|
+
}
|
|
71
|
+
export interface TeamThresholdsConfig {
|
|
72
|
+
performance: number;
|
|
73
|
+
accessibility: number;
|
|
74
|
+
seo: number;
|
|
75
|
+
best_practices: number;
|
|
76
|
+
fail_on: FailOn;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 로그인된 CLI 토큰으로 팀 공통 임계값을 서버에서 가져온다.
|
|
80
|
+
* 토큰 없음 / 팀 없음 / 네트워크 오류 시 null 반환 (graceful degradation).
|
|
81
|
+
*/
|
|
82
|
+
export declare function fetchTeamThresholds(): Promise<TeamThresholdsConfig | null>;
|
|
83
|
+
export interface LoadConfigOptions {
|
|
84
|
+
dir: string;
|
|
85
|
+
configPath?: string;
|
|
86
|
+
cliFlags?: {
|
|
87
|
+
failOn?: FailOn;
|
|
88
|
+
skipLighthouse?: boolean;
|
|
89
|
+
typecheck?: boolean;
|
|
90
|
+
secretScan?: boolean;
|
|
91
|
+
bundleSize?: boolean;
|
|
92
|
+
outdatedCheck?: boolean;
|
|
93
|
+
a11yDeep?: boolean;
|
|
94
|
+
seoDeep?: boolean;
|
|
95
|
+
vitalsBudget?: boolean;
|
|
96
|
+
};
|
|
97
|
+
ciMode: boolean;
|
|
98
|
+
teamThresholds?: TeamThresholdsConfig | null;
|
|
99
|
+
}
|
|
100
|
+
export declare function loadConfig(options: LoadConfigOptions): LaxyConfig & {
|
|
101
|
+
ciMode: boolean;
|
|
102
|
+
};
|