@hawkeyexl/manni 0.0.0-bootstrap.0 → 0.2.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/LICENSE +21 -0
- package/README.md +178 -0
- package/dist/chunk-2OALUJV2.js +10820 -0
- package/dist/chunk-2OALUJV2.js.map +1 -0
- package/dist/chunk-OXH2ZM7E.js +1050 -0
- package/dist/chunk-OXH2ZM7E.js.map +1 -0
- package/dist/cli.d.ts +17 -0
- package/dist/cli.js +914 -0
- package/dist/cli.js.map +1 -0
- package/dist/docmeta.d.ts +2 -0
- package/dist/docmeta.js +10 -0
- package/dist/docmeta.js.map +1 -0
- package/dist/index.d.ts +1623 -0
- package/dist/index.js +116 -0
- package/dist/index.js.map +1 -0
- package/package.json +104 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
COMMON_FORMATS,
|
|
4
|
+
DEFAULT_SCHEMAS,
|
|
5
|
+
DEFAULT_TTL_HOURS,
|
|
6
|
+
DEFAULT_VENDOR_DIR,
|
|
7
|
+
DocmetaError,
|
|
8
|
+
FILL_FORMATS,
|
|
9
|
+
INTEGRITY_SHAPE,
|
|
10
|
+
QUERY_FORMATS,
|
|
11
|
+
REPORT_FORMATS,
|
|
12
|
+
SCHEMA_CACHE_DIR,
|
|
13
|
+
SCHEMA_CACHE_VERSION,
|
|
14
|
+
SchemaCache,
|
|
15
|
+
Validator,
|
|
16
|
+
applyFrontmatter,
|
|
17
|
+
classifyRef,
|
|
18
|
+
collectSchemaPins,
|
|
19
|
+
extractFrontmatter,
|
|
20
|
+
extractorForExtension,
|
|
21
|
+
fetchSchemaBytes,
|
|
22
|
+
frontmatterInnerText,
|
|
23
|
+
getSchemasInfo,
|
|
24
|
+
integrityOf,
|
|
25
|
+
isCommonFormat,
|
|
26
|
+
isFillFormat,
|
|
27
|
+
isIntegrity,
|
|
28
|
+
isQueryFormat,
|
|
29
|
+
isReportFormat,
|
|
30
|
+
listBuiltins,
|
|
31
|
+
loadConfig,
|
|
32
|
+
loadSchema,
|
|
33
|
+
locateFrontmatter,
|
|
34
|
+
parseConfig,
|
|
35
|
+
rebaseConfigSchemaRefs,
|
|
36
|
+
render,
|
|
37
|
+
renderFill,
|
|
38
|
+
renderFillGithub,
|
|
39
|
+
renderGet,
|
|
40
|
+
renderJunit,
|
|
41
|
+
renderQuery,
|
|
42
|
+
renderQueryCsv,
|
|
43
|
+
renderSarif,
|
|
44
|
+
resolveRunConfig,
|
|
45
|
+
resolveSchemaSet,
|
|
46
|
+
runFill,
|
|
47
|
+
runGet,
|
|
48
|
+
runQuery,
|
|
49
|
+
runValidate,
|
|
50
|
+
runVendorSchema,
|
|
51
|
+
schemaCacheDir,
|
|
52
|
+
schemaEntryRef,
|
|
53
|
+
schemaLoadOptions,
|
|
54
|
+
stringifyValue,
|
|
55
|
+
supportedExtensions,
|
|
56
|
+
vendorFileName,
|
|
57
|
+
writeFileAtomic
|
|
58
|
+
} from "./chunk-2OALUJV2.js";
|
|
59
|
+
export {
|
|
60
|
+
COMMON_FORMATS,
|
|
61
|
+
DEFAULT_SCHEMAS,
|
|
62
|
+
DEFAULT_TTL_HOURS,
|
|
63
|
+
DEFAULT_VENDOR_DIR,
|
|
64
|
+
DocmetaError,
|
|
65
|
+
FILL_FORMATS,
|
|
66
|
+
INTEGRITY_SHAPE,
|
|
67
|
+
QUERY_FORMATS,
|
|
68
|
+
REPORT_FORMATS,
|
|
69
|
+
SCHEMA_CACHE_DIR,
|
|
70
|
+
SCHEMA_CACHE_VERSION,
|
|
71
|
+
SchemaCache,
|
|
72
|
+
Validator,
|
|
73
|
+
applyFrontmatter,
|
|
74
|
+
classifyRef,
|
|
75
|
+
collectSchemaPins,
|
|
76
|
+
extractFrontmatter,
|
|
77
|
+
extractorForExtension,
|
|
78
|
+
fetchSchemaBytes,
|
|
79
|
+
frontmatterInnerText,
|
|
80
|
+
getSchemasInfo,
|
|
81
|
+
integrityOf,
|
|
82
|
+
isCommonFormat,
|
|
83
|
+
isFillFormat,
|
|
84
|
+
isIntegrity,
|
|
85
|
+
isQueryFormat,
|
|
86
|
+
isReportFormat,
|
|
87
|
+
listBuiltins,
|
|
88
|
+
loadConfig,
|
|
89
|
+
loadSchema,
|
|
90
|
+
locateFrontmatter,
|
|
91
|
+
parseConfig,
|
|
92
|
+
rebaseConfigSchemaRefs,
|
|
93
|
+
render,
|
|
94
|
+
renderFill,
|
|
95
|
+
renderFillGithub,
|
|
96
|
+
renderGet,
|
|
97
|
+
renderJunit,
|
|
98
|
+
renderQuery,
|
|
99
|
+
renderQueryCsv,
|
|
100
|
+
renderSarif,
|
|
101
|
+
resolveRunConfig,
|
|
102
|
+
resolveSchemaSet,
|
|
103
|
+
runFill,
|
|
104
|
+
runGet,
|
|
105
|
+
runQuery,
|
|
106
|
+
runValidate,
|
|
107
|
+
runVendorSchema,
|
|
108
|
+
schemaCacheDir,
|
|
109
|
+
schemaEntryRef,
|
|
110
|
+
schemaLoadOptions,
|
|
111
|
+
stringifyValue,
|
|
112
|
+
supportedExtensions,
|
|
113
|
+
vendorFileName,
|
|
114
|
+
writeFileAtomic
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,14 +1,115 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"manni": "dist/cli.js",
|
|
8
|
+
"docmeta": "dist/docmeta.js"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
6
23
|
"repository": {
|
|
7
24
|
"type": "git",
|
|
8
25
|
"url": "git+https://github.com/hawkeyexl/manni.git"
|
|
9
26
|
},
|
|
10
27
|
"homepage": "https://hawkeyexl.github.io/manni/",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/hawkeyexl/manni/issues"
|
|
30
|
+
},
|
|
11
31
|
"publishConfig": {
|
|
12
32
|
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=24"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"prebuild": "npm run check:deps",
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"dev": "tsup --watch",
|
|
41
|
+
"pretest": "npm run check:deps",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"test:watch": "vitest",
|
|
44
|
+
"test:coverage": "vitest run --coverage",
|
|
45
|
+
"pretypecheck": "npm run check:deps",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"lint": "eslint .",
|
|
48
|
+
"check:deps": "node scripts/check-deps.mjs",
|
|
49
|
+
"query:ui": "npm run build && node dist/cli.js meta query --db .manni/meta/query.db && node scripts/query-ui.mjs .manni/meta/query.db",
|
|
50
|
+
"docs:check-cli": "node scripts/check-cli-reference.mjs",
|
|
51
|
+
"docs:check-action": "node scripts/check-action-reference.mjs",
|
|
52
|
+
"docs:check-api": "node scripts/check-api-reference.mjs",
|
|
53
|
+
"docs:check-links": "node scripts/check-doc-links.mjs",
|
|
54
|
+
"docs:check-tables": "node scripts/check-table-rows.mjs",
|
|
55
|
+
"schemas:sync": "node scripts/sync-builtin-schemas.mjs",
|
|
56
|
+
"schemas:check": "node scripts/check-builtin-schemas.mjs",
|
|
57
|
+
"schemas:check-published": "node scripts/check-published-schemas.mjs",
|
|
58
|
+
"commitlint": "commitlint --edit",
|
|
59
|
+
"semantic-release": "semantic-release",
|
|
60
|
+
"prepare": "node scripts/prepare.mjs",
|
|
61
|
+
"prepublishOnly": "npm run build"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"frontmatter",
|
|
65
|
+
"metadata",
|
|
66
|
+
"json-schema",
|
|
67
|
+
"markdown",
|
|
68
|
+
"validation",
|
|
69
|
+
"cli",
|
|
70
|
+
"ci",
|
|
71
|
+
"okf"
|
|
72
|
+
],
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"overrides": {
|
|
75
|
+
"esbuild": "^0.28.2"
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"@axe-core/playwright": "^4.13.0",
|
|
79
|
+
"@hawkeyexl/inference": "^0.3.1",
|
|
80
|
+
"@xmldom/xmldom": "^0.9.12",
|
|
81
|
+
"ajv": "^8.17.1",
|
|
82
|
+
"ajv-draft-04": "^1.0.0",
|
|
83
|
+
"ajv-formats": "^3.0.1",
|
|
84
|
+
"commander": "^15.0.0",
|
|
85
|
+
"fast-glob": "^3.3.2",
|
|
86
|
+
"parse5": "^8.0.1",
|
|
87
|
+
"picocolors": "^1.1.1",
|
|
88
|
+
"picomatch": "^4.0.7",
|
|
89
|
+
"playwright-core": "^1.63.0",
|
|
90
|
+
"smol-toml": "^1.8.0",
|
|
91
|
+
"yaml": "^2.6.1"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@commitlint/cli": "^21.2.2",
|
|
95
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
96
|
+
"@eslint/js": "^10.0.1",
|
|
97
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
98
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
99
|
+
"@semantic-release/git": "^10.0.1",
|
|
100
|
+
"@semantic-release/github": "^12.0.8",
|
|
101
|
+
"@semantic-release/npm": "^13.1.5",
|
|
102
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
103
|
+
"@types/node": "^26.3.0",
|
|
104
|
+
"@types/picomatch": "^4.0.3",
|
|
105
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
106
|
+
"eslint": "^10.9.1",
|
|
107
|
+
"globals": "^17.11.0",
|
|
108
|
+
"husky": "^9.1.7",
|
|
109
|
+
"semantic-release": "^25.0.9",
|
|
110
|
+
"tsup": "^8.3.5",
|
|
111
|
+
"typescript": "^6.0.3",
|
|
112
|
+
"typescript-eslint": "^8.68.0",
|
|
113
|
+
"vitest": "^4.1.11"
|
|
13
114
|
}
|
|
14
115
|
}
|