Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 3.27 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "img2num-workspace",
"type": "module",
"private": true,
"packageManager": "pnpm@11.4.0",
"engines": {
"pnpm": ">=10"
},
"scriptsInfo": {
"_meta": {
"basic": [
"format",
"lint",
"help"
]
},
"Formatting": {
"format": {
"desc": "Format C++ and JavaScript/TypeScript code",
"args": [
"--check Only check formatting without modifying files"
]
},
"format:check": {
"desc": "Runs \"format\" script with the \"--check\" flag"
},
"format:cpp": {
"desc": "Format C++ code"
},
"format:cpp:check": {
"desc": "Format C++ code (read-only)"
},
"format:js": {
"desc": "Format JavaScript/TypeScript"
},
"format:js:check": {
"desc": "Format JavaScript/TypeScript (read-only)"
}
},
"Linting": {
"lint": {
"desc": "Run all linters (C++ and JavaScript/TypeScript)"
},
"lint:fix": {
"desc": "Run all linters and automatically fix issues"
},
"lint:cpp": {
"desc": "Run clang-tidy on C++ code"
},
"lint:cpp:fix": {
"desc": "Run clang-tidy and apply fixes"
},
"lint:js": {
"desc": "Run ESLint on example apps, scripts, and docs",
"args": [
"--fix Automatically fix fixable issues"
]
},
"lint:js:fix": {
"desc": "Run ESLint and automatically fix issues"
}
},
"Validation": {
"validate-scripts": {
"desc": "Validate all scripts defined in workspace package.json files"
}
},
"Other": {
"help": {
"desc": "Show this help message",
"args": [
"--filter <term> Only show scripts matching <term>"
]
},
"editorconfig:check": {
"desc": "Check all files against .editorconfig rules"
}
}
},
"scripts": {
"help": "node scripts/help.js",
"format": "pnpm run --filter=. --parallel \"/^format:(cpp|js)$/\"",
"format:check": "pnpm run --filter=. --parallel \"/^format:(cpp|js):check$/\"",
"format:cpp": "uv run format_cpp",
"format:cpp:check": "uv run format_cpp",
"format:js": "pnpm prettier --write . --ignore-path .prettierignore --config .prettierrc",
"format:js:check": "pnpm prettier --check . --ignore-path .prettierignore --config .prettierrc",
"validate-scripts": "node scripts/validate-scripts.js",
"lint": "pnpm run --filter=. --parallel \"/^lint:(cpp|js)$/\"",
"lint:fix": "pnpm run --filter=. --parallel \"/^lint:(cpp|js):fix$/\"",
"lint:cpp": "uv run lint_cpp",
"lint:cpp:fix": "uv run lint_cpp --fix",
"lint:js": "eslint packages/js example-apps/react-js scripts/img2num-dev-scripts docs",
"lint:js:fix": "eslint packages/js example-apps/react-js scripts/img2num-dev-scripts docs --fix",
"editorconfig:check": "editorconfig-checker"
},
"devDependencies": {
"clang-format": "^1.8.0",
"editorconfig-checker": "^7.0.0",
"eslint": "^10.10.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.6",
"globals": "^17.12.0",
"img2num-dev-scripts": "workspace:*",
"prettier": "^3.9.6"
},
"dependencies": {
"driver.js": "^1.8.0",
"fast-glob": "^3.3.3"
}
}