-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Set up the main OXA CLI npm package for validating documents against the schema. Create packages/oxa/ with:
package.json
- Package name:
oxa - Binary:
oxa - Dependencies:
oxa-types(workspace),commander,ajv,ajv-formats,js-yaml
src/cli.ts
- Main CLI entry point using commander
validatecommand that validates JSON/YAML files against the OXA schema- Support for stdin input
- Exit codes: 0 for valid, 1 for invalid, 2 for errors
src/index.ts
- Export validation utilities for programmatic use
- Re-export types from oxa-types
Tasks
- Create
packages/oxa/package.jsonwith bin entry - Create
packages/oxa/tsconfig.json - Implement
packages/oxa/src/cli.tswith validate command - Implement
packages/oxa/src/index.tswith exports - Add build script to compile TypeScript
- Test CLI validation against sample documents
Metadata
Metadata
Assignees
Labels
No labels