mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
- Changed devDependencies from "lua_test" to "testing" in package.json for ui_level4, ui_level5, ui_level6, ui_login, ui_pages, ui_permissions, user_manager, and workflow_editor. - Removed legacy test scripts and parameterized tests, replacing them with a unified test suite structure in the tests section of package.json. - Introduced new metadata.params.json files for each package to define test parameters for package ID validation, icon file existence, and JSON schema validation. - Created new metadata.test.json files for each package to define structured test cases for validating package metadata, including checks for package ID, icon file existence, and schema validity.
90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-metadata.schema.json",
|
|
"packageId": "package_validator",
|
|
"name": "Package Validator",
|
|
"version": "1.0.0",
|
|
"description": "Validates JSON-based package structure including scripts, types, components, and tests",
|
|
"author": "MetaBuilder",
|
|
"license": "MIT",
|
|
"category": "tools",
|
|
"icon": "static_content/icon.svg",
|
|
"minLevel": 5,
|
|
"primary": true,
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"testing": "*"
|
|
},
|
|
"externalDependencies": {
|
|
"fs": {
|
|
"description": "File system operations for reading package files",
|
|
"required": true,
|
|
"functions": [
|
|
"readFile",
|
|
"existsSync",
|
|
"readdir",
|
|
"statSync"
|
|
]
|
|
},
|
|
"path": {
|
|
"description": "Path manipulation utilities",
|
|
"required": true,
|
|
"functions": [
|
|
"join",
|
|
"resolve",
|
|
"basename",
|
|
"dirname",
|
|
"extname"
|
|
]
|
|
},
|
|
"JSON": {
|
|
"description": "JSON parsing and validation",
|
|
"required": true,
|
|
"functions": [
|
|
"parse",
|
|
"stringify"
|
|
]
|
|
},
|
|
"ajv": {
|
|
"description": "JSON Schema validator (Another JSON Schema Validator)",
|
|
"required": false,
|
|
"version": "^8.0.0",
|
|
"functions": [
|
|
"compile",
|
|
"validate"
|
|
]
|
|
}
|
|
},
|
|
"exports": {
|
|
"components": [],
|
|
"scripts": [
|
|
"validate_package",
|
|
"validate_metadata",
|
|
"validate_scripts",
|
|
"validate_types",
|
|
"validate_components",
|
|
"validate_tests",
|
|
"validate_storybook"
|
|
],
|
|
"types": [
|
|
"ValidationResult",
|
|
"ValidationError",
|
|
"ValidationWarning",
|
|
"PackageMetadata",
|
|
"ScriptFile",
|
|
"TypeDefinition",
|
|
"ComponentDefinition"
|
|
]
|
|
},
|
|
"runtime": {
|
|
"scripts": [
|
|
"scripts/validator.lua"
|
|
],
|
|
"main": "scripts/init.lua"
|
|
},
|
|
"tests": {
|
|
"suites": [
|
|
"tests/metadata.test.json"
|
|
]
|
|
}
|
|
}
|