@zealakit/css-doctor-cli 0.0.0-stage → 1.0.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 CHANGED
@@ -1,3 +1,42 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # @zealakit/css-doctor-cli
4
+
5
+ **Command-line diagnostics for CSS files using the native css-doctor engine.**
6
+
7
+ [English](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_CN.md)
8
+
9
+ </div>
10
+
11
+ ---
12
+
13
+ ![css doctor](https://github.com/zealakit/css-doctor/blob/main/assets/images/css-doctor.jpg)
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ pnpm add -D @zealakit/css-doctor-cli
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```bash
24
+ # Analyze files or quoted globs
25
+ pnpm exec css-doctor check "src/**/*.css"
26
+
27
+ # Machine-readable CI output
28
+ pnpm exec css-doctor check "src/**/*.css" --json
29
+
30
+ # Warn when a file has more than 500 selectors
31
+ pnpm exec css-doctor check "src/**/*.css" --threshold 500
32
+ ```
33
+
34
+ ## Safety and limitations
35
+
36
+ - The binary is named css-doctor and is exposed through the package bin field.
37
+ - --json emits a stable CheckReport schema with files, issues, and summary counters.
38
+ - Exit code is non-zero for fatal setup/read/analysis failures; warnings remain visible in the report.
39
+
40
+ ## Full documentation
41
+
42
+ Project README: [English](https://github.com/zealakit/css-doctor/blob/main/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/README_CN.md)
package/README_CN.md ADDED
@@ -0,0 +1,42 @@
1
+ <div align="center">
2
+
3
+ # @zealakit/css-doctor-cli
4
+
5
+ **使用原生 css-doctor 引擎的命令行 CSS 诊断工具。**
6
+
7
+ [English](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_CN.md)
8
+
9
+ </div>
10
+
11
+ ---
12
+
13
+ ![css doctor](https://github.com/zealakit/css-doctor/blob/main/assets/images/css-doctor.jpg)
14
+
15
+ ## 安装
16
+
17
+ ```bash
18
+ pnpm add -D @zealakit/css-doctor-cli
19
+ ```
20
+
21
+ ## 使用
22
+
23
+ ```bash
24
+ # 分析文件或带引号的 glob
25
+ pnpm exec css-doctor check "src/**/*.css"
26
+
27
+ # 适用于 CI/CD 的 JSON 输出
28
+ pnpm exec css-doctor check "src/**/*.css" --json
29
+
30
+ # 当文件 selector 超过 500 时警告
31
+ pnpm exec css-doctor check "src/**/*.css" --threshold 500
32
+ ```
33
+
34
+ ## 安全与限制
35
+
36
+ - 命令名为 css-doctor,通过 package.json 的 bin 字段暴露。
37
+ - --json 输出稳定的 CheckReport 结构,包含 files、issues 和 summary。
38
+ - 初始化、读取或分析发生致命错误时返回非零退出码;warning 仍会显示在报告中。
39
+
40
+ ## 完整文档
41
+
42
+ 项目 README:[English](https://github.com/zealakit/css-doctor/blob/main/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/README_CN.md)
package/README_VI.md ADDED
@@ -0,0 +1,42 @@
1
+ <div align="center">
2
+
3
+ # @zealakit/css-doctor-cli
4
+
5
+ **Công cụ chẩn đoán CSS trên terminal bằng engine native css-doctor.**
6
+
7
+ [English](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/packages/cli/README_CN.md)
8
+
9
+ </div>
10
+
11
+ ---
12
+
13
+ ![css doctor](https://github.com/zealakit/css-doctor/blob/main/assets/images/css-doctor.jpg)
14
+
15
+ ## Cài đặt
16
+
17
+ ```bash
18
+ pnpm add -D @zealakit/css-doctor-cli
19
+ ```
20
+
21
+ ## Sử dụng
22
+
23
+ ```bash
24
+ # Phân tích file hoặc glob có quote
25
+ pnpm exec css-doctor check "src/**/*.css"
26
+
27
+ # Output JSON cho CI/CD
28
+ pnpm exec css-doctor check "src/**/*.css" --json
29
+
30
+ # Cảnh báo khi file có hơn 500 selector
31
+ pnpm exec css-doctor check "src/**/*.css" --threshold 500
32
+ ```
33
+
34
+ ## An toàn và giới hạn
35
+
36
+ - Binary tên css-doctor, được expose qua trường bin của package.
37
+ - --json xuất schema CheckReport ổn định gồm files, issues và summary.
38
+ - Exit code khác 0 khi setup/read/analyze lỗi nghiêm trọng; warning vẫn hiện trong report.
39
+
40
+ ## Tài liệu đầy đủ
41
+
42
+ README dự án: [English](https://github.com/zealakit/css-doctor/blob/main/README.md) | [Tiếng Việt](https://github.com/zealakit/css-doctor/blob/main/README_VI.md) | [简体中文](https://github.com/zealakit/css-doctor/blob/main/README_CN.md)